| /openbsd/src/usr.sbin/relayd/ |
| D | pfe_route.c | 135 hdr.rtm_type = HOST_ISUP(crt->up) ? RTM_ADD : RTM_DELETE; in pfe_route() 177 if (hdr.rtm_type == RTM_ADD) { in pfe_route() 178 hdr.rtm_type = RTM_CHANGE; in pfe_route() 180 } else if (hdr.rtm_type == RTM_DELETE) { in pfe_route()
|
| /openbsd/src/usr.sbin/eigrpd/ |
| D | kroute.c | 1053 hdr.rtm_type = action; in send_rtmsg_v4() 1107 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg_v4() 1108 hdr.rtm_type = RTM_ADD; in send_rtmsg_v4() 1110 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg_v4() 1117 log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type, in send_rtmsg_v4() 1142 hdr.rtm_type = action; in send_rtmsg_v6() 1199 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg_v6() 1200 hdr.rtm_type = RTM_ADD; in send_rtmsg_v6() 1202 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg_v6() 1209 log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type, in send_rtmsg_v6() [all …]
|
| /openbsd/src/usr.sbin/hostapd/ |
| D | roaming.c | 222 rm.rm_hdr.rtm_type = add ? RTM_CHANGE : RTM_DELETE; in hostapd_roaming_rt() 254 if (rm.rm_hdr.rtm_type == RTM_CHANGE) { in hostapd_roaming_rt() 255 rm.rm_hdr.rtm_type = RTM_ADD; in hostapd_roaming_rt() 257 } else if (rm.rm_hdr.rtm_type == RTM_DELETE) { in hostapd_roaming_rt()
|
| /openbsd/src/usr.sbin/ldpd/ |
| D | kroute.c | 1197 hdr.rtm_type = action; in send_rtmsg_v4() 1291 if (hdr.rtm_type == RTM_CHANGE && family == AF_MPLS) { in send_rtmsg_v4() 1292 hdr.rtm_type = RTM_ADD; in send_rtmsg_v4() 1294 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg_v4() 1301 hdr.rtm_type, af_name(family), inet_ntoa(kr->prefix.v4), in send_rtmsg_v4() 1332 hdr.rtm_type = action; in send_rtmsg_v6() 1437 if (hdr.rtm_type == RTM_CHANGE && family == AF_MPLS) { in send_rtmsg_v6() 1438 hdr.rtm_type = RTM_ADD; in send_rtmsg_v6() 1440 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg_v6() 1448 hdr.rtm_type, af_name(family), log_addr(kr->af, in send_rtmsg_v6() [all …]
|
| /openbsd/src/sbin/dhcpleased/ |
| D | dhcpleased.c | 979 configure_routes(uint8_t rtm_type, struct imsg_configure_interface *imsg) in configure_routes() argument 1011 configure_route(rtm_type, imsg->if_index, in configure_routes() 1025 configure_route(rtm_type, imsg->if_index, in configure_routes() 1033 configure_route(rtm_type, imsg->if_index, in configure_routes() 1037 configure_route(rtm_type, imsg->if_index, in configure_routes() 1043 configure_route(rtm_type, imsg->if_index, imsg->rdomain, in configure_routes() 1052 configure_route(uint8_t rtm_type, uint32_t if_index, int rdomain, struct in configure_route() argument 1066 rtm.rtm_type = rtm_type; in configure_route() 1206 rtm.rtm_type = RTM_PROPOSAL; in propose_rdns()
|
| /openbsd/src/sys/net/ |
| D | rtsock.c | 511 if (m->m_len < offsetof(struct rt_msghdr, rtm_type) + 1) { in route_input() 542 if (rtm->rtm_type != RTM_DESYNC) { in route_input() 544 !(rop->rop_msgfilter & (1U << rtm->rtm_type))) in route_input() 549 switch (rtm->rtm_type) { in route_input() 680 rtm->rtm_type = type; in rtm_report() 749 switch (rtm->rtm_type) { in route_output() 779 if (rtm->rtm_type != RTM_GET && suser(curproc) != 0) { in route_output() 785 if (rtm->rtm_type == RTM_ADD) { in route_output() 812 } else if (rtm->rtm_type != RTM_ADD) in route_output() 827 if (rtm->rtm_type != RTM_SOURCE && in route_output() [all …]
|
| D | route.h | 224 u_char rtm_type; /* message type */ member
|
| /openbsd/src/usr.sbin/ripd/ |
| D | kroute.c | 736 hdr.rtm_type = action; in send_rtmsg() 787 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg() 788 hdr.rtm_type = RTM_ADD; in send_rtmsg() 790 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg() 798 hdr.rtm_type, inet_ntoa(kroute->prefix), in send_rtmsg() 1064 if (rtm->rtm_type == RTM_ADD || rtm->rtm_type == RTM_CHANGE || in dispatch_rtmsg() 1065 rtm->rtm_type == RTM_DELETE) { in dispatch_rtmsg() 1127 switch (rtm->rtm_type) { in dispatch_rtmsg()
|
| /openbsd/src/lib/libc/net/ |
| D | getifaddrs.c | 102 switch (rtm->rtm_type) { in getifaddrs() 181 switch (rtm->rtm_type) { in getifaddrs()
|
| /openbsd/src/usr.sbin/ospfd/ |
| D | kroute.c | 1198 hdr.rtm_type = action; in send_rtmsg() 1267 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg() 1268 hdr.rtm_type = RTM_ADD; in send_rtmsg() 1270 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg() 1277 log_warn("send_rtmsg: action %u, prefix %s/%u", hdr.rtm_type, in send_rtmsg() 1415 switch (rtm->rtm_type) { in rtmsg_process() 1426 if (rtm->rtm_type == RTM_GET && in rtmsg_process() 1492 switch (rtm->rtm_type) { in rtmsg_process()
|
| /openbsd/src/usr.sbin/ospf6d/ |
| D | kroute.c | 1132 hdr.rtm_type = action; in send_rtmsg() 1231 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg() 1232 hdr.rtm_type = RTM_ADD; in send_rtmsg() 1234 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg() 1240 log_warn("send_rtmsg: action %u, prefix %s/%u", hdr.rtm_type, in send_rtmsg() 1379 switch (rtm->rtm_type) { in rtmsg_process() 1390 if (rtm->rtm_type == RTM_GET && in rtmsg_process() 1458 switch (rtm->rtm_type) { in rtmsg_process()
|
| /openbsd/src/sbin/slaacd/ |
| D | slaacd.c | 718 configure_gateway(struct imsg_configure_dfr *dfr, uint8_t rtm_type) in configure_gateway() argument 730 rtm.rtm_type = rtm_type; in configure_gateway() 828 rtm.rtm_type = RTM_PROPOSAL; in send_rdns_proposal()
|
| D | frontend.c | 727 switch (rtm->rtm_type) { in handle_route_message() 901 log_debug("unexpected RTM: %d", rtm->rtm_type); in handle_route_message()
|
| /openbsd/src/sbin/route/ |
| D | route.c | 407 rtm->rtm_type = RTM_DELETE; in flushroutes() 1241 rtm.rtm_type = RTM_PROPOSAL; in nameserver() 1331 rtm.rtm_type = cmd; in rtmsg() 1450 if (rtm->rtm_type > 0 && in print_rtmsg() 1451 rtm->rtm_type < sizeof(msgtypes)/sizeof(msgtypes[0])) in print_rtmsg() 1452 printf("%s", msgtypes[rtm->rtm_type]); in print_rtmsg() 1454 printf("[rtm_type %u out of range]", rtm->rtm_type); in print_rtmsg() 1457 switch (rtm->rtm_type) { in print_rtmsg()
|
| /openbsd/src/sbin/isakmpd/ |
| D | util.c | 228 rtm->rtm_type = RTM_GET; in text2sockaddr() 270 if (rtm->rtm_type == RTM_GET && in text2sockaddr()
|
| /openbsd/src/sbin/iked/ |
| D | vroute.c | 137 switch(rtm->rtm_type) { in vroute_rtmsg_cb() 148 log_debug("%s: unexpected RTM: %d", __func__, rtm->rtm_type); in vroute_rtmsg_cb() 720 rtm.rtm_type = RTM_PROPOSAL; in vroute_dodns() 787 rtm.rtm_type = type; in vroute_doroute()
|
| /openbsd/src/usr.sbin/sasyncd/ |
| D | carp.c | 208 rtm->rtm_type != RTM_IFINFO) in carp_read()
|
| /openbsd/src/usr.sbin/rarpd/ |
| D | arptab.c | 219 rtm->rtm_type = cmd; in rtmsg()
|
| /openbsd/src/usr.sbin/pppd/ |
| D | sys-bsd.c | 1090 rtmsg.hdr.rtm_type = cmd == 's'? RTM_ADD: RTM_DELETE; in dodefaultroute() 1151 arpmsg.hdr.rtm_type = RTM_ADD; in sifproxyarp() 1188 arpmsg.hdr.rtm_type = RTM_DELETE; in cifproxyarp()
|
| /openbsd/src/sbin/resolvd/ |
| D | resolvd.c | 421 switch (rtm->rtm_type) { in handle_route_message() 565 rtm.rtm_type = RTM_PROPOSAL; in solicit_dns_proposals()
|
| /openbsd/src/usr.bin/netstat/ |
| D | if.c | 130 switch (rtm->rtm_type) { in intpr() 529 switch (rtm->rtm_type) { in fetchifs()
|
| /openbsd/src/usr.sbin/route6d/ |
| D | route6d.c | 1549 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 1599 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 1639 switch (((struct rt_msghdr *)p)->rtm_type) { in rtrecv() 2250 if (rtm->rtm_type == (f)) \ in rttypes() 2572 rtm->rtm_type = RTM_ADD; in addroute() 2631 rtm->rtm_type = RTM_DELETE; in delroute() 2681 rtm->rtm_type = RTM_GET; in getroute()
|
| /openbsd/src/usr.sbin/bgpd/ |
| D | kroute.c | 2705 hdr.rtm_type = action; in send_rtmsg() 2833 if (hdr.rtm_type == RTM_CHANGE) { in send_rtmsg() 2834 hdr.rtm_type = RTM_ADD; in send_rtmsg() 2836 } else if (hdr.rtm_type == RTM_DELETE) { in send_rtmsg() 2842 log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type, in send_rtmsg() 3013 switch (rtm->rtm_type) { in dispatch_rtmsg() 3033 switch (rtm->rtm_type) { in dispatch_rtmsg() 3036 if (kr_fib_change(kt, &kf, rtm->rtm_type, in dispatch_rtmsg()
|
| /openbsd/src/usr.sbin/dvmrpd/ |
| D | kroute.c | 399 switch (rtm->rtm_type) { in kr_dispatch_msg()
|
| /openbsd/src/usr.sbin/npppd/npppd/ |
| D | npppd_subr.c | 172 rtm->rtm_type = type; in in_route0()
|