From 81db991d2b52ed8dfc1203e2be317065b1cc7fb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 5 Feb 2009 18:47:44 +0000 Subject: [PATCH] - cleanups and -Wall changes Changed files: net-snmp-netlink.patch -> 1.5 --- net-snmp-netlink.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)); -- 2.44.0