IPv6.patch   [plain text]


diff -Naur net-snmp-5.4.1.pre3/agent/mibgroup/mibII/ipv6.c net-snmp/agent/mibgroup/mibII/ipv6.c     
--- net-snmp-5.4.1.pre3/agent/mibgroup/mibII/ipv6.c    2007-05-24 15:01:04.000000000 -0700
+++ net-snmp/agent/mibgroup/mibII/ipv6.c        2007-06-18 22:53:58.000000000 -0700
@@ -1234,7 +1234,11 @@
     int             result;
     int             i, j;
     caddr_t         p;
+#if STRUCT_in6pcb_HAS_inp_vflag
     static struct in6pcb in6pcb, savpcb;
+#else
+    static struct inpcb in6pcb, savpcb;
+#endif
     int             found, savnameLen;
 #if defined(__NetBSD__) && __NetBSD_Version__ >= 106250000     /*1.6Y*/
     struct inpcbtable udbtable;
@@ -1406,8 +1410,13 @@
     int             result;
     int             i, j;
     caddr_t         p;
+#if STRUCT_in6pcb_HAS_inp_vflag
     static struct in6pcb in6pcb, savpcb;
     struct tcp6cb   tcp6cb;
+#else
+    static struct inpcb in6pcb, savpcb;
+    struct tcpcb    tcp6cb;
+#endif
     int             found, savnameLen;
     static int      tcp6statemap[TCP6_NSTATES];
     static int      initialized = 0;
@@ -1645,7 +1654,11 @@
     int             result;
     int             i, j;
     caddr_t         p;
+#if STRUCT_in6pcb_HAS_inp_vflag
     static struct in6pcb in6pcb, savpcb;
+#else
+    static struct inpcb in6pcb, savpcb;
+#endif
     struct tcpcb    tcpcb;
     int             found, savnameLen;
 #if defined(__NetBSD__) && __NetBSD_Version__ >= 106250000     /*1.6Y*/
diff -Naur net-snmp-5.4.1.orig/acconfig.h net-snmp-5.4.1.working/acconfig.h 
--- net-snmp-5.4.1.orig/acconfig.h	2008-04-04 16:43:28.000000000 -0700
+++ net-snmp-5.4.1.working/acconfig.h	2008-04-10 18:35:02.000000000 -0700
@@ -60,7 +60,8 @@
 #undef HAVE_DEVSTAT_GETDEVS
 
 /* define if you have <netinet/in_pcb.h> */
-#undef HAVE_NETINET_IN_PCB_H
+/* #undef HAVE_NETINET_IN_PCB_H */
+#define HAVE_NETINET_IN_PCB_H
 
 /* define if you have <sys/disklabel.h> */
 #undef HAVE_SYS_DISKLABEL_H