]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp-netlink.patch
- cleanups and -Wall changes
[packages/net-snmp.git] / net-snmp-netlink.patch
index 70a00407394ebb00bc57f89a3658a87c5a4ed032..ad5cb3eb0d6f0d3c2de07a7ccd5a7319c4f2fa10 100644 (file)
        $(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 <netinet/tcp_var.h>
  #endif
 +#if HAVE_NETLINK_NETLINK_H
++#include <netlink/helpers.h>
 +#include <netlink/netlink.h>
-+#include <linux/inet_diag.h>
 +#include <sys/socket.h>
 +#include <sys/types.h>
++#include <linux/inet_diag.h>
 +#endif
  
  #include <net-snmp/net-snmp-includes.h>
  #include <net-snmp/agent/net-snmp-agent-includes.h>
-@@ -543,6 +549,95 @@
+@@ -543,6 +550,94 @@
  #else                           /* hpux11 */
  
  #ifdef linux
 +
 +// see <netinet/tcp.h>
-+#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));
This page took 0.078085 seconds and 4 git commands to generate.