/freebsd/usr.sbin/traceroute/ |
H A D | findsaddr-socket.c | 70 struct rtmsg { struct 71 struct rt_msghdr rtmsg; argument 75 static struct rtmsg rtmsg = { variable 107 rp = &rtmsg.rtmsg; in findsaddr() 130 size = sizeof(rtmsg); in findsaddr()
|
/freebsd/sys/compat/linux/ |
H A D | linux_netlink.c | 115 struct rtmsg *rtm = (struct rtmsg *)(hdr + 1); in rtnl_route_from_linux() 120 if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + sizeof(struct rtmsg)) in rtnl_route_from_linux() 130 attrs_len -= NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_route_from_linux() 131 nla_head = (struct nlattr *)((char *)rtm + NETLINK_ALIGN(sizeof(struct rtmsg))); in rtnl_route_from_linux() 438 struct rtmsg *rtm; in rtnl_newroute_to_linux() 439 rtm = nlmsg_copy_next_header(hdr, nw, struct rtmsg); in rtnl_newroute_to_linux() 444 int hdrlen = NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_newroute_to_linux()
|
/freebsd/libexec/bootpd/ |
H A D | rtmsg.c | 73 static int rtmsg(int); 140 if (rtmsg(RTM_GET) < 0) { in bsd_arp_set() 170 return (rtmsg(op)); in bsd_arp_set() 175 rtmsg(int cmd) in rtmsg() function
|
H A D | Makefile | 12 lookup.c getif.c hwaddr.c report.c tzone.c rtmsg.c
|
/freebsd/usr.bin/netstat/ |
H A D | route_netlink.c | 290 struct rtmsg rtmsg; in p_rtable_netlink() member 297 .rtmsg.rtm_family = af, in p_rtable_netlink() 312 struct rtmsg *rtm = (struct rtmsg *)(hdr + 1); in p_rtable_netlink()
|
/freebsd/usr.sbin/rarpd/ |
H A D | rarpd.c | 704 } rtmsg; variable 733 rt = &rtmsg.rthdr; in update_arptab() 734 bzero(&rtmsg, sizeof(rtmsg)); in update_arptab() 739 ar2 = (struct sockaddr_in *)rtmsg.rtspace; in update_arptab() 749 cc = read(r, rt, sizeof(rtmsg)); in update_arptab() 773 bzero(rt, sizeof(rtmsg)); in update_arptab() 798 cc = read(r, rt, sizeof(rtmsg)); in update_arptab()
|
/freebsd/usr.sbin/arp/ |
H A D | arp.c | 82 static struct rt_msghdr *rtmsg(int cmd, 400 rtm = rtmsg(RTM_GET, dst, NULL); in set_rtsock() 416 return (rtmsg(RTM_ADD, dst, sdl_m) == NULL); in set_rtsock() 476 rtm = rtmsg(RTM_GET, dst, NULL); in delete_rtsock() 511 if (rtmsg(RTM_DELETE, dst, NULL) != NULL) { in delete_rtsock() 739 rtmsg(int cmd, struct sockaddr_in *dst, struct sockaddr_dl *sdl) in rtmsg() function
|
H A D | arp_netlink.c | 111 struct rtmsg *rtm = snl_reserve_msg_object(&nw, struct rtmsg); in guess_ifindex()
|
/freebsd/sys/netlink/route/ |
H A D | rt.c | 179 dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg *rtm) in dump_rc_nhg() 221 dump_rc_nhop(struct nl_writer *nw, const struct route_nhop_data *rnd, struct rtmsg *rtm) in dump_rc_nhop() 263 * Dumps output from a rib command into an rtmsg 271 struct rtmsg *rtm; in dump_px() 276 if (!nlmsg_reply(nw, hdr, sizeof(struct rtmsg))) in dump_px() 281 rtm = nlmsg_reserve_object(nw, struct rtmsg); in dump_px() 323 rtm = nlattr_restore_offset(nw, rtm_off, struct rtmsg); in dump_px() 499 #define _IN(_field) offsetof(struct rtmsg, _field) 539 NL_DECLARE_PARSER_EXT(rtm_parser, struct rtmsg, NULL, nlf_p_rtmsg, nla_p_rtmsg, post_p_rtmsg);
|
H A D | route.h | 36 struct rtmsg { struct 130 #define NL_RTM_HDRLEN ((int)sizeof(struct rtmsg))
|
/freebsd/sbin/route/ |
H A D | route_netlink.c | 213 struct rtmsg *rtm = snl_reserve_msg_object(&nw, struct rtmsg); in rtmsg_nl_int() 818 struct rtmsg *rtm = snl_reserve_msg_object(&nw, struct rtmsg); in flushroute_one() 868 struct rtmsg *rtm = snl_reserve_msg_object(&nw, struct rtmsg); in flushroutes_fib_nl()
|
H A D | route.c | 144 static int rtmsg(int, int, int); 1159 error = rtmsg(*cmd, flags, fib); in newroute_fib() 1542 rtmsg(int cmd, int flags, int fib) in rtmsg() function
|
/freebsd/libexec/bootpd/bootpgw/ |
H A D | Makefile | 5 SRCS= bootpgw.c getif.c hwaddr.c report.c rtmsg.c
|
/freebsd/libexec/bootpd/tools/bootpef/ |
H A D | Makefile | 6 hwaddr.c report.c tzone.c rtmsg.c
|
/freebsd/usr.sbin/ndp/ |
H A D | ndp.c | 149 static int rtmsg(int); 472 if (rtmsg(RTM_GET) < 0) { in set() 495 return (rtmsg(RTM_ADD)); in set() 562 if (rtmsg(RTM_GET) < 0) { in delete_rtsock() 588 if (rtmsg(RTM_DELETE) == 0) { in delete_rtsock() 938 rtmsg(int cmd) in rtmsg() function
|
H A D | ndp_netlink.c | 147 struct rtmsg *rtm = snl_reserve_msg_object(&nw, struct rtmsg); in guess_ifindex()
|
/freebsd/usr.sbin/ppp/ |
H A D | route.c | 697 struct rtmsg { struct 737 struct rtmsg rtmes; in rt_Set() 864 struct rtmsg rtmes; in rt_Update()
|
/freebsd/sys/netlink/ |
H A D | netlink_snl_route_parsers.h | 129 #define _IN(_field) offsetof(struct rtmsg, _field) 169 SNL_DECLARE_PARSER_EXT(snl_rtm_route_parser, sizeof(struct rtmsg),
|
/freebsd/tests/sys/netlink/ |
H A D | netlink_socket.c | 281 struct rtmsg rtm; in ATF_TC_BODY()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | neigh.c | 819 struct rtmsg rmsg = { in process_get_neigh()
|