| /freebsd-14.2/tests/atf_python/sys/net/ |
| H A D | rtsock.py | 322 def __init__(self, rtm_type): argument 323 self.rtm_type = rtm_type 327 def print_rtm_type(rtm_type): argument 328 return RtConst.get_name("RTM_", rtm_type) 332 return self.print_rtm_type(self.rtm_type) 344 super().__init__(rtm_type) 430 def verify(self, rtm_type: int, rtm_sa): 451 self = cls(hdr.rtm_type) 487 rtm_type=self.rtm_type, 584 rtm_type = data[4] [all …]
|
| /freebsd-14.2/usr.sbin/rtsold/ |
| H A D | rtsock.c | 118 "rtmsg type %d, len=%lu", rtm->rtm_type, in rtsock_input() 123 if (rtm->rtm_type != rtsock_dispatch[idx].type) in rtsock_input() 127 "rtmsg type %d too short!", rtm->rtm_type); in rtsock_input()
|
| /freebsd-14.2/tests/sys/net/routing/ |
| H A D | test_rtsock_l3.c | 177 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == cmd, in verify_route_message() 179 rtm->rtm_type, rtsock_print_cmdtype(rtm->rtm_type)); in verify_route_message() 1083 if ((rtm->rtm_type == RTM_ADD) && ((rtm->rtm_flags & RTF_LLINFO) == 0)) in ATF_TC_BODY() 1123 if ((rtm->rtm_type == RTM_ADD) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) in ATF_TC_BODY() 1168 if (rtm->rtm_type == RTM_NEWADDR) { in ATF_TC_BODY() 1181 if ((rtm->rtm_type == RTM_ADD) && ((rtm->rtm_flags & RTF_LLDATA) == 0)) { in ATF_TC_BODY() 1187 RLOG("skipping msg type %s, try: %d", rtsock_print_cmdtype(rtm->rtm_type), in ATF_TC_BODY() 1213 if ((rtm->rtm_type == RTM_DELETE) && in ATF_TC_BODY() 1289 if ((rtm->rtm_type == RTM_ADD) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) in ATF_TC_BODY() 1333 if (rtm->rtm_type == RTM_NEWADDR) { in ATF_TC_BODY() [all …]
|
| H A D | rtsock_print.h | 276 printf("%s: len %hu, pid: %d, seq %d, errno %d, flags: %s\n", msgtypes[rtm->rtm_type], in rtsock_print_rtm() 358 rtsock_print_cmdtype(rtm->rtm_type), in rtsock_print_message_hd() 369 switch (rtm->rtm_type) { in rtsock_print_message() 381 printf("unknown rt message type %X\n", rtm->rtm_type); in rtsock_print_message()
|
| H A D | test_rtsock_lladdr.c | 297 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY() 343 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY() 388 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_type == RTM_DELETE, "rtm_type is not delete"); in ATF_TC_BODY()
|
| H A D | test_routing_l3.py | 120 msg_in.verify(msg.rtm_type, desired_sa)
|
| /freebsd-14.2/sbin/routed/ |
| H A D | table.c | 691 w.w_rtm.rtm_type = action; in rtioctl() 896 rtm_type_name(rtm->rtm_type)); in rtm_add() 900 rtm_type_name(rtm->rtm_type), in rtm_add() 983 rtm_type_name(rtm->rtm_type)); in rtm_lose() 1176 if (m.r.rtm.rtm_type <= RTM_CHANGE in read_rt() 1186 if (m.r.rtm.rtm_type == RTM_IFINFO in read_rt() 1194 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1199 rtm_type_name(m.r.rtm.rtm_type), in read_rt() 1217 if (m.r.rtm.rtm_type == RTM_OIFINFO) in read_rt() 1223 if (m.r.rtm.rtm_type <= RTM_CHANGE) in read_rt() [all …]
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | getifmaddrs.c | 94 switch (rtm->rtm_type) { in getifmaddrs() 131 switch (rtm->rtm_type) { in getifmaddrs()
|
| H A D | getifaddrs.c | 138 switch (rtm->rtm_type) { in getifaddrs() 221 switch (rtm->rtm_type) { in getifaddrs()
|
| /freebsd-14.2/libexec/bootpd/ |
| H A D | rtmsg.c | 219 rtm->rtm_type = cmd; in rtmsg() 229 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || rtm->rtm_pid != getpid())); in rtmsg()
|
| /freebsd-14.2/sbin/route/ |
| H A D | route_netlink.c | 181 int rtm_type = RTN_UNICAST; in rtmsg_nl_int() local 209 rtm_type = RTN_PROHIBIT; in rtmsg_nl_int() 211 rtm_type = RTN_BLACKHOLE; in rtmsg_nl_int() 216 rtm->rtm_type = rtm_type; in rtmsg_nl_int() 524 switch (r.rtm_type) { in print_nlmsg_route()
|
| H A D | route.c | 556 rtm->rtm_type = RTM_DELETE; in flushroutes_fib_rtsock() 1601 rtm.rtm_type = cmd; in rtmsg_rtsock() 1642 (rtm.rtm_type != RTM_GET || rtm.rtm_seq != rtm_seq || in rtmsg_rtsock() 1717 if (rtm->rtm_type < nitems(msgtypes)) in print_rtmsg() 1718 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg() 1720 (void)printf("unknown type %d: ", rtm->rtm_type); in print_rtmsg() 1730 switch (rtm->rtm_type) { in print_rtmsg() 1786 if (rtm->rtm_type <= RTM_RESOLVE) { in print_rtmsg() 1792 printf("type: %u, len: %zu\n", rtm->rtm_type, msglen); in print_rtmsg()
|
| /freebsd-14.2/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-14.2/usr.sbin/rarpd/ |
| H A D | rarpd.c | 745 rt->rtm_type = RTM_GET; in update_arptab() 758 } while (cc > 0 && (rt->rtm_type != RTM_GET || rt->rtm_seq != seq || in update_arptab() 788 rt->rtm_type = RTM_ADD; in update_arptab() 807 } while (cc > 0 && (rt->rtm_type != RTM_ADD || rt->rtm_seq != seq || in update_arptab()
|
| /freebsd-14.2/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 124 uint8_t rtm_type; member 153 {.off_in = _IN(rtm_type), .off_out = _OUT(rtm_type), .cb = snl_field_get_uint8 },
|
| /freebsd-14.2/sys/netlink/route/ |
| H A D | rt.c | 290 rtm->rtm_type = get_rtm_type(rnd->rnd_nhop); in dump_px() 482 uint8_t rtm_type; member 510 { .off_in = _IN(rtm_type), .off_out = _OUT(rtm_type), .cb = nlf_get_u8 }, 906 switch (attrs->rtm_type) { in create_nexthop_from_attrs()
|
| H A D | route.h | 44 unsigned char rtm_type; /* Route type (RTN_) */ member
|
| /freebsd-14.2/contrib/traceroute/ |
| H A D | findsaddr-socket.c | 159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
|
| /freebsd-14.2/contrib/netbsd-tests/net/if_loop/ |
| H A D | t_pr.c | 93 rtm.rtm_type = RTM_CHANGE; in setup()
|
| /freebsd-14.2/usr.sbin/route6d/ |
| H A D | route6d.c | 1747 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1783 if (rtm->rtm_type > RTM_RESOLVE) { in rtrecv() 1785 rtm->rtm_type); in rtrecv() 1824 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1865 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 2471 if (rtm->rtm_type == (f)) \ in rttypes() 2839 rtm->rtm_type = RTM_ADD; in addroute() 2907 rtm->rtm_type = RTM_DELETE; in delroute() 2967 rtm->rtm_type = RTM_GET; 2989 } while (rtm->rtm_type != RTM_GET || rtm->rtm_seq != myseq ||
|
| /freebsd-14.2/sys/net/ |
| H A D | rtsock.c | 668 if (rtm->rtm_type != RTM_GET) { in fill_addrinfo() 896 rtsock_msg_buffer(rtm->rtm_type, info, NULL, &len); in update_rtm_from_info() 916 rtsock_msg_buffer(rtm->rtm_type, info, &w, &len); in update_rtm_from_info() 1117 switch (rtm->rtm_type) { in rts_send() 1120 if (rtm->rtm_type == RTM_ADD) { in rts_send() 1126 error = rib_action(fibnum, rtm->rtm_type, &info, &rc); in rts_send() 1743 rtm->rtm_type = type; in rtsock_msg_mbuf() 1870 rtm->rtm_type = type; in rtsock_msg_buffer()
|
| /freebsd-14.2/contrib/netbsd-tests/net/config/ |
| H A D | netconfig.c | 145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
|
| /freebsd-14.2/usr.sbin/rtadvd/ |
| H A D | if.c | 191 if (FILTER_MATCH(rtm->rtm_type, filter) == 0) in get_next_msg() 194 switch (rtm->rtm_type) { in get_next_msg()
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | route.c | 755 rtmes.m_rtm.rtm_type = cmd; in rt_Set() 824 rtmes.m_rtm.rtm_type = cmd = RTM_CHANGE; in rt_Set() 876 rtmes.m_rtm.rtm_type = RTM_CHANGE; in rt_Update()
|
| /freebsd-14.2/usr.sbin/arp/ |
| H A D | arp.c | 816 rtm->rtm_type = cmd; in rtmsg() 825 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
|