/external/libnl/lib/route/ |
D | route_obj.c | 913 struct rtmsg *rtm; in rtnl_route_parse() 928 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy); in rtnl_route_parse() 1083 struct rtmsg rtmsg = { in rtnl_route_build_msg() local 1096 rtmsg.rtm_dst_len = nl_addr_get_prefixlen(route->rt_dst); in rtnl_route_build_msg() 1098 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src); in rtnl_route_build_msg() 1101 if (rtmsg.rtm_scope == RT_SCOPE_NOWHERE) in rtnl_route_build_msg() 1102 rtmsg.rtm_scope = rtnl_route_guess_scope(route); in rtnl_route_build_msg() 1104 if (nlmsg_append(msg, &rtmsg, sizeof(rtmsg), NLMSG_ALIGNTO) < 0) in rtnl_route_build_msg()
|
D | route.c | 47 struct rtmsg rhdr = { in route_request_update() 177 .co_hdrsize = sizeof(struct rtmsg),
|
D | neightbl.c | 127 struct rtgenmsg *rtmsg; in neightbl_msg_parser() local 137 rtmsg = nlmsg_data(n); in neightbl_msg_parser() 139 err = nlmsg_parse(n, sizeof(*rtmsg), tb, NDTA_MAX, neightbl_policy); in neightbl_msg_parser() 143 ntbl->nt_family = rtmsg->rtgen_family; in neightbl_msg_parser()
|
D | rule.c | 84 struct rtmsg *r; in rule_msg_parser() 390 struct rtmsg rtm = { in build_rule_msg() 774 .co_hdrsize = sizeof(struct rtmsg),
|
/external/libnl/include/linux/ |
D | rtnetlink.h | 151 struct rtmsg struct 282 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 283 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/android-clat/ |
D | netlink_msg.h | 24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
|
D | netlink_msg.c | 103 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) { in nlmsg_alloc_rtmsg()
|
/external/iproute2/include/linux/ |
D | rtnetlink.h | 182 struct rtmsg { struct 321 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 322 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 182 struct rtmsg { struct 319 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 320 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/iproute2/ip/ |
D | iprule.c | 53 struct rtmsg *r = NLMSG_DATA(n); in print_rule() 339 struct rtmsg r; in iprule_modify() 346 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iprule_modify() 499 struct rtmsg *r = NLMSG_DATA(n); in flush_rule()
|
D | iproute.c | 142 struct rtmsg *r = NLMSG_DATA(n); in filter_nlmsg() 311 struct rtmsg *r = NLMSG_DATA(n); in print_route() 724 static int parse_one_nh(struct nlmsghdr *n, struct rtmsg *r, in parse_one_nh() 785 static int parse_nexthops(struct nlmsghdr *n, struct rtmsg *r, in parse_nexthops() 821 struct rtmsg r; in iproute_modify() 839 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iproute_modify() 1232 struct rtmsg rtm; in rtnl_rtcache_request() 1283 struct rtmsg *r = NLMSG_DATA(n); in save_route() 1580 struct rtmsg r; in iproute_get() 1594 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iproute_get() [all …]
|
D | ip_common.h | 59 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb) in rtm_get_table()
|
D | ipaddrlabel.c | 195 struct rtmsg *r = NLMSG_DATA(n); in flush_addrlabel()
|
D | ipmroute.c | 59 struct rtmsg *r = NLMSG_DATA(n); in print_mroute()
|
D | ipmonitor.c | 64 struct rtmsg *r = NLMSG_DATA(n); in accept_msg()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 398 struct rtmsg *rtm; in if_copyrt() 407 rtm = (struct rtmsg *)NLMSG_DATA(nlm); in if_copyrt() 464 struct rtmsg *rtm; in if_copyrt6() 472 rtm = (struct rtmsg *)NLMSG_DATA(nlm); in if_copyrt6() 527 struct rtmsg *rtm; in link_route() 1120 struct rtmsg rt; 1326 nlm.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in if_route() 1409 nlm.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in if_initrt() 1526 nlm.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in if_route6() 1611 nlm.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in if_initrt6()
|
/external/libnl/src/ |
D | nl-route-get.c | 62 struct rtmsg rmsg = { in main()
|
/external/toybox/toys/pending/ |
D | ip.c | 1466 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info() 1468 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() 1598 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info() 1599 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() 1674 struct rtmsg msg; in route_get() 1679 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() 1729 struct rtmsg *msg = NLMSG_DATA(mhdr); in route_get() 1730 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() 1768 struct rtmsg msg; in route_show_flush() 1875 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof (struct rtmsg)); in route_show_flush() [all …]
|
/external/dnsmasq/src/ |
D | netlink.c | 277 struct rtmsg *rtm = NLMSG_DATA(h); in nl_routechange()
|