Home
last modified time | relevance | path

Searched refs:rtm_type (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-13.1/usr.sbin/rtsold/
H A Drtsock.c119 "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 Dtest_rtsock_l3.c174 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 Drtsock_print.h278 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 Dtest_rtsock_lladdr.c299 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 Drtsock_common.h723 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 Dtable.c696 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 Dgetifmaddrs.c97 switch (rtm->rtm_type) { in getifmaddrs()
134 switch (rtm->rtm_type) { in getifmaddrs()
H A Dgetifaddrs.c141 switch (rtm->rtm_type) { in getifaddrs()
224 switch (rtm->rtm_type) { in getifaddrs()
/freebsd-13.1/libexec/bootpd/
H A Drtmsg.c223 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 Droute.c496 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 DmibII_route.c140 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 Drarpd.c747 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 Dfindsaddr-socket.c159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
/freebsd-13.1/contrib/netbsd-tests/net/if_loop/
H A Dt_pr.c93 rtm.rtm_type = RTM_CHANGE; in setup()
/freebsd-13.1/usr.sbin/route6d/
H A Droute6d.c1748 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 Drtsock.c660 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 Droute.h256 u_char rtm_type; /* message type */ member
/freebsd-13.1/contrib/netbsd-tests/net/config/
H A Dnetconfig.c145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
/freebsd-13.1/usr.sbin/rtadvd/
H A Dif.c192 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 Dndis_events.c336 if (rtm->rtm_type != RTM_IFINFO)
/freebsd-13.1/usr.sbin/ppp/
H A Droute.c757 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 Darp.c123 arpmsg.hdr.rtm_type = add ? RTM_ADD : RTM_DELETE; in arp_ProxySub()
/freebsd-13.1/usr.sbin/arp/
H A Darp.c777 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 Dwlanwatch.c308 switch (rtm->rtm_type) { in print_rtmsg()
/freebsd-13.1/usr.sbin/uhsoctl/
H A Duhsoctl.c953 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()

12