blob: 2274c4da5b29c49bac6eb9626fb6648a0085e377 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _IP_VS_H
20#define _IP_VS_H
21#include <linux/types.h>
22#define IP_VS_VERSION_CODE 0x010201
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define NVERSION(version) (version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define IP_VS_SVC_F_PERSISTENT 0x0001
26#define IP_VS_SVC_F_HASHED 0x0002
27#define IP_VS_SVC_F_ONEPACKET 0x0004
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029#define IP_VS_SVC_F_SCHED1 0x0008
30#define IP_VS_SVC_F_SCHED2 0x0010
31#define IP_VS_SVC_F_SCHED3 0x0020
32#define IP_VS_SVC_F_SCHED_SH_FALLBACK IP_VS_SVC_F_SCHED1
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define IP_VS_SVC_F_SCHED_SH_PORT IP_VS_SVC_F_SCHED2
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define IP_VS_DEST_F_AVAILABLE 0x0001
36#define IP_VS_DEST_F_OVERLOAD 0x0002
37#define IP_VS_STATE_NONE 0x0000
Elliott Hughes8cb52b02013-11-21 13:43:23 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039#define IP_VS_STATE_MASTER 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define IP_VS_STATE_BACKUP 0x0002
Tao Baod7db5942015-01-28 10:07:51 -080041#define IP_VS_BASE_CTL (64 + 1024 + 64)
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define IP_VS_SO_SET_NONE IP_VS_BASE_CTL
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define IP_VS_SO_SET_INSERT (IP_VS_BASE_CTL + 1)
45#define IP_VS_SO_SET_ADD (IP_VS_BASE_CTL + 2)
46#define IP_VS_SO_SET_EDIT (IP_VS_BASE_CTL + 3)
47#define IP_VS_SO_SET_DEL (IP_VS_BASE_CTL + 4)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049#define IP_VS_SO_SET_FLUSH (IP_VS_BASE_CTL + 5)
50#define IP_VS_SO_SET_LIST (IP_VS_BASE_CTL + 6)
51#define IP_VS_SO_SET_ADDDEST (IP_VS_BASE_CTL + 7)
52#define IP_VS_SO_SET_DELDEST (IP_VS_BASE_CTL + 8)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054#define IP_VS_SO_SET_EDITDEST (IP_VS_BASE_CTL + 9)
55#define IP_VS_SO_SET_TIMEOUT (IP_VS_BASE_CTL + 10)
56#define IP_VS_SO_SET_STARTDAEMON (IP_VS_BASE_CTL + 11)
57#define IP_VS_SO_SET_STOPDAEMON (IP_VS_BASE_CTL + 12)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059#define IP_VS_SO_SET_RESTORE (IP_VS_BASE_CTL + 13)
60#define IP_VS_SO_SET_SAVE (IP_VS_BASE_CTL + 14)
61#define IP_VS_SO_SET_ZERO (IP_VS_BASE_CTL + 15)
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define IP_VS_SO_SET_MAX IP_VS_SO_SET_ZERO
Elliott Hughes8cb52b02013-11-21 13:43:23 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064#define IP_VS_SO_GET_VERSION IP_VS_BASE_CTL
Tao Baod7db5942015-01-28 10:07:51 -080065#define IP_VS_SO_GET_INFO (IP_VS_BASE_CTL + 1)
66#define IP_VS_SO_GET_SERVICES (IP_VS_BASE_CTL + 2)
67#define IP_VS_SO_GET_SERVICE (IP_VS_BASE_CTL + 3)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069#define IP_VS_SO_GET_DESTS (IP_VS_BASE_CTL + 4)
70#define IP_VS_SO_GET_DEST (IP_VS_BASE_CTL + 5)
71#define IP_VS_SO_GET_TIMEOUT (IP_VS_BASE_CTL + 6)
72#define IP_VS_SO_GET_DAEMON (IP_VS_BASE_CTL + 7)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074#define IP_VS_SO_GET_MAX IP_VS_SO_GET_DAEMON
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define IP_VS_CONN_F_FWD_MASK 0x0007
76#define IP_VS_CONN_F_MASQ 0x0000
77#define IP_VS_CONN_F_LOCALNODE 0x0001
Elliott Hughes8cb52b02013-11-21 13:43:23 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070079#define IP_VS_CONN_F_TUNNEL 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define IP_VS_CONN_F_DROUTE 0x0003
81#define IP_VS_CONN_F_BYPASS 0x0004
82#define IP_VS_CONN_F_SYNC 0x0020
Elliott Hughes8cb52b02013-11-21 13:43:23 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084#define IP_VS_CONN_F_HASHED 0x0040
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define IP_VS_CONN_F_NOOUTPUT 0x0080
86#define IP_VS_CONN_F_INACTIVE 0x0100
87#define IP_VS_CONN_F_OUT_SEQ 0x0200
Elliott Hughes8cb52b02013-11-21 13:43:23 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define IP_VS_CONN_F_IN_SEQ 0x0400
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define IP_VS_CONN_F_SEQ_MASK 0x0600
91#define IP_VS_CONN_F_NO_CPORT 0x0800
92#define IP_VS_CONN_F_TEMPLATE 0x1000
Elliott Hughes8cb52b02013-11-21 13:43:23 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define IP_VS_CONN_F_ONE_PACKET 0x2000
Tao Baod7db5942015-01-28 10:07:51 -080095#define IP_VS_CONN_F_BACKUP_MASK (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_NOOUTPUT | IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK | IP_VS_CONN_F_NO_CPORT | IP_VS_CONN_F_TEMPLATE)
96#define IP_VS_CONN_F_BACKUP_UPD_MASK (IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -070097#define IP_VS_CONN_F_NFCT (1 << 16)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099#define IP_VS_CONN_F_DEST_MASK (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_ONE_PACKET | IP_VS_CONN_F_NFCT | 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define IP_VS_SCHEDNAME_MAXLEN 16
101#define IP_VS_PENAME_MAXLEN 16
102#define IP_VS_IFNAME_MAXLEN 16
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define IP_VS_PEDATA_MAXLEN 255
Ben Cheng655a7c02013-10-16 16:09:24 -0700105struct ip_vs_service_user {
Tao Baod7db5942015-01-28 10:07:51 -0800106 __u16 protocol;
107 __be32 addr;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __be16 port;
110 __u32 fwmark;
111 char sched_name[IP_VS_SCHEDNAME_MAXLEN];
112 unsigned int flags;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 unsigned int timeout;
115 __be32 netmask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116};
117struct ip_vs_dest_user {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __be32 addr;
120 __be16 port;
121 unsigned int conn_flags;
122 int weight;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u32 u_threshold;
125 __u32 l_threshold;
Ben Cheng655a7c02013-10-16 16:09:24 -0700126};
127struct ip_vs_stats_user {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u32 conns;
130 __u32 inpkts;
131 __u32 outpkts;
132 __u64 inbytes;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u64 outbytes;
135 __u32 cps;
136 __u32 inpps;
137 __u32 outpps;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 inbps;
140 __u32 outbps;
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142struct ip_vs_getinfo {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 unsigned int version;
145 unsigned int size;
146 unsigned int num_services;
Ben Cheng655a7c02013-10-16 16:09:24 -0700147};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700149struct ip_vs_service_entry {
Tao Baod7db5942015-01-28 10:07:51 -0800150 __u16 protocol;
151 __be32 addr;
152 __be16 port;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 fwmark;
155 char sched_name[IP_VS_SCHEDNAME_MAXLEN];
156 unsigned int flags;
157 unsigned int timeout;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __be32 netmask;
160 unsigned int num_dests;
161 struct ip_vs_stats_user stats;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164struct ip_vs_dest_entry {
Tao Baod7db5942015-01-28 10:07:51 -0800165 __be32 addr;
166 __be16 port;
167 unsigned int conn_flags;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 int weight;
170 __u32 u_threshold;
171 __u32 l_threshold;
172 __u32 activeconns;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 inactconns;
175 __u32 persistconns;
176 struct ip_vs_stats_user stats;
Ben Cheng655a7c02013-10-16 16:09:24 -0700177};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179struct ip_vs_get_dests {
Tao Baod7db5942015-01-28 10:07:51 -0800180 __u16 protocol;
181 __be32 addr;
182 __be16 port;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u32 fwmark;
185 unsigned int num_dests;
186 struct ip_vs_dest_entry entrytable[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700187};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189struct ip_vs_get_services {
Tao Baod7db5942015-01-28 10:07:51 -0800190 unsigned int num_services;
191 struct ip_vs_service_entry entrytable[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700192};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194struct ip_vs_timeout_user {
Tao Baod7db5942015-01-28 10:07:51 -0800195 int tcp_timeout;
196 int tcp_fin_timeout;
197 int udp_timeout;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199};
Ben Cheng655a7c02013-10-16 16:09:24 -0700200struct ip_vs_daemon_user {
Tao Baod7db5942015-01-28 10:07:51 -0800201 int state;
202 char mcast_ifn[IP_VS_IFNAME_MAXLEN];
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 int syncid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205};
206#define IPVS_GENL_NAME "IPVS"
207#define IPVS_GENL_VERSION 0x1
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700209struct ip_vs_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800210 __u32 flags;
211 __u32 mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700212};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700214enum {
Tao Baod7db5942015-01-28 10:07:51 -0800215 IPVS_CMD_UNSPEC = 0,
216 IPVS_CMD_NEW_SERVICE,
217 IPVS_CMD_SET_SERVICE,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 IPVS_CMD_DEL_SERVICE,
220 IPVS_CMD_GET_SERVICE,
221 IPVS_CMD_NEW_DEST,
222 IPVS_CMD_SET_DEST,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 IPVS_CMD_DEL_DEST,
225 IPVS_CMD_GET_DEST,
226 IPVS_CMD_NEW_DAEMON,
227 IPVS_CMD_DEL_DAEMON,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 IPVS_CMD_GET_DAEMON,
230 IPVS_CMD_SET_CONFIG,
231 IPVS_CMD_GET_CONFIG,
232 IPVS_CMD_SET_INFO,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 IPVS_CMD_GET_INFO,
235 IPVS_CMD_ZERO,
236 IPVS_CMD_FLUSH,
237 __IPVS_CMD_MAX,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700239};
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define IPVS_CMD_MAX (__IPVS_CMD_MAX - 1)
241enum {
Tao Baod7db5942015-01-28 10:07:51 -0800242 IPVS_CMD_ATTR_UNSPEC = 0,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 IPVS_CMD_ATTR_SERVICE,
245 IPVS_CMD_ATTR_DEST,
246 IPVS_CMD_ATTR_DAEMON,
247 IPVS_CMD_ATTR_TIMEOUT_TCP,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 IPVS_CMD_ATTR_TIMEOUT_TCP_FIN,
250 IPVS_CMD_ATTR_TIMEOUT_UDP,
251 __IPVS_CMD_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700252};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700254#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700255enum {
Tao Baod7db5942015-01-28 10:07:51 -0800256 IPVS_SVC_ATTR_UNSPEC = 0,
257 IPVS_SVC_ATTR_AF,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 IPVS_SVC_ATTR_PROTOCOL,
260 IPVS_SVC_ATTR_ADDR,
261 IPVS_SVC_ATTR_PORT,
262 IPVS_SVC_ATTR_FWMARK,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 IPVS_SVC_ATTR_SCHED_NAME,
265 IPVS_SVC_ATTR_FLAGS,
266 IPVS_SVC_ATTR_TIMEOUT,
267 IPVS_SVC_ATTR_NETMASK,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 IPVS_SVC_ATTR_STATS,
270 IPVS_SVC_ATTR_PE_NAME,
271 __IPVS_SVC_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700272};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700274#define IPVS_SVC_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700275enum {
Tao Baod7db5942015-01-28 10:07:51 -0800276 IPVS_DEST_ATTR_UNSPEC = 0,
277 IPVS_DEST_ATTR_ADDR,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 IPVS_DEST_ATTR_PORT,
280 IPVS_DEST_ATTR_FWD_METHOD,
281 IPVS_DEST_ATTR_WEIGHT,
282 IPVS_DEST_ATTR_U_THRESH,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 IPVS_DEST_ATTR_L_THRESH,
285 IPVS_DEST_ATTR_ACTIVE_CONNS,
286 IPVS_DEST_ATTR_INACT_CONNS,
287 IPVS_DEST_ATTR_PERSIST_CONNS,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 IPVS_DEST_ATTR_STATS,
290 IPVS_DEST_ATTR_ADDR_FAMILY,
291 __IPVS_DEST_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700292};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800294#define IPVS_DEST_ATTR_MAX (__IPVS_DEST_ATTR_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700295enum {
Tao Baod7db5942015-01-28 10:07:51 -0800296 IPVS_DAEMON_ATTR_UNSPEC = 0,
297 IPVS_DAEMON_ATTR_STATE,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 IPVS_DAEMON_ATTR_MCAST_IFN,
300 IPVS_DAEMON_ATTR_SYNC_ID,
301 __IPVS_DAEMON_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700302};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800304#define IPVS_DAEMON_ATTR_MAX (__IPVS_DAEMON_ATTR_MAX - 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700305enum {
Tao Baod7db5942015-01-28 10:07:51 -0800306 IPVS_STATS_ATTR_UNSPEC = 0,
307 IPVS_STATS_ATTR_CONNS,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 IPVS_STATS_ATTR_INPKTS,
310 IPVS_STATS_ATTR_OUTPKTS,
311 IPVS_STATS_ATTR_INBYTES,
312 IPVS_STATS_ATTR_OUTBYTES,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 IPVS_STATS_ATTR_CPS,
315 IPVS_STATS_ATTR_INPPS,
316 IPVS_STATS_ATTR_OUTPPS,
317 IPVS_STATS_ATTR_INBPS,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 IPVS_STATS_ATTR_OUTBPS,
320 __IPVS_STATS_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700321};
322#define IPVS_STATS_ATTR_MAX (__IPVS_STATS_ATTR_MAX - 1)
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800324enum {
Tao Baod7db5942015-01-28 10:07:51 -0800325 IPVS_INFO_ATTR_UNSPEC = 0,
326 IPVS_INFO_ATTR_VERSION,
327 IPVS_INFO_ATTR_CONN_TAB_SIZE,
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 __IPVS_INFO_ATTR_MAX,
Christopher Ferris38062f92014-07-09 15:33:25 -0700330};
Ben Cheng655a7c02013-10-16 16:09:24 -0700331#define IPVS_INFO_ATTR_MAX (__IPVS_INFO_ATTR_MAX - 1)
332#endif
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */