aboutsummaryrefslogtreecommitdiffstats
path: root/net/net-snmp
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-11-18 23:24:22 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-11-18 23:24:22 +0800
commit9980f6bed6978faec0c9784e9395f22d2bea1772 (patch)
tree933298b7ca8068c67ffb06fe256bd5c81a185f23 /net/net-snmp
parent03706394ad0d4bbc408f16a97fbe81f8ae281d10 (diff)
downloadfreebsd-ports-gnome-9980f6bed6978faec0c9784e9395f22d2bea1772.tar.gz
freebsd-ports-gnome-9980f6bed6978faec0c9784e9395f22d2bea1772.tar.zst
freebsd-ports-gnome-9980f6bed6978faec0c9784e9395f22d2bea1772.zip
Unbreak on 4-stable (actually gcc-2.95).
Reported by: krion, Mike Harding <mvh@ix.netcom.com>
Diffstat (limited to 'net/net-snmp')
-rw-r--r--net/net-snmp/files/patch-ipv6.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/net/net-snmp/files/patch-ipv6.c b/net/net-snmp/files/patch-ipv6.c
index c755184e10c9..0ee3f76c99ad 100644
--- a/net/net-snmp/files/patch-ipv6.c
+++ b/net/net-snmp/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;