Home
last modified time | relevance | path

Searched refs:RTA_SRC (Results 1 – 8 of 8) sorted by relevance

/external/iproute2/ip/
Dipmroute.c110 if (tb[RTA_SRC] && filter.msrc.bitlen > 0) { in print_mroute()
115 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), RTA_PAYLOAD(tb[RTA_SRC])); in print_mroute()
125 if (tb[RTA_SRC]) in print_mroute()
128 RTA_PAYLOAD(tb[RTA_SRC]), in print_mroute()
129 RTA_DATA(tb[RTA_SRC]), in print_mroute()
Diproute.c218 if (tb[RTA_SRC]) in filter_nlmsg()
219 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), (r->rtm_src_len+7)/8); in filter_nlmsg()
383 if (tb[RTA_SRC]) { in print_route()
386 RTA_PAYLOAD(tb[RTA_SRC]), in print_route()
387 RTA_DATA(tb[RTA_SRC]), in print_route()
393 RTA_PAYLOAD(tb[RTA_SRC]), in print_route()
394 RTA_DATA(tb[RTA_SRC]), in print_route()
897 addattr_l(&req.n, sizeof(req), RTA_SRC, &addr.data, addr.bytelen); in iproute_modify()
1624 addattr_l(&req.n, sizeof(req), RTA_SRC, &addr.data, addr.bytelen); in iproute_get()
1719 tb[RTA_PREFSRC]->rta_type = RTA_SRC; in iproute_get()
[all …]
/external/libnl/lib/route/
Drule.c116 if (tb[RTA_SRC]) { in rule_msg_parser()
117 if (!(rule->r_src = nl_addr_alloc_attr(tb[RTA_SRC], family))) in rule_msg_parser()
423 NLA_PUT_ADDR(msg, RTA_SRC, tmpl->r_src); in build_rule_msg()
Droute_obj.c962 if (tb[RTA_SRC]) { in rtnl_route_parse()
963 if (!(src = nl_addr_alloc_attr(tb[RTA_SRC], family))) in rtnl_route_parse()
1116 NLA_PUT_ADDR(msg, RTA_SRC, route->rt_src); in rtnl_route_build_msg()
/external/toybox/toys/pending/
Dip.c1522 if (attr[RTA_SRC]) { in display_route_info()
1523 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1526 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.rsrc.addr, gfilter.rsrc.len)) in display_route_info()
1529 memcmp(RTA_DATA(attr[RTA_SRC]), &gfilter.msrc.addr, gfilter.msrc.len)) in display_route_info()
1700 (!idx ? RTA_SRC : RTA_DST), addr, len); in route_get()
1741 attr[RTA_PREFSRC]->rta_type = RTA_SRC; in route_get()
1743 } else if (!attr[RTA_SRC]) error_exit("can't connect the route"); in route_get()
2114 (idx ? RTA_DST : RTA_SRC), addr, len); in ruleupdate()
2238 if (attr[RTA_SRC]) { in show_rules()
2240 ? inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in show_rules()
/external/libnl/include/linux/
Drtnetlink.h262 RTA_SRC, enumerator
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h293 RTA_SRC, enumerator
/external/iproute2/include/linux/
Drtnetlink.h293 RTA_SRC, enumerator