summaryrefslogtreecommitdiff
path: root/net/gated
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>1999-11-19 12:03:30 +0000
committerbouyer <bouyer@pkgsrc.org>1999-11-19 12:03:30 +0000
commitf47dd7014c8396ebd0142c1034b87185218b8152 (patch)
tree3c97a3e5aaaccd191d794d65900a319706ef2d4f /net/gated
parenta4c1c9a438faaa11b3898bd4f0a1a83b6f810dcb (diff)
downloadpkgsrc-f47dd7014c8396ebd0142c1034b87185218b8152.tar.gz
Properly handle RTM_OIFINFO.
Diffstat (limited to 'net/gated')
-rw-r--r--net/gated/files/patch-sum4
-rw-r--r--net/gated/patches/patch-ae16
-rw-r--r--net/gated/patches/patch-af57
3 files changed, 76 insertions, 1 deletions
diff --git a/net/gated/files/patch-sum b/net/gated/files/patch-sum
index d8919b9715d..e70c028fe26 100644
--- a/net/gated/files/patch-sum
+++ b/net/gated/files/patch-sum
@@ -1,5 +1,7 @@
-$NetBSD: patch-sum,v 1.1 1999/07/09 14:12:21 agc Exp $
+$NetBSD: patch-sum,v 1.2 1999/11/19 12:03:30 bouyer Exp $
MD5 (patch-aa) = 70ae027039ccc7fbf42e5c313b5b9479
MD5 (patch-ab) = c9078509f43a2f0afef15b87b318e5c4
MD5 (patch-ad) = 031e9d187ed51dca4df124cc823bf151
+MD5 (patch-ae) = 41a52e7d2c4343fb49d64731891d2eb8
+MD5 (patch-af) = 108a5ef1d3afe5a858b432a3c35fd057
diff --git a/net/gated/patches/patch-ae b/net/gated/patches/patch-ae
new file mode 100644
index 00000000000..90f014a2a0a
--- /dev/null
+++ b/net/gated/patches/patch-ae
@@ -0,0 +1,16 @@
+$NetBSD: patch-ae,v 1.1 1999/11/19 12:03:31 bouyer Exp $
+
+--- src/krt_ifread_kinfo.c.old Fri Nov 19 12:37:27 1999
++++ src/krt_ifread_kinfo.c Fri Nov 19 12:42:20 1999
+@@ -218,6 +218,11 @@
+ ifl);
+ break;
+
++#ifdef RTM_OIFINFO
++ case RTM_OIFINFO: /* just ignore compat message */
++ continue;
++#endif
++
+ default:
+ trace_log_tp(tp,
+ 0,
diff --git a/net/gated/patches/patch-af b/net/gated/patches/patch-af
new file mode 100644
index 00000000000..5a074519ad8
--- /dev/null
+++ b/net/gated/patches/patch-af
@@ -0,0 +1,57 @@
+$NetBSD: patch-af,v 1.1 1999/11/19 12:03:31 bouyer Exp $
+
+--- src/krt_rt_sock.c.old Fri Nov 19 12:37:33 1999
++++ src/krt_rt_sock.c Fri Nov 19 12:46:17 1999
+@@ -103,6 +103,9 @@
+ #ifdef RTM_DELADDR
+ {RTM_DELADDR, "DELADDR"},
+ #endif /* RTM_DELADDR */
++#ifdef RTM_OIFINFO
++ {RTM_OIFINFO, "RTM_OIFINFO"},
++#endif /* RTM_OIFINFO */
+ #ifdef RTM_IFINFO
+ {RTM_IFINFO, "IFINFO"},
+ #endif /* RTM_IFINFO */
+@@ -185,7 +188,8 @@
+ TR_KRT_PACKET_OTHER, /* 11 - RTM_RESOLVE */
+ TR_KRT_PACKET_INTERFACE, /* 12 - RTM_NEWADDR */
+ TR_KRT_PACKET_INTERFACE, /* 13 - RTM_DELADDR */
+- TR_KRT_PACKET_INTERFACE, /* 14 - RTM_IFINFO */
++ TR_KRT_PACKET_OTHER, /* 14 - RTM_OIFINFO */
++ TR_KRT_PACKET_INTERFACE, /* 15 - RTM_IFINFO */
+ } ;
+
+
+@@ -246,6 +250,10 @@
+ break;
+
+ #ifdef KRT_IFREAD_KINFO
++#ifdef RTM_OIFINFO
++ case RTM_OIFINFO:
++ return (krt_addrinfo *) 0;
++#endif
+ case RTM_IFINFO:
+ ap = (struct sockaddr *) (((struct if_msghdr *) rtp) + 1);
+ addrinfo.rti_addrs = ((struct if_msghdr *) rtp)->ifm_addrs;
+@@ -659,6 +667,10 @@
+ break;
+
+ #ifdef KRT_IFREAD_KINFO
++#ifdef RTM_OIFINFO
++ case RTM_OIFINFO:
++ return;
++#endif
+ case RTM_IFINFO:
+ {
+ struct if_msghdr *ifap = (struct if_msghdr *) rtp;
+@@ -1768,6 +1780,10 @@
+ break;
+
+ #ifdef KRT_IFREAD_KINFO
++#ifdef RTM_OIFINFO
++ case RTM_OIFINFO:
++ break;
++#endif
+ case RTM_IFINFO:
+ {
+ struct if_msghdr *ifp = (struct if_msghdr *) rtp;