/freebsd/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) 343 def __init__(self, rtm_type, rtm_seq=1, dst_sa=None, mask_sa=None): argument 344 super().__init__(rtm_type) 430 def verify(self, rtm_type: int, rtm_sa): 431 assert self.rtm_type_str == self.print_rtm_type(rtm_type) 451 self = cls(hdr.rtm_type) [all …]
|
/freebsd/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/tests/sys/netlink/ |
H A D | netlink_socket.c | 292 .rtm.rtm_type = RTN_UNICAST, in ATF_TC_BODY() 312 ATF_REQUIRE(reply.rtm.rtm_type == msg.rtm.rtm_type); in ATF_TC_BODY() 323 ATF_REQUIRE(reply.rtm.rtm_type == msg.rtm.rtm_type); in ATF_TC_BODY()
|
/freebsd/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() 1175 if ((rtm->rtm_type == RTM_ADD) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) { 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() 1252 if ((rtm->rtm_type == RTM_DELETE) && (rtsock_find_rtm_sa(rtm, RTA_NETMASK))) 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/sbin/routed/ |
H A D | table.c | 691 w.w_rtm.rtm_type = action; in rtioctl() 887 msglog("ignore %s without mask", rtm_type_name(rtm->rtm_type)); in rtm_add() 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() 1187 || m.r.rtm.rtm_type == RTM_NEWADDR in read_rt() 1188 || m.r.rtm.rtm_type == RTM_DELADDR) { in read_rt() 1190 m.r.rtm.rtm_type != RTM_DELADDR); in read_rt() [all …]
|
/freebsd/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/libexec/bootpd/ |
H A D | rtmsg.c | 218 rtm->rtm_type = cmd; in rtmsg() 228 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || rtm->rtm_pid != getpid())); in rtmsg()
|
/freebsd/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() 529 switch (r.rtm_type) { in print_nlmsg_route()
|
H A D | route.c | 543 rtm->rtm_type = RTM_DELETE; in flushroutes_fib_rtsock() 1588 rtm.rtm_type = cmd; in rtmsg_rtsock() 1629 (rtm.rtm_type != RTM_GET || rtm.rtm_seq != rtm_seq || in rtmsg_rtsock() 1705 if (rtm->rtm_type < nitems(msgtypes)) in print_rtmsg() 1706 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg() 1708 (void)printf("unknown type %d: ", rtm->rtm_type); in print_rtmsg() 1718 switch (rtm->rtm_type) { in print_rtmsg() 1774 if (rtm->rtm_type <= RTM_RESOLVE) { in print_rtmsg() 1780 printf("type: %u, len: %zu\n", rtm->rtm_type, msglen); in print_rtmsg()
|
/freebsd/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/usr.sbin/rarpd/ |
H A D | rarpd.c | 737 rt->rtm_type = RTM_GET; in update_arptab() 750 } while (cc > 0 && (rt->rtm_type != RTM_GET || rt->rtm_seq != seq || in update_arptab() 780 rt->rtm_type = RTM_ADD; in update_arptab() 799 } while (cc > 0 && (rt->rtm_type != RTM_ADD || rt->rtm_seq != seq || in update_arptab()
|
/freebsd/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/sys/netlink/route/ |
H A D | rt.c | 290 rtm->rtm_type = get_rtm_type(rnd->rnd_nhop); in dump_px() 495 uint8_t rtm_type; 523 { .off_in = _IN(rtm_type), .off_out = _OUT(rtm_type), .cb = nlf_get_u8 }, in post_p_rtmsg() 917 switch (attrs->rtm_type) { in create_nexthop_from_attrs() 483 uint8_t rtm_type; global() member
|
H A D | route.h | 44 unsigned char rtm_type; /* Route type (RTN_) */ member
|
/freebsd/usr.sbin/traceroute/ |
H A D | findsaddr-socket.c | 140 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
|
/freebsd/contrib/netbsd-tests/net/if_loop/ |
H A D | t_pr.c | 93 rtm.rtm_type = RTM_CHANGE; in setup()
|
/freebsd/usr.sbin/route6d/ |
H A D | route6d.c | 1744 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1780 if (rtm->rtm_type > RTM_RESOLVE) { in rtrecv() 1782 rtm->rtm_type); in rtrecv() 1821 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1862 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 2468 if (rtm->rtm_type == (f)) \ in rttypes() 2836 rtm->rtm_type = RTM_ADD; in addroute() 2904 rtm->rtm_type = RTM_DELETE; in delroute() 2964 rtm->rtm_type = RTM_GET; 2986 } while (rtm->rtm_type != RTM_GET || rtm->rtm_seq != myseq ||
|
/freebsd/sys/net/ |
H A D | rtsock.c | 702 if (rtm->rtm_type != RTM_GET) { in fill_addrinfo() 930 rtsock_msg_buffer(rtm->rtm_type, info, NULL, &len); in update_rtm_from_info() 952 rtsock_msg_buffer(rtm->rtm_type, info, &w, &len); in update_rtm_from_info() 1153 switch (rtm->rtm_type) { in rts_send() 1156 if (rtm->rtm_type == RTM_ADD) { in rts_send() 1162 error = rib_action(fibnum, rtm->rtm_type, &info, &rc); in rts_send() 1779 rtm->rtm_type = type; in rtsock_msg_mbuf() 1909 rtm->rtm_type = type; in rtsock_msg_buffer()
|
/freebsd/contrib/netbsd-tests/net/config/ |
H A D | netconfig.c | 145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
|
/freebsd/usr.sbin/rtadvd/ |
H A D | if.c | 189 if (FILTER_MATCH(rtm->rtm_type, filter) == 0) in get_next_msg() 192 switch (rtm->rtm_type) { in get_next_msg()
|
/freebsd/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()
|