/freebsd/tests/sys/net/routing/ |
H A D | rtsock_common.h | 70 void rtsock_update_rtm_len(struct rt_msghdr *rtm); 72 void rtsock_add_rtm_sa(struct rt_msghdr *rtm, int addr_type, struct sockaddr *sa); 654 rtsock_send_rtm(int fd, struct rt_msghdr *rtm) in rtsock_send_rtm() 670 struct rt_msghdr * 691 return ((struct rt_msghdr *)buffer); in rtsock_read_rtm() 694 struct rt_msghdr * 697 struct rt_msghdr *rtm; in rtsock_read_rtm_reply() 717 rtsock_prepare_route_message_base(struct rt_msghdr *rtm, int cmd) in rtsock_prepare_route_message_base() 720 memset(rtm, 0, sizeof(struct rt_msghdr)); in rtsock_prepare_route_message_base() 727 rtsock_prepare_route_message(struct rt_msghdr *rtm, int cmd, struct sockaddr *dst, in rtsock_prepare_route_message() [all …]
|
H A D | rtsock_print.h | 262 rtsock_print_rtm(struct rt_msghdr *rtm) in rtsock_print_rtm() 347 rtsock_print_message_hd(struct rt_msghdr *rtm) in rtsock_print_message_hd() 366 rtsock_print_message(struct rt_msghdr *rtm) in rtsock_print_message()
|
H A D | test_rtsock_lladdr.c | 85 prepare_route_message(struct rt_msghdr *rtm, int cmd, struct sockaddr *dst, in prepare_route_message() 100 struct rt_msghdr *rtm = (struct rt_msghdr *)buffer; \
|
/freebsd/usr.sbin/rtsold/ |
H A D | rtsock.c | 61 static int rtsock_input_ifannounce(int, struct rt_msghdr *, char *); 66 int (*func)(int, struct rt_msghdr *, char *); 98 struct rt_msghdr *rtm; in rtsock_input() 103 offsetof(struct rt_msghdr, rtm_msglen) + sizeof(rtm->rtm_msglen); in rtsock_input() 109 rtm = (struct rt_msghdr *)(void *)next; in rtsock_input() 140 rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim) in rtsock_input_ifannounce()
|
/freebsd/usr.sbin/rtadvd/ |
H A D | if.c | 166 struct rt_msghdr *rtm; in get_next_msg() 171 for (rtm = (struct rt_msghdr *)buf; in get_next_msg() 172 rtm < (struct rt_msghdr *)lim; in get_next_msg() 173 rtm = (struct rt_msghdr *)(((char *)rtm) + rtm->rtm_msglen)) { in get_next_msg() 181 if (((struct rt_msghdr *)buf)->rtm_version != RTM_VERSION) { in get_next_msg() 260 struct rt_msghdr *rtm = (struct rt_msghdr *)buf; in get_addr() 272 struct rt_msghdr *rtm = (struct rt_msghdr *)buf; in get_rtm_ifindex() 284 struct rt_msghdr *rt in get_prefixlen() [all...] |
/freebsd/usr.sbin/arp/ |
H A D | arp.c | 73 struct rt_msghdr *rtm); 82 static struct rt_msghdr *rtmsg(int cmd, 390 struct rt_msghdr *rtm; in set_rtsock() 463 struct rt_msghdr *rtm; in delete_rtsock() 539 struct rt_msghdr *rtm; in search() 572 rtm = (struct rt_msghdr *)next; in search() 594 struct sockaddr_in *addr, struct rt_msghdr *rtm) in print_entry() 707 struct sockaddr_in *addr, struct rt_msghdr *rtm) in nuke_entry() 738 static struct rt_msghdr * 748 struct rt_msghdr m_rtm; in rtmsg() [all …]
|
/freebsd/usr.bin/netstat/ |
H A D | nhgrp.c | 116 print_nhgroup_entry_sysctl(const char *name, struct rt_msghdr *rtm, in print_nhgroup_entry_sysctl() 198 struct rt_msghdr *rtm; in dump_nhgrp_sysctl() 227 rtm = (struct rt_msghdr *)next; in dump_nhgrp_sysctl() 254 struct rt_msghdr *rtm; in print_nhgrp_sysctl() 313 struct rt_msghdr *rtm; in prepare_nh_map()
|
H A D | common.h | 72 struct rt_msghdr; 75 struct rt_msghdr *rtm;
|
H A D | nhops.c | 237 print_nhop_entry_sysctl(const char *name, struct rt_msghdr *rtm, struct nhop_external *nh) in print_nhop_entry_sysctl() 341 struct rt_msghdr *rtm; in dump_nhops_sysctl() 370 rtm = (struct rt_msghdr *)next; in dump_nhops_sysctl() 398 struct rt_msghdr *rtm; in print_nhops_sysctl()
|
H A D | route.c | 101 static void p_rtentry_sysctl(const char *name, struct rt_msghdr *); 246 struct rt_msghdr *rtm; in p_rtable_sysctl() 271 rtm = (struct rt_msghdr *)next; in p_rtable_sysctl() 305 p_rtentry_sysctl(const char *name, struct rt_msghdr *rtm) in p_rtentry_sysctl()
|
/freebsd/usr.sbin/ppp/ |
H A D | route.h | 33 struct rt_msghdr; 69 extern void route_ParseHdr(struct rt_msghdr *, struct sockaddr *[RTAX_MAX]);
|
H A D | route.c | 309 route_ParseHdr(struct rt_msghdr *rtm, struct sockaddr *sa[RTAX_MAX]) in route_ParseHdr() 329 struct rt_msghdr *rtm; in route_Show() 358 rtm = (struct rt_msghdr *)cp; in route_Show() 381 struct rt_msghdr *rtm; in route_IfDelete() 427 rtm = (struct rt_msghdr *)cp; in route_IfDelete() 472 struct rt_msghdr *rtm; in route_UpdateMTU() 506 rtm = (struct rt_msghdr *)cp; in route_UpdateMTU() 698 struct rt_msghdr m_rtm;
|
/freebsd/lib/libc/net/ |
H A D | getifmaddrs.c | 66 struct rt_msghdr *rtm; in getifmaddrs() 91 rtm = (struct rt_msghdr *)(void *)next; in getifmaddrs() 127 rtm = (struct rt_msghdr *)(void *)next; in getifmaddrs()
|
H A D | getifaddrs.c | 89 struct rt_msghdr *rtm; in getifaddrs() 135 rtm = (struct rt_msghdr *)(void *)next; in getifaddrs() 218 rtm = (struct rt_msghdr *)(void *)next; in getifaddrs()
|
/freebsd/sys/net/ |
H A D | rtsock.c | 213 struct rt_msghdr *rtm, struct rib_cmd_info *rc); 215 struct rt_msghdr **prtm, int alloc_len, 217 static void send_rtm_reply(struct socket *so, struct rt_msghdr *rtm, 675 fill_addrinfo(struct rt_msghdr *rtm, int len, struct linear_buffer *lb, u_int fibnum, in fill_addrinfo() 769 struct rt_msghdr *rtm, struct rib_cmd_info *rc) in handle_rtm_get() 921 update_rtm_from_info(struct rt_addrinfo *info, struct rt_msghdr **prtm, in update_rtm_from_info() 924 struct rt_msghdr *rtm, *orig_rtm = NULL; in update_rtm_from_info() 932 struct rt_msghdr *tmp_rtm; in update_rtm_from_info() 971 update_rtm_from_rc(struct rt_addrinfo *info, struct rt_msghdr **prtm, in update_rtm_from_rc() 975 struct rt_msghdr *rtm; in update_rtm_from_rc() [all …]
|
/freebsd/usr.sbin/route6d/ |
H A D | route6d.c | 216 static const char *rttypes(struct rt_msghdr *); 217 static const char *rtflags(struct rt_msghdr *); 227 static void rt_entry(struct rt_msghdr *, int); 1696 struct rt_msghdr *rtm; in rtrecv() 1731 ((struct rt_msghdr *)(void *)p)->rtm_msglen) { in rtrecv() 1732 if (((struct rt_msghdr *)(void *)p)->rtm_version != RTM_VERSION) in rtrecv() 1736 if (((struct rt_msghdr *)(void *)p)->rtm_msglen <= 0) { in rtrecv() 1738 ((struct rt_msghdr *)(void *)p)->rtm_msglen); in rtrecv() 1744 switch (((struct rt_msghdr *)(void *)p)->rtm_type) { in rtrecv() 1769 rtm = (struct rt_msghdr *)(void *)p; in rtrecv() [all …]
|
/freebsd/libexec/bootpd/ |
H A D | rtmsg.c | 108 struct rt_msghdr m_rtm; 120 struct rt_msghdr *rtm = &(m_rtmsg.m_rtm); in bsd_arp_set() 179 struct rt_msghdr *rtm = &m_rtmsg.m_rtm; in rtmsg()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | 44arp.c | 63 struct rt_msghdr *rtm; in arp() 104 rtm = (struct rt_msghdr *)next; in arp()
|
/freebsd/sbin/route/ |
H A D | route.c | 107 struct rt_msghdr m_rtm; 139 static void pmsg_common(struct rt_msghdr *, size_t); 141 static void print_getmsg(struct rt_msghdr *, int, int); 142 static void print_rtmsg(struct rt_msghdr *, size_t); 492 struct rt_msghdr *rtm; in flushroutes_fib_rtsock() 530 rtm = (struct rt_msghdr *)(void *)next; in flushroutes_fib_rtsock() 1437 struct rt_msghdr *rtm; in interfaces() 1461 rtm = (struct rt_msghdr *)(void *)next; in interfaces() 1536 print_rtmsg((struct rt_msghdr *)(void *)msg, n); in monitor_rtsock() 1688 print_rtmsg(struct rt_msghdr *rtm, size_t msglen) in print_rtmsg() [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII.h | 265 void mib_sroute_process(struct rt_msghdr *, struct sockaddr *, 269 void mib_send_rtmsg(struct rt_msghdr *, struct sockaddr *,
|
H A D | mibII.c | 1005 process_arp(const struct rt_msghdr *rtm, const struct sockaddr_dl *sdl, in process_arp() 1033 handle_rtmsg(struct rt_msghdr *rtm) in handle_rtmsg() 1204 mib_send_rtmsg(struct rt_msghdr *rtm, struct sockaddr *gw, in mib_send_rtmsg() 1208 struct rt_msghdr *msg; in mib_send_rtmsg() 1307 struct rt_msghdr *rtm; in update_ifa_info() 1331 rtm = (struct rt_msghdr *)(void *)next; in update_ifa_info() 1370 struct rt_msghdr *rtm; in mib_arp_update() 1386 rtm = (struct rt_msghdr *)(void *)next; in mib_arp_update() 1412 struct rt_msghdr *rtm; in route_input() 1420 rtm = (struct rt_msghdr *)(void *)buf; in route_input()
|
H A D | mibII_route.c | 94 mib_sroute_process(struct rt_msghdr *rtm, struct sockaddr *gw, in mib_sroute_process() 231 struct rt_msghdr *rtm; in mib_fetch_route() 254 rtm = (struct rt_msghdr *)(void *)next; in mib_fetch_route()
|
/freebsd/usr.sbin/traceroute/ |
H A D | findsaddr-socket.c | 71 struct rt_msghdr rtmsg; 89 register struct rt_msghdr *rp; in findsaddr()
|
/freebsd/tools/tools/net80211/wlanwatch/ |
H A D | wlanwatch.c | 76 static void print_rtmsg(struct rt_msghdr *rtm, int msglen); 94 print_rtmsg((struct rt_msghdr *)msg, n); in main() 285 print_rtmsg(struct rt_msghdr *rtm, int msglen) in print_rtmsg()
|
/freebsd/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 89 static void handle_rtmsg(struct rt_msghdr *rtm, ssize_t msglen); 186 handle_rtmsg((struct rt_msghdr *)msg, n); in main() 392 handle_rtmsg(struct rt_msghdr *rtm, ssize_t msglen) in handle_rtmsg()
|