Home
last modified time | relevance | path

Searched refs:rtmsg (Results 1 – 19 of 19) sorted by relevance

/external/libnl/lib/route/
Droute_obj.c913 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()
Droute.c47 struct rtmsg rhdr = { in route_request_update()
177 .co_hdrsize = sizeof(struct rtmsg),
Dneightbl.c127 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()
Drule.c84 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/
Drtnetlink.h151 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/
Dnetlink_msg.h24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
Dnetlink_msg.c103 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) { in nlmsg_alloc_rtmsg()
/external/iproute2/include/linux/
Drtnetlink.h182 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/
Drtnetlink.h182 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/
Diprule.c53 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()
Diproute.c142 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 …]
Dip_common.h59 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb) in rtm_get_table()
Dipaddrlabel.c195 struct rtmsg *r = NLMSG_DATA(n); in flush_addrlabel()
Dipmroute.c59 struct rtmsg *r = NLMSG_DATA(n); in print_mroute()
Dipmonitor.c64 struct rtmsg *r = NLMSG_DATA(n); in accept_msg()
/external/dhcpcd-6.8.2/
Dif-linux.c398 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/
Dnl-route-get.c62 struct rtmsg rmsg = { in main()
/external/toybox/toys/pending/
Dip.c1466 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/
Dnetlink.c277 struct rtmsg *rtm = NLMSG_DATA(h); in nl_routechange()