| /freebsd-13.1/usr.sbin/rtsold/ |
| H A D | rtsock.c | 119 "rtmsg type %d, len=%lu", rtm->rtm_type, in rtsock_input() 124 if (rtm->rtm_type != rtsock_dispatch[idx].type) in rtsock_input() 128 "rtmsg type %d too short!", rtm->rtm_type); in rtsock_input()
|
| /freebsd-13.1/tests/sys/net/routing/ |
| H A D | test_rtsock_l3.c | 174 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == cmd, in verify_route_message() 176 rtm->rtm_type, rtsock_print_cmdtype(rtm->rtm_type)); in verify_route_message() 1085 if ((rtm->rtm_type == RTM_ADD) && ((rtm->rtm_flags & RTF_LLINFO) == 0)) in ATF_TC_BODY() 1125 if ((rtm->rtm_type == RTM_ADD) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) in ATF_TC_BODY() 1170 if (rtm->rtm_type == RTM_NEWADDR) { in ATF_TC_BODY() 1183 if ((rtm->rtm_type == RTM_ADD) && ((rtm->rtm_flags & RTF_LLDATA) == 0)) { in ATF_TC_BODY() 1189 RLOG("skipping msg type %s, try: %d", rtsock_print_cmdtype(rtm->rtm_type), in ATF_TC_BODY() 1215 if ((rtm->rtm_type == RTM_DELETE) && in ATF_TC_BODY() 1291 if ((rtm->rtm_type == RTM_ADD) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) in ATF_TC_BODY() 1335 if (rtm->rtm_type == RTM_NEWADDR) { in ATF_TC_BODY() [all …]
|
| H A D | rtsock_print.h | 278 printf("%s: len %hu, pid: %d, seq %d, errno %d, flags: %s\n", msgtypes[rtm->rtm_type], in rtsock_print_rtm() 360 rtsock_print_cmdtype(rtm->rtm_type), in rtsock_print_message_hd() 371 switch (rtm->rtm_type) { in rtsock_print_message() 383 printf("unknown rt message type %X\n", rtm->rtm_type); in rtsock_print_message()
|
| H A D | test_rtsock_lladdr.c | 299 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY() 345 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY() 390 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY()
|
| H A D | rtsock_common.h | 723 rtm->rtm_type = cmd; in rtsock_prepare_route_message_base() 847 switch (rtm->rtm_type) { in rtsock_validate_message()
|
| /freebsd-13.1/sbin/routed/ |
| H A D | table.c | 696 w.w_rtm.rtm_type = action; in rtioctl() 901 rtm_type_name(rtm->rtm_type)); in rtm_add() 905 rtm_type_name(rtm->rtm_type), in rtm_add() 988 rtm_type_name(rtm->rtm_type)); in rtm_lose() 1181 if (m.r.rtm.rtm_type <= RTM_CHANGE in read_rt() 1191 if (m.r.rtm.rtm_type == RTM_IFINFO in read_rt() 1199 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1204 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1222 if (m.r.rtm.rtm_type == RTM_OIFINFO) in read_rt() 1228 if (m.r.rtm.rtm_type <= RTM_CHANGE) in read_rt() [all …]
|
| /freebsd-13.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-13.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-13.1/sbin/route/ |
| H A D | route.c | 496 rtm->rtm_type = RTM_DELETE; in flushroutes_fib() 1492 rtm.rtm_type = cmd; in rtmsg() 1533 (rtm.rtm_type != RTM_GET || rtm.rtm_seq != rtm_seq || in rtmsg() 1607 if (rtm->rtm_type < nitems(msgtypes)) in print_rtmsg() 1608 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg() 1610 (void)printf("unknown type %d: ", rtm->rtm_type); in print_rtmsg() 1620 switch (rtm->rtm_type) { in print_rtmsg() 1676 if (rtm->rtm_type <= RTM_RESOLVE) { in print_rtmsg() 1682 printf("type: %u, len: %zu\n", rtm->rtm_type, msglen); in print_rtmsg()
|
| /freebsd-13.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-13.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-13.1/contrib/traceroute/ |
| H A D | findsaddr-socket.c | 159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
|
| /freebsd-13.1/contrib/netbsd-tests/net/if_loop/ |
| H A D | t_pr.c | 93 rtm.rtm_type = RTM_CHANGE; in setup()
|
| /freebsd-13.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-13.1/sys/net/ |
| H A D | rtsock.c | 660 if (rtm->rtm_type != RTM_GET) { in fill_addrinfo() 899 rtsock_msg_buffer(rtm->rtm_type, info, NULL, &len); in update_rtm_from_info() 919 rtsock_msg_buffer(rtm->rtm_type, info, &w, &len); in update_rtm_from_info() 1110 switch (rtm->rtm_type) { in route_output() 1113 if (rtm->rtm_type == RTM_ADD) { in route_output() 1117 error = rib_action(fibnum, rtm->rtm_type, &info, &rc); in route_output() 1714 rtm->rtm_type = type; in rtsock_msg_mbuf() 1841 rtm->rtm_type = type; in rtsock_msg_buffer()
|
| H A D | route.h | 256 u_char rtm_type; /* message type */ member
|
| /freebsd-13.1/contrib/netbsd-tests/net/config/ |
| H A D | netconfig.c | 145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
|
| /freebsd-13.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()
|
| /freebsd-13.1/usr.sbin/wpa/ndis_events/ |
| H A D | ndis_events.c | 336 if (rtm->rtm_type != RTM_IFINFO)
|
| /freebsd-13.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-13.1/usr.sbin/arp/ |
| H A D | arp.c | 777 rtm->rtm_type = cmd; in rtmsg() 786 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
|
| /freebsd-13.1/tools/tools/net80211/wlanwatch/ |
| H A D | wlanwatch.c | 308 switch (rtm->rtm_type) { in print_rtmsg()
|
| /freebsd-13.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()
|