57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
$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;
|