X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=net-snmp-netlink.patch;h=ad5cb3eb0d6f0d3c2de07a7ccd5a7319c4f2fa10;hb=81db991d2b52ed8dfc1203e2be317065b1cc7fb9;hp=70a00407394ebb00bc57f89a3658a87c5a4ed032;hpb=5d80d411fd605d80b4231a15e9622e6b98014775;p=packages%2Fnet-snmp.git diff --git a/net-snmp-netlink.patch b/net-snmp-netlink.patch index 70a0040..ad5cb3e 100644 --- a/net-snmp-netlink.patch +++ b/net-snmp-netlink.patch @@ -46,33 +46,33 @@ $(RANLIB) $(MIBLIB) agentlib: $(AGENTLIB) ---- net-snmp-5.4.2.1/agent/mibgroup/mibII/tcpTable.c 2009-01-23 01:22:10.435006124 +0200 -+++ net-snmp-5.4.2.1-nl/agent/mibgroup/mibII/tcpTable.c 2009-01-23 02:28:12.726994792 +0200 -@@ -29,6 +29,12 @@ +--- net-snmp-5.4.2.1-nl/agent/mibgroup/mibII/tcpTable.c 2009-01-23 02:28:12.726994792 +0200 ++++ net-snmp-5.4.2.1/agent/mibgroup/mibII/tcpTable.c 2009-02-05 20:46:32.738258556 +0200 +@@ -29,6 +29,13 @@ #if HAVE_NETINET_TCP_VAR_H #include #endif +#if HAVE_NETLINK_NETLINK_H ++#include +#include -+#include +#include +#include ++#include +#endif #include #include -@@ -543,6 +549,95 @@ +@@ -543,6 +550,94 @@ #else /* hpux11 */ #ifdef linux + +// see -+#define TCP_ALL ((1 << TCP_CLOSING + 1) - 1) ++#define TCP_ALL ((1 << (TCP_CLOSING + 1)) - 1) + +static int +tcpTable_load_netlink() +{ -+ struct inpcb pcb, *nnew; + struct nl_handle nl; + + memset(&nl, 0, sizeof(nl));