Searched refs:rtnh (Results 1 – 5 of 5) sorted by relevance
/external/libnl/lib/route/ |
D | route_obj.c | 853 struct rtnexthop *rtnh = nla_data(attr); in parse_multipath() local 857 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath() 862 rtnl_route_nh_set_weight(nh, rtnh->rtnh_hops); in parse_multipath() 863 rtnl_route_nh_set_ifindex(nh, rtnh->rtnh_ifindex); in parse_multipath() 864 rtnl_route_nh_set_flags(nh, rtnh->rtnh_flags); in parse_multipath() 866 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath() 870 RTNH_DATA(rtnh), in parse_multipath() 871 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath() 899 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath() 900 rtnh = RTNH_NEXT(rtnh); in parse_multipath() [all …]
|
/external/libnl/include/linux/ |
D | rtnetlink.h | 312 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 313 ((int)(rtnh)->rtnh_len) <= (len)) 314 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 317 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 352 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 353 ((int)(rtnh)->rtnh_len) <= (len)) 354 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 357 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/iproute2/include/linux/ |
D | rtnetlink.h | 354 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 355 ((int)(rtnh)->rtnh_len) <= (len)) 356 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 359 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/iproute2/ip/ |
D | iproute.c | 725 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument 746 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh() 749 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen+2; in parse_one_nh() 753 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { in parse_one_nh() 762 rtnh->rtnh_hops = w - 1; in parse_one_nh() 764 rtnh->rtnh_flags |= RTNH_F_ONLINK; in parse_one_nh() 771 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh() 776 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh() 790 struct rtnexthop *rtnh; in parse_nexthops() local 794 rtnh = RTA_DATA(rta); in parse_nexthops() [all …]
|