1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
|