/netbsd-src/usr.sbin/ldpd/ |
H A D | mpls_routes.c | 321 rm.m_rtm.rtm_type = (optype == RTM_READD) ? RTM_ADD : optype; in add_route() 413 rm.m_rtm.rtm_type = RTM_DELETE; in delete_route() 484 rm.m_rtm.rtm_type = RTM_GET; 540 if (rg->m_rtm.rtm_type != RTM_ADD && 541 rg->m_rtm.rtm_type != RTM_DELETE && 542 rg->m_rtm.rtm_type != RTM_CHANGE && 543 rg->m_rtm.rtm_type != RTM_NEWADDR && 544 rg->m_rtm.rtm_type != RTM_DELADDR) 592 if (rlen <= offsetof(struct rt_msghdr, rtm_type) || in check_route() 596 if (rg->m_rtm.rtm_type == RTM_NEWADDR || in check_route() [all …]
|
/netbsd-src/sys/net/ |
H A D | rtsock_shared.c | 232 offsetof(struct rt_xmsghdr, rtm_type) + sizeof(rtm.rtm_type)) in COMPATNAME() 235 m_copydata(m, offsetof(struct rt_xmsghdr, rtm_type), in COMPATNAME() 236 sizeof(rtm.rtm_type), &rtm.rtm_type); in COMPATNAME() 237 if (rtm.rtm_type >= sizeof(rop->rocb_msgfilter) * CHAR_BIT) in COMPATNAME() 241 !(rop->rocb_msgfilter & RTMSGFILTER(rtm.rtm_type))) in COMPATNAME() 244 if (rop->rocb_missfilterlen != 0 && rtm.rtm_type == RTM_MISS) { in COMPATNAME() 627 error = rt_msg2(rtm->rtm_type, info, NULL, NULL, &len); in route_output_report() 638 (void)rt_msg2(rtm->rtm_type, info, rtm, NULL, 0); in route_output_report() 695 if (rt_xaddrs(rtm->rtm_type, (const char *)(rtm + 1), len + (char *)rtm, in COMPATNAME() 748 switch (rtm->rtm_type) { in COMPATNAME() [all …]
|
H A D | if_llatbl.c | 631 lla_rt_output(const u_char rtm_type, const int rtm_flags, const time_t rtm_expire, in lla_rt_output() argument 670 switch (rtm_type) { in lla_rt_output()
|
H A D | route.h | 223 u_char rtm_type; /* message type */ member
|
/netbsd-src/usr.sbin/rtadvd/ |
H A D | if.c | 215 if (FILTER_MATCH(rtm->rtm_type, filter) == 0) { in get_next_msg() 219 switch (rtm->rtm_type) { in get_next_msg() 414 return rtm->rtm_type; in rtmsg_type() 422 return rtm->rtm_type < __arraycount(rtm_names) in rtmsg_typestr() 423 ? rtm_names[rtm->rtm_type] : "*unknown*"; in rtmsg_typestr()
|
/netbsd-src/sbin/routed/ |
H A D | table.c | 705 w.w_rtm.rtm_type = action; in rtioctl() 902 msglog("ignore %s without mask", rtm_type_name(rtm->rtm_type)); in rtm_add() 911 rtm_type_name(rtm->rtm_type)); in rtm_add() 915 rtm_type_name(rtm->rtm_type), in rtm_add() 1000 rtm_type_name(rtm->rtm_type)); in rtm_lose() 1191 if (m.r.rtm.rtm_type <= RTM_CHANGE in read_rt() 1201 if (m.r.rtm.rtm_type == RTM_IFINFO in read_rt() 1202 || m.r.rtm.rtm_type == RTM_NEWADDR in read_rt() 1203 || m.r.rtm.rtm_type == RTM_DELADDR) { in read_rt() 1205 m.r.rtm.rtm_type != RTM_DELADDR); in read_rt() [all …]
|
/netbsd-src/usr.bin/rump_dhcpclient/ |
H A D | if-bsd.c | 211 rtm.hdr.rtm_type = RTM_CHANGE; in if_route() 213 rtm.hdr.rtm_type = RTM_ADD; in if_route() 215 rtm.hdr.rtm_type = RTM_DELETE; in if_route()
|
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/ |
H A D | grabmyaddr.c | 472 req.r.rtm_type == RTN_LOCAL; in netlink_route_is_local() 489 if (rtm->rtm_type != RTN_LOCAL || in netlink_process_route() 744 switch (rtm->rtm_type) { in kernel_handle_message() 784 rtm->rtm_type); in kernel_handle_message() 809 rtm->rtm_msglen, len, rtm->rtm_type);
|
/netbsd-src/external/bsd/dhcpcd/dist/src/ |
H A D | if-bsd.c | 721 rtm->rtm_type = cmd; in if_route() 881 if (rtm->rtm_type != RTM_MISS && !(rtm->rtm_addrs & RTA_GATEWAY)) { in if_copyrt() 927 if (rt->rt_ifp == NULL && rtm->rtm_type == RTM_MISS) in if_copyrt() 1296 (rt.rt_flags & RTF_HOST || rtm->rtm_type == RTM_MISS) && in if_rtm() 1297 !(rtm->rtm_type == RTM_ADD && !(rt.rt_dflags & RTDF_GATELINK))) in if_rtm() 1301 reachable = (rtm->rtm_type == RTM_ADD || in if_rtm() 1302 rtm->rtm_type == RTM_CHANGE) && in if_rtm() 1308 if (rtm->rtm_type != RTM_MISS && if_realroute(rtm)) in if_rtm() 1309 rt_recvrt(rtm->rtm_type, &rt, rtm->rtm_pid); in if_rtm() 1529 switch(rtm->rtm_type) { in if_dispatch()
|
/netbsd-src/lib/libc/net/ |
H A D | getifaddrs.c | 108 switch (rtm->rtm_type) { in __weak_alias() 188 switch (rtm->rtm_type) { in __weak_alias()
|
/netbsd-src/sys/compat/net/ |
H A D | route.h | 69 u_char rtm_type; /* message type */ member
|
/netbsd-src/sbin/route/ |
H A D | route.c | 349 rtm->rtm_type = RTM_DELETE; in flushroutes() 1203 rtm.rtm_type = cmd; in rtmsg() 1362 if (msgtypes[rtm->rtm_type]) in print_rtmsg() 1363 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg() 1365 (void)printf("#%d: ", rtm->rtm_type); in print_rtmsg() 1367 switch (rtm->rtm_type) { in print_rtmsg()
|
/netbsd-src/usr.sbin/ifwatchd/ |
H A D | ifwatchd.c | 271 switch (hd->rtm_type) { in dispatch() 285 printf("unknown message ignored (%d)\n", hd->rtm_type); in dispatch()
|
/netbsd-src/tests/net/if_loop/ |
H A D | t_pr.c | 93 rtm.rtm_type = RTM_CHANGE; in setup()
|
/netbsd-src/share/examples/rump/virtual_ip_router/ |
H A D | rumprouter.c | 135 rtm.rtm_type = RTM_ADD; in configure_routing()
|
/netbsd-src/usr.sbin/rarpd/ |
H A D | mkarp.c | 255 rtm->rtm_type = cmd; in rtmsg()
|
/netbsd-src/tests/net/config/ |
H A D | netconfig.c | 148 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
|
/netbsd-src/usr.sbin/route6d/ |
H A D | route6d.c | 1493 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 1549 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 1590 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 2209 if (rtm->rtm_type == (f)) \ in rttypes() 2577 rtm->rtm_type = RTM_ADD; in addroute() 2642 rtm->rtm_type = RTM_DELETE; in delroute()
|
/netbsd-src/usr.bin/netstat/ |
H A D | if.c | 235 switch (rtm->rtm_type) { in intpr_sysctl() 1155 switch (rtm->rtm_type) { in fetchifs()
|
/netbsd-src/usr.sbin/faithd/ |
H A D | faithd.c | 834 switch (rtm->rtm_type) { in update_myaddrs()
|
/netbsd-src/usr.sbin/arp/ |
H A D | arp.c | 745 rtm->rtm_type = cmd; in rtmsg()
|
/netbsd-src/usr.sbin/ndp/ |
H A D | ndp.c | 789 rtm->rtm_type = cmd; in rtmsg()
|
/netbsd-src/external/bsd/blocklist/bin/ |
H A D | conf.c | 1029 rtm->rtm_type = RTM_IFANNOUNCE; in conf_route_perm()
|
/netbsd-src/external/bsd/top/dist/machine/ |
H A D | m_netbsd.c | 492 switch (rtm->rtm_type) { in get_network_kilobytes()
|
/netbsd-src/external/mpl/bind/dist/lib/ns/ |
H A D | interfacemgr.c | 42 #define MSGTYPE rtm_type
|