On 2013/10/15 00:43, Alexander Bluhm wrote: > Hi, > > Convert the route expire timestamp in kernel and routing message > to 64 bit. Add a small compatibility layer that allows to set > routes with old user land and new kernel.
ports-wise, here's output from a search for rt_metrics/rt_kmetrics/rt_msghdr. for many, making sure they update (e.g. libc bump or explicit port REVISION bump) is all that's needed, but others e.g. openvpn will need more work. netperf-2.6.0/netperf-2.6.0/src/netrt_rtmget.c 268:#define BUFLEN (sizeof(struct rt_msghdr) + 512) 275: struct rt_msghdr *rtm; 300: rtm = (struct rt_msghdr *)buffer; 302: rtm->rtm_msglen = sizeof(struct rt_msghdr); 325: rtm->rtm_version = RTM_VERSION; 331: /* point just beyond the rt_msghdr. */ 344: if (ret < sizeof(struct rt_msghdr)) { llvm-3.3/llvm-3.3.src/test/CodeGen/X86/2009-04-29-LinearScanBug.ll 98: %struct.rt_metrics = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32] } 99: %struct.rtentry = type { [2 x %struct.radix_node], %struct.sockaddr*, i32, i32, %struct.ifnet*, %struct.ifaddr*, %struct.sockaddr*, i8*, void (i8*)*, %struct.rt_metrics, %struct.rtentry*, %struct.rtentry*, i32, %struct.lck_mtx_t } ptlib-2.10.10/ptlib-2.10.10/src/ptlib/unix/socket.cxx 1105:PBoolean process_rtentry(struct rt_msghdr *rtm, char *ptr, unsigned long *p_net_addr, 1114: struct rt_msghdr *rtm; 1160: rtm = (struct rt_msghdr *)ptr; 1180:PBoolean process_rtentry(struct rt_msghdr *rtm, char *ptr, unsigned long *p_net_addr, gcc-4.8.1/gcc-4.8.1/libgo/go/syscall/route_bsd.go 188: if any.Version != RTM_VERSION { go-1.1.1/go/api/go1.txt 6652:pkg syscall (darwin-386), const RTM_VERSION ideal-int 8470:pkg syscall (darwin-386-cgo), const RTM_VERSION ideal-int 10288:pkg syscall (darwin-amd64), const RTM_VERSION ideal-int 12113:pkg syscall (darwin-amd64-cgo), const RTM_VERSION ideal-int 14155:pkg syscall (freebsd-386), const RTM_VERSION ideal-int 16127:pkg syscall (freebsd-amd64), const RTM_VERSION ideal-int go-1.1.1/go/src/pkg/syscall/route_bsd.go 179: if any.Version != RTM_VERSION { go-1.1.1/go/src/pkg/syscall/types_darwin.go 196: SizeofRtMsghdr = C.sizeof_struct_rt_msghdr 197: SizeofRtMetrics = C.sizeof_struct_rt_metrics 210:type RtMsghdr C.struct_rt_msghdr 212:type RtMetrics C.struct_rt_metrics go-1.1.1/go/src/pkg/syscall/types_freebsd.go 201: SizeofRtMsghdr = C.sizeof_struct_rt_msghdr 202: SizeofRtMetrics = C.sizeof_struct_rt_metrics 215:type RtMsghdr C.struct_rt_msghdr 217:type RtMetrics C.struct_rt_metrics go-1.1.1/go/src/pkg/syscall/types_netbsd.go 178: SizeofRtMsghdr = C.sizeof_struct_rt_msghdr 179: SizeofRtMetrics = C.sizeof_struct_rt_metrics 190:type RtMsghdr C.struct_rt_msghdr 192:type RtMetrics C.struct_rt_metrics go-1.1.1/go/src/pkg/syscall/types_openbsd.go 194: SizeofRtMsghdr = C.sizeof_struct_rt_msghdr 195: SizeofRtMetrics = C.sizeof_struct_rt_metrics 206:type RtMsghdr C.struct_rt_msghdr 208:type RtMetrics C.struct_rt_metrics go-1.1.1/go/src/pkg/syscall/zerrors_darwin_386.go 841: RTM_VERSION = 0x5 go-1.1.1/go/src/pkg/syscall/zerrors_darwin_amd64.go 841: RTM_VERSION = 0x5 go-1.1.1/go/src/pkg/syscall/zerrors_netbsd_386.go 1109: RTM_VERSION = 0x4 go-1.1.1/go/src/pkg/syscall/zerrors_freebsd_386.go 1162: RTM_VERSION = 0x5 go-1.1.1/go/src/pkg/syscall/zerrors_freebsd_amd64.go 1162: RTM_VERSION = 0x5 go-1.1.1/go/src/pkg/syscall/zerrors_freebsd_arm.go 1167: RTM_VERSION = 0x5 go-1.1.1/go/src/pkg/syscall/zerrors_netbsd_amd64.go 1099: RTM_VERSION = 0x4 go-1.1.1/go/src/pkg/syscall/zerrors_openbsd_amd64.go 1006: RTM_VERSION = 0x4 go-1.1.1/go/src/pkg/syscall/zerrors_openbsd_386.go 1000: RTM_VERSION = 0x4 go-1.1.1/go/src/pkg/syscall/zerrors_netbsd_arm.go 1099: RTM_VERSION = 0x4 fetchmail-6.3.24/fetchmail-6.3.24/interface.c 445: if (ifm->ifm_version != RTM_VERSION) avahi-0.6.31/avahi-0.6.31/avahi-core/iface-pfroute.c 60:static void rtm_info(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) 119:static void rtm_addr(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) 237:static void parse_rtmsg(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) 242: if (rtm->rtm_version != RTM_VERSION) { 279: parse_rtmsg((struct rt_msghdr *)msg, m); 457: struct rt_msghdr *rtm; 490: rtm = (struct rt_msghdr *)next; avahi-0.6.31/avahi-0.6.31/avahi-autoipd/iface-bsd.c 85: struct rt_msghdr rtm; 233: struct rt_msghdr *rtm; 274: if (rtm->rtm_version != RTM_VERSION) { bird-1.3.10/bird-1.3.10/sysdep/bsd/krt-sock.c 43: struct rt_msghdr rtm; 98: bzero(&msg,sizeof (struct rt_msghdr)); 99: msg.rtm.rtm_version = RTM_VERSION; bird-1.3.10-v6/bird-1.3.10/sysdep/bsd/krt-sock.c 43: struct rt_msghdr rtm; 98: bzero(&msg,sizeof (struct rt_msghdr)); 99: msg.rtm.rtm_version = RTM_VERSION; dnsmasq-2.66/dnsmasq-2.66/src/bpf.c 41: struct rt_msghdr *rtm; 77: rtm = (struct rt_msghdr *)next; gtk-gnutella-0.97.1/gtk-gnutella-0.97.1/src/lib/getgateway.c 293: struct rt_msghdr head; 296: struct rt_msghdr * const rt = &rtm.head; 313: rt->rtm_version = RTM_VERSION; ipcad-3.7.3/ipcad-3.7.3/loop-dynamic.c 43: struct rt_msghdr *rtm; 99: if(rtm->rtm_version != RTM_VERSION) { libdnet-1.12/libdnet-1.12/aclocal.m4 6823:dnl Check for rt_msghdr struct in <net/route.h> 6829: [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>) 6830: AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr, 6836: [struct rt_msghdr rtm; rtm.rtm_msglen = 0;], 6837: ac_cv_dnet_route_h_has_rt_msghdr=yes, 6838: ac_cv_dnet_route_h_has_rt_msghdr=no)) 6839: AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr) 6840: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 6842: [Define if <net/route.h> has rt_msghdr struct.]) libdnet-1.12/libdnet-1.12/config/acinclude.m4 70:dnl Check for rt_msghdr struct in <net/route.h> 76: [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>) 77: AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr, 83: [struct rt_msghdr rtm; rtm.rtm_msglen = 0;], 84: ac_cv_dnet_route_h_has_rt_msghdr=yes, 85: ac_cv_dnet_route_h_has_rt_msghdr=no)) 86: AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr) 87: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 89: [Define if <net/route.h> has rt_msghdr struct.]) libdnet-1.12/libdnet-1.12/configure.in 221:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 291:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then libdnet-1.12/libdnet-1.12/include/config.h.in 136:/* Define if <net/route.h> has rt_msghdr struct. */ libdnet-1.12/libdnet-1.12/src/arp-bsd.c 44: struct rt_msghdr rtm; 71: msg->rtm.rtm_version = RTM_VERSION; 265: struct rt_msghdr *rtm; 290: rtm = (struct rt_msghdr *)next; libdnet-1.12/libdnet-1.12/configure 21604: echo "$as_me:$LINENO: checking for rt_msghdr struct in <net/route.h>" >&5 21605:echo $ECHO_N "checking for rt_msghdr struct in <net/route.h>... $ECHO_C" >&6 21606: if test "${ac_cv_dnet_route_h_has_rt_msghdr+set}" = set; then 21623:struct rt_msghdr rtm; rtm.rtm_msglen = 0; 21650: ac_cv_dnet_route_h_has_rt_msghdr=yes 21655:ac_cv_dnet_route_h_has_rt_msghdr=no 21660: echo "$as_me:$LINENO: result: $ac_cv_dnet_route_h_has_rt_msghdr" >&5 21661:echo "${ECHO_T}$ac_cv_dnet_route_h_has_rt_msghdr" >&6 21662: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 22137:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 22376:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then libdnet-1.12/libdnet-1.12/src/route-bsd.c 67:route_msg_print(struct rt_msghdr *rtm) 79: struct rt_msghdr *rtm; 87: rtm = (struct rt_msghdr *)buf; 88: rtm->rtm_version = RTM_VERSION; 220: struct rt_msghdr *rtm; 270: rtm = (struct rt_msghdr *)next; libdnet-1.12/libdnet-1.12/trunk/config/acinclude.m4 70:dnl Check for rt_msghdr struct in <net/route.h> 76: [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>) 77: AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr, 83: [struct rt_msghdr rtm; rtm.rtm_msglen = 0;], 84: ac_cv_dnet_route_h_has_rt_msghdr=yes, 85: ac_cv_dnet_route_h_has_rt_msghdr=no)) 86: AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr) 87: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 89: [Define if <net/route.h> has rt_msghdr struct.]) libdnet-1.12/libdnet-1.12/trunk/configure.in 221:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 291:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then libdnet-1.12/libdnet-1.12/trunk/include/config.h.in 136:/* Define if <net/route.h> has rt_msghdr struct. */ libdnet-1.12/libdnet-1.12/trunk/aclocal.m4 7320:dnl Check for rt_msghdr struct in <net/route.h> 7326: [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>) 7327: AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr, 7333: [struct rt_msghdr rtm; rtm.rtm_msglen = 0;], 7334: ac_cv_dnet_route_h_has_rt_msghdr=yes, 7335: ac_cv_dnet_route_h_has_rt_msghdr=no)) 7336: AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr) 7337: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 7339: [Define if <net/route.h> has rt_msghdr struct.]) libdnet-1.12/libdnet-1.12/trunk/configure 21218: echo "$as_me:$LINENO: checking for rt_msghdr struct in <net/route.h>" >&5 21219:echo $ECHO_N "checking for rt_msghdr struct in <net/route.h>... $ECHO_C" >&6 21220: if test "${ac_cv_dnet_route_h_has_rt_msghdr+set}" = set; then 21237:struct rt_msghdr rtm; rtm.rtm_msglen = 0; 21264: ac_cv_dnet_route_h_has_rt_msghdr=yes 21269:ac_cv_dnet_route_h_has_rt_msghdr=no 21274: echo "$as_me:$LINENO: result: $ac_cv_dnet_route_h_has_rt_msghdr" >&5 21275:echo "${ECHO_T}$ac_cv_dnet_route_h_has_rt_msghdr" >&6 21276: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 21751:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 21990:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then libdnet-1.12/libdnet-1.12/trunk/src/arp-bsd.c 44: struct rt_msghdr rtm; 71: msg->rtm.rtm_version = RTM_VERSION; 265: struct rt_msghdr *rtm; 290: rtm = (struct rt_msghdr *)next; libdnet-1.12/libdnet-1.12/trunk/src/route-bsd.c 67:route_msg_print(struct rt_msghdr *rtm) 79: struct rt_msghdr *rtm; 87: rtm = (struct rt_msghdr *)buf; 88: rtm->rtm_version = RTM_VERSION; 220: struct rt_msghdr *rtm; 270: rtm = (struct rt_msghdr *)next; libnatpmp-20120821/libnatpmp-20120821/getgateway.c 195: struct rt_msghdr * rt; 210: rt = (struct rt_msghdr *)p; 246: struct rt_msghdr m_rtm; 257: struct rt_msghdr *msg_hdr; 265: memset(&rtm, 0, sizeof(struct rt_msghdr)); 269: rtm.rtm_version = RTM_VERSION; miniupnpd-1.8/miniupnpd-1.8/bsd/getroute.c 35: struct rt_msghdr m_rtm; 56: rtm.rtm_version = RTM_VERSION; 60: rtm.rtm_msglen = sizeof(struct rt_msghdr) + sizeof(struct sockaddr); miniupnpd-1.8/miniupnpd-1.8/bsd/ifacewatcher.c 53: struct rt_msghdr * rtm; 71: rtm = (struct rt_msghdr *)buf; minissdpd-1.2/minissdpd-1.2/ifacewatch.c 186: struct rt_msghdr * rtm; 206: rtm = (struct rt_msghdr *)buffer; mrtd-2.2.2a/mrt-2.2.2a/src/lib/kernel/bsd.c 46: struct rt_msghdr m_rtm; 80: struct rt_metrics rt_metrics; 91: bzero ((char *) &rt_metrics, sizeof (rt_metrics)); 218: m_rtmsg.m_rtm.rtm_version = RTM_VERSION; 221: m_rtmsg.m_rtm.rtm_rmx = rt_metrics; 282: struct rt_msghdr *rtm; 356: rtm = (struct rt_msghdr *) alloca (size); 360: rtm->rtm_version = RTM_VERSION; 397: struct rt_msghdr *rtm; 408: rtm = (struct rt_msghdr *) next; 410: if (rtm->rtm_version != RTM_VERSION) { 413: rtm->rtm_version, RTM_VERSION); mrtd-2.2.2a/mrt-2.2.2a/src/lib/kernel/solaris.c 559: struct rt_msghdr m_rtm; 598: struct rt_metrics rt_metrics; 609: bzero ((char *) &rt_metrics, sizeof (rt_metrics)); 747: m_rtmsg.m_rtm.rtm_version = RTM_VERSION; 750: m_rtmsg.m_rtm.rtm_rmx = rt_metrics; 813: struct rt_msghdr *rtm; 824: rtm = (struct rt_msghdr *) next; 826: if (rtm->rtm_version != RTM_VERSION) { 829: rtm->rtm_version, RTM_VERSION); natpmpd-1.4/natpmpd-1.4/natpmpd.c 284: struct rt_msghdr *rtm = (struct rt_msghdr *)&msg; 293: if (rtm->rtm_version != RTM_VERSION) netatalk-2.2.3/netatalk-2.2.3/etc/atalkd/route.c 53: struct rt_msghdr rtma_rtm; 65: rtma.rtma_rtm.rtm_version = RTM_VERSION; nmap-6.25/nmap-6.25/libdnet-stripped/configure 13911: { $as_echo "$as_me:$LINENO: checking for rt_msghdr struct in <net/route.h>" >&5 13912:$as_echo_n "checking for rt_msghdr struct in <net/route.h>... " >&6; } 13913: if test "${ac_cv_dnet_route_h_has_rt_msghdr+set}" = set; then 13930:struct rt_msghdr rtm; rtm.rtm_msglen = 0; 13953: ac_cv_dnet_route_h_has_rt_msghdr=yes 13958: ac_cv_dnet_route_h_has_rt_msghdr=no 13964: { $as_echo "$as_me:$LINENO: result: $ac_cv_dnet_route_h_has_rt_msghdr" >&5 13965:$as_echo "$ac_cv_dnet_route_h_has_rt_msghdr" >&6; } 13966: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 14665:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 14793:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then nmap-6.25/nmap-6.25/libdnet-stripped/src/route-bsd.c 71:route_msg_print(struct rt_msghdr *rtm) 83: struct rt_msghdr *rtm; 91: rtm = (struct rt_msghdr *)buf; 92: rtm->rtm_version = RTM_VERSION; 262: struct rt_msghdr *rtm; 331: rtm = (struct rt_msghdr *)next; nmap-6.25/nmap-6.25/libdnet-stripped/src/arp-bsd.c 44: struct rt_msghdr rtm; 71: msg->rtm.rtm_version = RTM_VERSION; 265: struct rt_msghdr *rtm; 290: rtm = (struct rt_msghdr *)next; nmap-6.25/nmap-6.25/libdnet-stripped/include/dnet_winconfig.h 140:/* Define if <net/route.h> has rt_msghdr struct. */ nmap-6.25/nmap-6.25/libdnet-stripped/include/config.h.in 142:/* Define if <net/route.h> has rt_msghdr struct. */ 314: rt_msghdr should be padded so their addresses start on a multiple of nmap-6.25/nmap-6.25/libdnet-stripped/config/acinclude.m4 70:dnl Check for rt_msghdr struct in <net/route.h> 76: [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>) 77: AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr, 83: [struct rt_msghdr rtm; rtm.rtm_msglen = 0;], 84: ac_cv_dnet_route_h_has_rt_msghdr=yes, 85: ac_cv_dnet_route_h_has_rt_msghdr=no)) 86: AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr) 87: if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then 89: [Define if <net/route.h> has rt_msghdr struct.]) nmap-6.25/nmap-6.25/libdnet-stripped/configure.in 224:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then 271:elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then nmap-6.25/nmap-6.25/libdnet-stripped/NMAP_MODIFICATIONS 1291:@@ -76,7 +77,7 @@ route_msg_print(struct rt_msghdr *rtm) 1299: struct rt_msghdr *rtm; 1351: rtm = (struct rt_msghdr *)next; ntp-4.2.6pl5/ntp-4.2.6p5/configure.ac 933: [for struct rt_msghdr], 934: [ntp_cv_struct_rt_msghdr], 944: struct rt_msghdr p; 947: [ntp_cv_struct_rt_msghdr=yes], 948: [ntp_cv_struct_rt_msghdr=no] 971:case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 974: [Do we have a routing socket (rt_msghdr or rtattr)?]) ntp-4.2.6pl5/ntp-4.2.6p5/ntpd/ntp_io.c 4393: struct rt_msghdr *rtm; 4427: (p + sizeof(struct rt_msghdr)) <= (buffer + cnt); 4429: rtm = (struct rt_msghdr *)p; 4430: if (rtm->rtm_version != RTM_VERSION) { 4433: rtm->rtm_version, RTM_VERSION); ntp-4.2.6pl5/ntp-4.2.6p5/config.h.in 291:/* Do we have a routing socket (rt_msghdr or rtattr)? */ ntp-4.2.6pl5/ntp-4.2.6p5/configure 18090:{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 18091:$as_echo_n "checking for struct rt_msghdr... " >&6; } 18092:if ${ntp_cv_struct_rt_msghdr+:} false; then : 18107: struct rt_msghdr p; 18115: ntp_cv_struct_rt_msghdr=yes 18117: ntp_cv_struct_rt_msghdr=no 18123:{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 18124:$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 18161:case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in ntp-4.2.6pl5/ntp-4.2.6p5/CommitLog 63107: Fix the configure.ac check for rt_msghdr 63110: Fix the configure.ac check for rt_msghdr 66462: look for net/route.h and struct rt_msghdr 66465: look for net/route.h and struct rt_msghdr olsrd-0.6.0/olsrd-0.6.0/src/bsd/kernel_routes.c 68: * - a header i.e. struct rt_msghdr 74: struct rt_msghdr *rtm; /* message to send to the routing socket */ 106: rtm = (struct rt_msghdr *)buff; 108: rtm->rtm_version = RTM_VERSION; 116: walker = buff + sizeof(struct rt_msghdr); 231: struct rt_msghdr *rtm; 263: rtm = (struct rt_msghdr *)buff; 264: rtm->rtm_version = RTM_VERSION; 272: walker = buff + sizeof(struct rt_msghdr); 347: struct rt_msghdr *drtm; 351: drtm = (struct rt_msghdr *)dbuff; 352: drtm->rtm_version = RTM_VERSION; 358: walker = dbuff + sizeof(struct rt_msghdr); openmdns-0.5/openmdns-0.5/mdnsd/kiface.c 169: if (ifm.ifm_version != RTM_VERSION) 257: struct rt_msghdr *rtm; 270: rtm = (struct rt_msghdr *)next; 271: if (rtm->rtm_version != RTM_VERSION) openvpn-2.3.1/openvpn-2.3.1/src/openvpn/route.c 2606:#define RTM_VERSION 5 2615:struct rt_metrics { 2632:struct rt_msghdr { 2644: struct rt_metrics rtm_rmx; /* metrics themselves */ 2648: struct rt_msghdr m_rtm; 2666: struct rt_msghdr *rtm_aux; 2685: bzero(&rtm, sizeof(struct rt_msghdr)); 2689: rtm.rtm_version = RTM_VERSION; 2760: struct rt_msghdr m_rtm; 2786: struct rt_msghdr *rtm_aux; 2800: bzero(&rtm, sizeof(struct rt_msghdr)); 2804: rtm.rtm_version = RTM_VERSION; 2973:#define RTM_VERSION 3 /* Up the ante and ignore older versions */ 2981:struct rt_metrics { 2997:struct rt_msghdr { 3009: struct rt_metrics rtm_rmx; /* metrics themselves */ 3013: struct rt_msghdr m_rtm; 3032: struct rt_msghdr *rtm_aux; 3051: bzero(&rtm, sizeof(struct rt_msghdr)); 3055: rtm.rtm_version = RTM_VERSION; p5-Net-RawIP-0.25/Net-RawIP-0.25/eth.c 197: struct rt_msghdr *rtm; 216: rtm = (struct rt_msghdr *)next; p5-Net-RawIP-0.25/Net-RawIP-0.25/rdev.c 111: register struct rt_msghdr *rtm; 134: rtm = (struct rt_msghdr *)next; pidgin-2.10.7/pidgin-2.10.7/libpurple/nat-pmp.c 182: struct rt_msghdr *rtm; 218: rtm = (struct rt_msghdr *)next; pidgin-2.10.7-gtkspell/pidgin-2.10.7/libpurple/nat-pmp.c 182: struct rt_msghdr *rtm; 218: rtm = (struct rt_msghdr *)next; quagga-0.99.22.1/quagga-0.99.22.1/zebra/kernel_socket.c 756:rtm_read_mesg (struct rt_msghdr *rtm, 769: /* rt_msghdr version check. */ 770: if (rtm->rtm_version != RTM_VERSION) 773: "This may cause problem\n", rtm->rtm_version, RTM_VERSION); 803:rtm_read (struct rt_msghdr *rtm) 1013: /* Struct of rt_msghdr and buffer for storing socket's data. */ 1016: struct rt_msghdr rtm; 1023: /* Clear and set rt_msghdr values */ 1024: memset (&msg, 0, sizeof (struct rt_msghdr)); 1025: msg.rtm.rtm_version = RTM_VERSION; 1136:rtmsg_debug (struct rt_msghdr *rtm) 1159: struct rt_msghdr *rtm; 1175: struct rt_msghdr rtm; quagga-0.99.22.1/quagga-0.99.22.1/zebra/kernel_socket.h 26:extern void rtm_read (struct rt_msghdr *); quagga-0.99.22.1/quagga-0.99.22.1/zebra/rtread_sysctl.c 38: struct rt_msghdr *rtm; 70: rtm = (struct rt_msghdr *) buf; scamper-0.0.20111202b/scamper-cvs-20111202b/scamper/scamper_addr2mac.c 440: struct rt_msghdr *rtm; 484: rtm = (struct rt_msghdr *)(buf + j); j += sizeof(struct rt_msghdr); 530: rtm = (struct rt_msghdr *)(buf + j); j += sizeof(struct rt_msghdr); scamper-0.0.20111202b/scamper-cvs-20111202b/scamper/scamper_rtsock.c 256: struct rt_msghdr *rtm; 272: len = sizeof(struct rt_msghdr) + rt_roundup(slen) + 278: rtm = (struct rt_msghdr *)buf; 280: rtm->rtm_version = RTM_VERSION; 285: memcpy(buf + sizeof(struct rt_msghdr), &sas, (size_t)slen); 287: sdl = (struct sockaddr_dl *)(buf+sizeof(struct rt_msghdr)+rt_roundup(slen)); 533: struct rt_msghdr *rtm; 548: if(len - x < sizeof(struct rt_msghdr)) 550: scamper_debug(__func__,"len %d != %d",len,sizeof(struct rt_msghdr)); 558: rtm = (struct rt_msghdr *)(buf + x); 582: off = sizeof(struct rt_msghdr); trafshow-3.1/trafshow-3.1/getarptab.c 43: struct rt_msghdr *rtm; 61: rtm = (struct rt_msghdr *)next; transmission-2.80/transmission-2.80/third-party/libnatpmp/getgateway.c 195: struct rt_msghdr * rt; 210: rt = (struct rt_msghdr *)p; 246: struct rt_msghdr m_rtm; 257: struct rt_msghdr *msg_hdr; 265: memset(&rtm, 0, sizeof(struct rt_msghdr)); 269: rtm.rtm_version = RTM_VERSION; wmifinfo-0.09/wmifinfo-0.09/wmifinfo.c 521: struct rt_msghdr *rtm = NULL; 552: rtm = (struct rt_msghdr *)next; xorp-1.6/xorp-1.6/configure 33499: int rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/test_monitor.c 43:extern void print_rtmsg(struct rt_msghdr *, int); /* XXX client_rtmsg.c */ 85: print_rtmsg((struct rt_msghdr *) msg, n); xorp-1.6/xorp-1.6/contrib/win32/xorprtm/print_rtmsg.c 124:struct rt_metrics rt_metrics; 474: struct rt_msghdr m_rtm; 517: struct rt_msghdr *rtm; 528: if (rtm->rtm_version != RTM_VERSION) { 591: struct rt_msghdr *rtm; 601: if (rtm->rtm_version != RTM_VERSION) { 664: struct rt_msghdr *rtm; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/test_routeaddwait.c 43:extern void print_rtmsg(struct rt_msghdr *, int); /* XXX client_rtmsg.c */ 50: struct rt_msghdr *msg; 85: msg->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/test_routeadd.c 48: struct rt_msghdr *msg; 83: msg->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/xorprtm.c 57:int rtm_add_route(struct rt_msghdr *rtm, int msgsize); 152: struct rt_msghdr *rtm; 160: maxmsgsize = sizeof(struct rt_msghdr) + (sizeof(sockunion_t) * 3); 167: rtm->rtm_version = RTM_VERSION; 780: struct rt_msghdr *rtm; 823: rtm = (struct rt_msghdr *)&pp->rbuf[0]; 824: if (rtm->rtm_version != RTM_VERSION) { 832: nbytes < sizeof(struct rt_msghdr)) { 1459:rtm_add_route(struct rt_msghdr *rtm, int msgsize) 1461: static const proper_msgsize = (sizeof(struct rt_msghdr) + 1618:rtm_delete_route(struct rt_msghdr *rtm, int msgsize) 1620: static const min_msgsize = (sizeof(struct rt_msghdr) + 1765: ifa->ifan_version = RTM_VERSION; /* XXX should set to 0 or ignore */ 1805: ifm->ifm_version = RTM_VERSION; 1875: ifam->ifam_version = RTM_VERSION; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/test_routeadddelete.c 43:extern void print_rtmsg(struct rt_msghdr *, int); /* XXX client_rtmsg.c */ 50: struct rt_msghdr *msg; 51: struct rt_msghdr *dmsg; 94: msg->rtm_version = RTM_VERSION; 120: dmsg->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/contrib/win32/xorprtm/bsdroute.h 152:struct rt_metrics { 159:struct rt_msghdr { 172: struct rt_metrics rtm_rmx; /* metrics themselves */ 175:#define RTM_VERSION 66 /* Unique to XORP/Win32 */ xorp-1.6/xorp-1.6/config/acsocket.m4 241: int rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc 219: if (ifm->ifm_version != RTM_VERSION) { 224: // RTM_VERSION and once as RTM_OVERSION, hence we need to ignore 231: RTM_VERSION, xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_entry_get_routing_socket.cc 157: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 160: struct rt_msghdr rtm; 162: struct rt_msghdr* rtm = &buffer.rtm; 206: rtm->rtm_version = RTM_VERSION; 276: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 279: struct rt_msghdr rtm; 281: struct rt_msghdr* rtm = &buffer.rtm; 325: rtm->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_entry_set_routing_socket.cc 149: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 152: struct rt_msghdr rtm; 154: struct rt_msghdr* rtm = &buffer.rtm; 296: rtm->rtm_version = RTM_VERSION; 402: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 405: struct rt_msghdr rtm; 407: struct rt_msghdr* rtm = &buffer.rtm; 472: rtm->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_entry_get_rtmv2.cc 163: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 166: struct rt_msghdr rtm; 168: struct rt_msghdr* rtm = &buffer.rtm; 212: rtm->rtm_version = RTM_VERSION; 290: static const size_t buffer_size = sizeof(struct rt_msghdr) + 512; 293: struct rt_msghdr rtm; 295: struct rt_msghdr* rtm = &buffer.rtm; 339: rtm->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_entry_set_rtmv2.cc 167: static const size_t buffer_size = sizeof(struct rt_msghdr) 171: struct rt_msghdr rtm; 173: struct rt_msghdr* rtm = &buffer.rtm; 252: rtm->rtm_version = RTM_VERSION; 288: static const size_t buffer_size = sizeof(struct rt_msghdr) 292: struct rt_msghdr rtm; 294: struct rt_msghdr* rtm = &buffer.rtm; 336: rtm->rtm_version = RTM_VERSION; xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_table_parse_routing_socket.cc 66: AlignData<struct rt_msghdr> align_data(buffer); 67: const struct rt_msghdr* rtm; 75: if (rtm->rtm_version != RTM_VERSION) { 80: // RTM_VERSION and once as RTM_OVERSION, hence we need to ignore 87: RTM_VERSION, xorp-1.6/xorp-1.6/fea/data_plane/fibconfig/fibconfig_entry_parse_routing_socket.cc 60: AlignData<struct rt_msghdr> align_data(buffer); 61: const struct rt_msghdr* rtm; 69: if (rtm->rtm_version != RTM_VERSION) { 74: // RTM_VERSION and once as RTM_OVERSION, hence we need to ignore 81: RTM_VERSION, xorp-1.6/xorp-1.6/fea/data_plane/control_socket/routing_socket_utilities.cc 317: const struct rt_msghdr* rtm) xorp-1.6/xorp-1.6/fea/data_plane/control_socket/windows_routing_socket.h 188:struct rt_metrics { 195:struct rt_msghdr { 208: struct rt_metrics rtm_rmx; /* metrics themselves */ 211:#define RTM_VERSION 66 /* Unique to XORP/Win32 */ xorp-1.6/xorp-1.6/fea/data_plane/control_socket/routing_socket.cc 377: AlignData<struct rt_msghdr> align_data(buffer); 384: const struct rt_msghdr* rtm; xorp-1.6/xorp-1.6/fea/data_plane/control_socket/routing_socket_utilities.hh 70: const struct rt_msghdr* rtm); dante-1.1.19/dante-1.1.19/libscompat/getifaddrs.c 122: struct rt_msghdr *rtm; 158: rtm = (struct rt_msghdr *)next; 159: if (rtm->rtm_version != RTM_VERSION) 267: rtm = (struct rt_msghdr *)next; 268: if (rtm->rtm_version != RTM_VERSION) dante-1.1.19/dante-1.1.19/sockd/getifa.c 217:#define BUFLEN (sizeof(struct rt_msghdr) + 512) 234: struct rt_msghdr *rtm; 267: * rt_msghdr - Specifies RTM_GET for getting routing table 273: rtm = (struct rt_msghdr *) buf; 274: rtm->rtm_msglen = sizeof(struct rt_msghdr) + sizeof(struct sockaddr_in); 275: rtm->rtm_version = RTM_VERSION; dsniff-2.3/dsniff-2.3/arp.c 45: struct rt_msghdr *rtm; 69: rtm = (struct rt_msghdr *)next; dsniff-2.3-no_x11/dsniff-2.3/arp.c 45: struct rt_msghdr *rtm; 69: rtm = (struct rt_msghdr *)next; fragrouter-1.6/fragrouter-1.6/Libnet-0.99b/src/route.c 29: struct rt_msghdr *rtm; 41: rtm=(struct rt_msghdr *)buf; 43: rtm->rtm_msglen=sizeof(struct rt_msghdr) + sizeof(struct sockaddr_in); 44: rtm->rtm_version=RTM_VERSION; 74: rtm=(struct rt_msghdr *)buf; wpa_supplicant-2.0/wpa_supplicant-2.0/src/drivers/driver_bsd.c 727: struct rt_msghdr *rtm; 751: rtm = (struct rt_msghdr *) buf; 752: if (rtm->rtm_version != RTM_VERSION) { 1157: struct rt_msghdr *rtm; 1181: rtm = (struct rt_msghdr *) buf; 1182: if (rtm->rtm_version != RTM_VERSION) { nsh-1.0/nsh/arp.c 60: struct sockaddr_inarp *sin, struct rt_msghdr *rtm)); 62: struct sockaddr_inarp *sin, struct rt_msghdr *rtm); 78: struct rt_msghdr *rtm; 221: struct rt_msghdr *rtm; 284: struct sockaddr_inarp *sin, struct rt_msghdr *rtm)) 287: struct rt_msghdr *rtm; 297: rtm = (struct rt_msghdr *)next; 298: if (rtm->rtm_version != RTM_VERSION) 318: struct rt_msghdr *rtm) nsh-1.0/nsh/conf.c 57:void conf_print_rtm(FILE *, struct rt_msghdr *, char *, int); 962: struct rt_msghdr *rtm; 975: rtm = (struct rt_msghdr *)next; 1155:conf_print_rtm(FILE *output, struct rt_msghdr *rtm, char *delim, int af) nsh-1.0/nsh/externs.h 74: struct rt_msghdr m_rtm; nsh-1.0/nsh/kroute.c 72:void print_rtmsg(struct rt_msghdr *); 73:void print_getmsg(struct rt_msghdr *, int); 74:void pmsg_common(struct rt_msghdr *); 148: struct rt_msghdr *rtm; 168: rtm = (struct rt_msghdr *)next; 326: print_rtmsg((struct rt_msghdr *)msg); 373: struct rt_msghdr *rtm; 380: if (rtm->rtm_version != RTM_VERSION) { 412: struct rt_msghdr *rtm; 498: struct rt_msghdr *rtm; 685: struct rt_msghdr *rtm; 704: rtm->rtm_version = RTM_VERSION; 710: rtm->rtm_rmx = rt_metrics; nsh-1.0/nsh/show.c 98:void p_rtentry(struct rt_msghdr *); 124: struct rt_msghdr *rtm; 136: rtm = (struct rt_msghdr *)next; 137: if (rtm->rtm_version != RTM_VERSION) 246:p_rtentry(struct rt_msghdr *rtm) squid-3.3.8/squid-3.3.8/src/eui/Eui48.cc 373: struct rt_msghdr *rtm; 424: rtm = (struct rt_msghdr *) next; squid-2.7.STABLE9/squid-2.7.STABLE9/src/acl.c 3371: struct rt_msghdr *rtm; 3406: rtm = (struct rt_msghdr *) next; 3568: struct rt_msghdr *rtm; 3586: rtm = (struct rt_msghdr *) next; kdebase-3.5.10/kdebase-3.5.10/ksysguard/ksysguardd/NetBSD/netdev.c 68: struct rt_msghdr *rtm; 94: if (rtm->rtm_version != RTM_VERSION) {