summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-11-18 15:24:22 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-11-18 15:24:22 +0000
commite8e6eb479de189dd7023118a9b339535ca0b2b68 (patch)
treef58a86b0f2dc7e8e7f932e30aaaf54443ba8fa54 /net-mgmt/net-snmp53
parent- Update to 1.3.7 (diff)
Unbreak on 4-stable (actually gcc-2.95).
Reported by: krion, Mike Harding <mvh@ix.netcom.com>
Notes
Notes: svn path=/head/; revision=94271
Diffstat (limited to 'net-mgmt/net-snmp53')
-rw-r--r--net-mgmt/net-snmp53/files/patch-ipv6.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/net-mgmt/net-snmp53/files/patch-ipv6.c b/net-mgmt/net-snmp53/files/patch-ipv6.c
index c755184e10c9..0ee3f76c99ad 100644
--- a/net-mgmt/net-snmp53/files/patch-ipv6.c
+++ b/net-mgmt/net-snmp53/files/patch-ipv6.c
@@ -1,5 +1,5 @@
--- agent/mibgroup/mibII/ipv6.c.orig Fri Feb 28 18:13:36 2003
-+++ agent/mibgroup/mibII/ipv6.c Tue Nov 18 12:09:09 2003
++++ agent/mibgroup/mibII/ipv6.c Wed Nov 19 00:16:27 2003
@@ -1238,6 +1238,7 @@
if (!auto_nlist("udb6", (char *) &udb6, sizeof(udb6)))
return NULL;
@@ -75,7 +75,15 @@
j = (int) vp->namelen;
for (i = 0; i < sizeof(struct in6_addr); i++)
newname[j++] = in6pcb.in6p_laddr.s6_addr[i];
-@@ -1646,11 +1656,7 @@
+@@ -1590,6 +1600,7 @@
+ #if defined(__FreeBSD__) && __FreeBSD__ >= 3
+ char *sysctl_buf;
+ struct xinpgen *xig, *oxig;
++ struct xtcpcb *xp;
+ #endif /* defined(__FreeBSD__) && __FreeBSD__ >= 3 */
+
+ if (!initialized) {
+@@ -1646,11 +1657,7 @@
DEBUGMSGTL(("mibII/ipv6", "looping: p=%x\n", p));
#if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
@@ -88,13 +96,13 @@
DEBUGMSGTL(("mibII/ipv6", "klookup fail for in6pcb at %x\n",
p));
break;
-@@ -1662,6 +1668,14 @@
+@@ -1662,6 +1669,14 @@
in6pcb.in6p_ppcb));
break;
}
+#else
+ in6pcb = ((struct xinpcb *) xig)->xi_inp;
-+ struct xtcpcb *xp = (struct xtcpcb *)xig;
++ xp = (struct xtcpcb *)xig;
+ tcp6cb = xp->xt_tp;
+ if (!(in6pcb.inp_vflag & 0x02)) { /* Skip non-IPv6 pcb */
+ goto skip;