Home
last modified time | relevance | path

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

12

/freebsd-12.1/usr.sbin/rtsold/
H A Drtsock.c105 "rtmsg type %d, len=%lu", rtm->rtm_type, in rtsock_input()
110 if (rtm->rtm_type != rtsock_dispatch[idx].type) in rtsock_input()
114 "rtmsg type %d too short!", rtm->rtm_type); in rtsock_input()
/freebsd-12.1/sbin/routed/
H A Dtable.c703 w.w_rtm.rtm_type = action; in rtioctl()
908 rtm_type_name(rtm->rtm_type)); in rtm_add()
912 rtm_type_name(rtm->rtm_type), in rtm_add()
995 rtm_type_name(rtm->rtm_type)); in rtm_lose()
1188 if (m.r.rtm.rtm_type <= RTM_CHANGE in read_rt()
1198 if (m.r.rtm.rtm_type == RTM_IFINFO in read_rt()
1206 rtm_type_name(m.r.rtm.rtm_type), in read_rt()
1211 rtm_type_name(m.r.rtm.rtm_type), in read_rt()
1229 if (m.r.rtm.rtm_type == RTM_OIFINFO) in read_rt()
1235 if (m.r.rtm.rtm_type <= RTM_CHANGE) in read_rt()
[all …]
/freebsd-12.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-12.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-12.1/sbin/route/
H A Droute.c497 rtm->rtm_type = RTM_DELETE; in flushroutes_fib()
1531 rtm.rtm_type = cmd; in rtmsg()
1572 (rtm.rtm_type != RTM_GET || rtm.rtm_seq != rtm_seq || in rtmsg()
1646 if (rtm->rtm_type < nitems(msgtypes)) in print_rtmsg()
1647 (void)printf("%s: ", msgtypes[rtm->rtm_type]); in print_rtmsg()
1649 (void)printf("unknown type %d: ", rtm->rtm_type); in print_rtmsg()
1659 switch (rtm->rtm_type) { in print_rtmsg()
1715 if (rtm->rtm_type <= RTM_RESOLVE) { in print_rtmsg()
1721 printf("type: %u, len: %zu\n", rtm->rtm_type, msglen); in print_rtmsg()
/freebsd-12.1/sys/net/
H A Drtsock.c631 if (rtm->rtm_type != RTM_GET) { in route_output()
677 switch (rtm->rtm_type) { in route_output()
682 if (rtm->rtm_type == RTM_ADD) { in route_output()
699 error = rtrequest1_fib(rtm->rtm_type, &info, &saved_nrt, in route_output()
745 rtm->rtm_type == RTM_GET) { in route_output()
772 (rtm->rtm_type != RTM_GET || info.rti_info[RTAX_GATEWAY])) { in route_output()
857 rtsock_msg_buffer(rtm->rtm_type, &info, NULL, &len); in route_output()
873 rtsock_msg_buffer(rtm->rtm_type, &info, &w, &len); in route_output()
1111 rtm->rtm_type = type; in rtsock_msg_mbuf()
1237 rtm->rtm_type = type; in rtsock_msg_buffer()
H A Droute.h252 u_char rtm_type; /* message type */ member
/freebsd-12.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-12.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-12.1/contrib/traceroute/
H A Dfindsaddr-socket.c159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
/freebsd-12.1/contrib/netbsd-tests/net/if_loop/
H A Dt_pr.c93 rtm.rtm_type = RTM_CHANGE; in setup()
/freebsd-12.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-12.1/contrib/netbsd-tests/net/config/
H A Dnetconfig.c145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
/freebsd-12.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()
H A Drtadvd.c481 "(type = %d, len = %d)", __func__, rtm->rtm_type, n); in rtmsg_input()
512 type = ((struct rt_msghdr *)next)->rtm_type; in rtmsg_input()
/freebsd-12.1/usr.sbin/wpa/ndis_events/
H A Dndis_events.c336 if (rtm->rtm_type != RTM_IFINFO)
/freebsd-12.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-12.1/usr.sbin/arp/
H A Darp.c786 rtm->rtm_type = cmd; in rtmsg()
795 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
/freebsd-12.1/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c299 switch (rtm->rtm_type) { in print_rtmsg()
/freebsd-12.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()
/freebsd-12.1/tools/tools/net80211/wlanwds/
H A Dwlanwds.c384 switch (rtm->rtm_type) { in handle_rtmsg()
/freebsd-12.1/usr.sbin/ndp/
H A Dndp.c885 rtm->rtm_type = cmd; in rtmsg()
894 } while (l > 0 && (rtm->rtm_type != cmd || rtm->rtm_seq != seq || in rtmsg()
/freebsd-12.1/contrib/wpa/src/drivers/
H A Ddriver_bsd.c798 switch (rtm->rtm_type) { in bsd_wireless_event_receive()
1261 switch (rtm->rtm_type) { in wpa_driver_bsd_event_receive()

12