summaryrefslogtreecommitdiff
path: root/community/ipvsadm/01-fix-not-showing-all-server.patch
blob: dea23bf76577cf32bc174022d8f5738ae8f3fe68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
--- ipvsadm-1.26.vanilla/libipvs/ip_vs.h	2011-02-06 18:38:57.000000000 -0800
+++ ipvsadm-1.26/libipvs/ip_vs.h	2011-08-23 15:03:59.000000000 -0700
@@ -413,7 +413,7 @@
 	__IPVS_CMD_ATTR_MAX,
 };

-#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
+#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)

 /*
  * Attributes used to describe a service
diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
--- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c	2008-09-18
08:57:37.000000000 -0700
+++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c	2011-08-23 14:45:34.000000000 -0700
@@ -26,6 +26,8 @@
 	[IPVS_SVC_ATTR_TIMEOUT]		= { .type = NLA_U32 },
 	[IPVS_SVC_ATTR_NETMASK]		= { .type = NLA_U32 },
 	[IPVS_SVC_ATTR_STATS]		= { .type = NLA_NESTED },
+	[IPVS_SVC_ATTR_PE_NAME]		= { .type = NLA_STRING,
+					    .maxlen = IP_VS_PENAME_MAXLEN},
 };