Home
last modified time | relevance | path

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

/external/iproute2/ip/
Diprule.c84 if (r->rtm_src_len != host_len) { in print_rule()
89 r->rtm_src_len in print_rule()
98 } else if (r->rtm_src_len) { in print_rule()
99 fprintf(fp, "from 0/%d ", r->rtm_src_len); in print_rule()
367 req.r.rtm_src_len = dst.bitlen; in iprule_modify()
Diproute.c193 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len)) in filter_nlmsg()
197 (filter.msrc.bitlen >= 0 && filter.msrc.bitlen < r->rtm_src_len))) in filter_nlmsg()
219 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), (r->rtm_src_len+7)/8); in filter_nlmsg()
249 inet_addr_match(&src, &filter.msrc, r->rtm_src_len)) in filter_nlmsg()
384 if (r->rtm_src_len != host_len) { in print_route()
389 r->rtm_src_len in print_route()
398 } else if (r->rtm_src_len) { in print_route()
399 fprintf(fp, "from 0/%u ", r->rtm_src_len); in print_route()
898 req.r.rtm_src_len = addr.bitlen; in iproute_modify()
1602 req.r.rtm_src_len = 0; in iproute_get()
[all …]
/external/libnl/lib/route/
Drule.c104 rule->r_src_len = r->rtm_src_len; in rule_msg_parser()
119 nl_addr_set_prefixlen(rule->r_src, r->rtm_src_len); in rule_msg_parser()
410 rtm.rtm_src_len = tmpl->r_src_len; in build_rule_msg()
Droute_obj.c965 } else if (rtm->rtm_src_len) in rtnl_route_parse()
970 nl_addr_set_prefixlen(src, rtm->rtm_src_len); in rtnl_route_parse()
1098 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src); in rtnl_route_build_msg()
/external/toybox/toys/pending/
Dip.c1498 || gfilter.rsrc.netmask > msg->rtm_src_len)) return 0; in display_route_info()
1500 || (gfilter.msrc.netmask < msg->rtm_src_len))) return 0; in display_route_info()
1533 if (msg->rtm_src_len) sprintf(out, "%s/%d ", out, msg->rtm_src_len); in display_route_info()
1697 if (!idx) request.msg.rtm_src_len = netmask; in route_get()
1742 msg->rtm_src_len = 8*RTA_PAYLOAD(attr[RTA_PREFSRC]); in route_get()
2109 tmp = idx ? &request.msg.rtm_dst_len : &request.msg.rtm_src_len; in ruleupdate()
2243 (msg->rtm_src_len != hlen) ? printf("/%u", msg->rtm_src_len) : 0; in show_rules()
2244 } else msg->rtm_src_len ? printf("0/%d", msg->rtm_src_len) : printf("all"); in show_rules()
/external/libnl/include/linux/
Drtnetlink.h155 unsigned char rtm_src_len; member
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h185 unsigned char rtm_src_len; member
/external/iproute2/include/linux/
Drtnetlink.h185 unsigned char rtm_src_len; member