summaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-11-18 15:24:22 +0000
committerkuriyama <kuriyama@FreeBSD.org>2003-11-18 15:24:22 +0000
commit9980f6bed6978faec0c9784e9395f22d2bea1772 (patch)
tree933298b7ca8068c67ffb06fe256bd5c81a185f23 /net-mgmt
parent03706394ad0d4bbc408f16a97fbe81f8ae281d10 (diff)
downloadFreeBSD-ports-9980f6bed6978faec0c9784e9395f22d2bea1772.zip
FreeBSD-ports-9980f6bed6978faec0c9784e9395f22d2bea1772.tar.gz
Unbreak on 4-stable (actually gcc-2.95).
Reported by: krion, Mike Harding <mvh@ix.netcom.com>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-ipv6.c16
-rw-r--r--net-mgmt/net-snmp/files/patch-ipv6.c16
-rw-r--r--net-mgmt/net-snmp53/files/patch-ipv6.c16
3 files changed, 36 insertions, 12 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-ipv6.c b/net-mgmt/net-snmp-devel/files/patch-ipv6.c
index c755184..0ee3f76 100644
--- a/net-mgmt/net-snmp-devel/files/patch-ipv6.c
+++ b/net-mgmt/net-snmp-devel/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;
diff --git a/net-mgmt/net-snmp/files/patch-ipv6.c b/net-mgmt/net-snmp/files/patch-ipv6.c
index c755184..0ee3f76 100644
--- a/net-mgmt/net-snmp/files/patch-ipv6.c
+++ b/net-mgmt/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;
diff --git a/net-mgmt/net-snmp53/files/patch-ipv6.c b/net-mgmt/net-snmp53/files/patch-ipv6.c
index c755184..0ee3f76 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;
OpenPOWER on IntegriCloud