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*/