| /freebsd-12.1/usr.sbin/rtsold/ |
| H A D | rtsock.c | 105 "rtmsg type %d, len=%lu", rtm->rtm_type, in rtsock_input() 110 if (rtm->rtm_type != rtsock_dispatch[idx].type) in rtsock_input() 114 "rtmsg type %d too short!", rtm->rtm_type); in rtsock_input()
|
| /freebsd-12.1/sbin/routed/ |
| H A D | table.c | 703 w.w_rtm.rtm_type = action; in rtioctl() 908 rtm_type_name(rtm->rtm_type)); in rtm_add() 912 rtm_type_name(rtm->rtm_type), in rtm_add() 995 rtm_type_name(rtm->rtm_type)); in rtm_lose() 1188 if (m.r.rtm.rtm_type <= RTM_CHANGE in read_rt() 1198 if (m.r.rtm.rtm_type == RTM_IFINFO in read_rt() 1206 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1211 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1229 if (m.r.rtm.rtm_type == RTM_OIFINFO) in read_rt() 1235 if (m.r.rtm.rtm_type <= RTM_CHANGE) in read_rt() [all …]
|
| /freebsd-12.1/lib/libc/net/ |
| H A D | getifmaddrs.c | 97 switch (rtm->rtm_type) { in getifmaddrs() 134 switch (rtm->rtm_type) { in getifmaddrs()
|
| H A D | getifaddrs.c | 141 switch (rtm->rtm_type) { in getifaddrs() 224 switch (rtm->rtm_type) { in getifaddrs()
|
| /freebsd-12.1/libexec/bootpd/ |
| H A D | rtmsg.c | 223 rtm->rtm_type = cmd; 233 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || rtm->rtm_pid != getpid()));
|
| /freebsd-12.1/sbin/route/ |
| H A D | route.c | 497 rtm->rtm_type = RTM_DELETE; in flushroutes_fib() 1531 rtm.rtm_type = cmd; in rtmsg() 1572 (rtm.rtm_type != RTM_GET || rtm.rtm_seq != rtm_seq || in rtmsg() 1646 if (rtm->rtm_type < nitems(msgtypes)) in print_rtmsg() 1647 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg() 1649 (void)printf("unknown type %d: ", rtm->rtm_type); in print_rtmsg() 1659 switch (rtm->rtm_type) { in print_rtmsg() 1715 if (rtm->rtm_type <= RTM_RESOLVE) { in print_rtmsg() 1721 printf("type: %u, len: %zu\n", rtm->rtm_type, msglen); in print_rtmsg()
|
| /freebsd-12.1/sys/net/ |
| H A D | rtsock.c | 631 if (rtm->rtm_type != RTM_GET) { in route_output() 677 switch (rtm->rtm_type) { in route_output() 682 if (rtm->rtm_type == RTM_ADD) { in route_output() 699 error = rtrequest1_fib(rtm->rtm_type, &info, &saved_nrt, in route_output() 745 rtm->rtm_type == RTM_GET) { in route_output() 772 (rtm->rtm_type != RTM_GET || info.rti_info[RTAX_GATEWAY])) { in route_output() 857 rtsock_msg_buffer(rtm->rtm_type, &info, NULL, &len); in route_output() 873 rtsock_msg_buffer(rtm->rtm_type, &info, &w, &len); in route_output() 1111 rtm->rtm_type = type; in rtsock_msg_mbuf() 1237 rtm->rtm_type = type; in rtsock_msg_buffer()
|
| H A D | route.h | 252 u_char rtm_type; /* message type */ member
|
| /freebsd-12.1/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_route.c | 140 if (rtm->rtm_type == RTM_DELETE) { in mib_sroute_process() 172 if (rtm->rtm_type == RTM_ADD) { in mib_sroute_process() 255 if (rtm->rtm_type != RTM_GET || in mib_fetch_route()
|
| /freebsd-12.1/usr.sbin/rarpd/ |
| H A D | rarpd.c | 747 rt->rtm_type = RTM_GET; in update_arptab() 760 } while (cc > 0 && (rt->rtm_type != RTM_GET || rt->rtm_seq != seq || in update_arptab() 790 rt->rtm_type = RTM_ADD; in update_arptab() 809 } while (cc > 0 && (rt->rtm_type != RTM_ADD || rt->rtm_seq != seq || in update_arptab()
|
| /freebsd-12.1/contrib/traceroute/ |
| H A D | findsaddr-socket.c | 159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
|
| /freebsd-12.1/contrib/netbsd-tests/net/if_loop/ |
| H A D | t_pr.c | 93 rtm.rtm_type = RTM_CHANGE; in setup()
|
| /freebsd-12.1/usr.sbin/route6d/ |
| H A D | route6d.c | 1748 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1784 if (rtm->rtm_type > RTM_RESOLVE) { in rtrecv() 1786 rtm->rtm_type); in rtrecv() 1825 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1866 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 2472 if (rtm->rtm_type == (f)) \ in rttypes() 2840 rtm->rtm_type = RTM_ADD; in addroute() 2908 rtm->rtm_type = RTM_DELETE; in delroute() 2968 rtm->rtm_type = RTM_GET; 2990 } while (rtm->rtm_type != RTM_GET || rtm->rtm_seq != myseq ||
|
| /freebsd-12.1/contrib/netbsd-tests/net/config/ |
| H A D | netconfig.c | 145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
|
| /freebsd-12.1/usr.sbin/rtadvd/ |
| H A D | if.c | 192 if (FILTER_MATCH(rtm->rtm_type, filter) == 0) in get_next_msg() 195 switch (rtm->rtm_type) { in get_next_msg()
|
| H A D | rtadvd.c | 481 "(type = %d, len = %d)", __func__, rtm->rtm_type, n); in rtmsg_input() 512 type = ((struct rt_msghdr *)next)->rtm_type; in rtmsg_input()
|
| /freebsd-12.1/usr.sbin/wpa/ndis_events/ |
| H A D | ndis_events.c | 336 if (rtm->rtm_type != RTM_IFINFO)
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | route.c | 757 rtmes.m_rtm.rtm_type = cmd; in rt_Set() 826 rtmes.m_rtm.rtm_type = cmd = RTM_CHANGE; in rt_Set() 878 rtmes.m_rtm.rtm_type = RTM_CHANGE; in rt_Update()
|
| H A D | arp.c | 123 arpmsg.hdr.rtm_type = add ? RTM_ADD : RTM_DELETE; in arp_ProxySub()
|
| /freebsd-12.1/usr.sbin/arp/ |
| H A D | arp.c | 786 rtm->rtm_type = cmd; in rtmsg() 795 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
|
| /freebsd-12.1/tools/tools/net80211/wlanwatch/ |
| H A D | wlanwatch.c | 299 switch (rtm->rtm_type) { in print_rtmsg()
|
| /freebsd-12.1/usr.sbin/uhsoctl/ |
| H A D | uhsoctl.c | 953 r.rtm.rtm_type = RTM_ADD; in at_async_owandata() 970 r.rtm.rtm_type = RTM_DELETE; in at_async_owandata() 972 r.rtm.rtm_type = RTM_ADD; in at_async_owandata()
|
| /freebsd-12.1/tools/tools/net80211/wlanwds/ |
| H A D | wlanwds.c | 384 switch (rtm->rtm_type) { in handle_rtmsg()
|
| /freebsd-12.1/usr.sbin/ndp/ |
| H A D | ndp.c | 885 rtm->rtm_type = cmd; in rtmsg() 894 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
|
| /freebsd-12.1/contrib/wpa/src/drivers/ |
| H A D | driver_bsd.c | 798 switch (rtm->rtm_type) { in bsd_wireless_event_receive() 1261 switch (rtm->rtm_type) { in wpa_driver_bsd_event_receive()
|