Searched refs:rtnh (Results 1 – 5 of 5) sorted by relevance
/external/libnl/lib/route/ |
D | route_obj.c | 949 struct rtnexthop *rtnh = nla_data(attr); in parse_multipath() local 953 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath() 958 rtnl_route_nh_set_weight(nh, rtnh->rtnh_hops); in parse_multipath() 959 rtnl_route_nh_set_ifindex(nh, rtnh->rtnh_ifindex); in parse_multipath() 960 rtnl_route_nh_set_flags(nh, rtnh->rtnh_flags); in parse_multipath() 962 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath() 966 RTNH_DATA(rtnh), in parse_multipath() 967 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath() 995 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath() 996 rtnh = RTNH_NEXT(rtnh); in parse_multipath() [all …]
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 320 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 321 ((int)(rtnh)->rtnh_len) <= (len)) 322 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 325 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 369 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 370 ((int)(rtnh)->rtnh_len) <= (len)) 371 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 374 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 385 ((int)(rtnh)->rtnh_len) <= (len)) 386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/external/iproute2/ip/ |
D | iproute.c | 741 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument 763 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh() 766 rtnh->rtnh_len += RTA_SPACE(addr.bytelen+2); in parse_one_nh() 770 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { in parse_one_nh() 780 rtnh->rtnh_hops = w - 1; in parse_one_nh() 782 rtnh->rtnh_flags |= RTNH_F_ONLINK; in parse_one_nh() 790 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh() 795 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh() 805 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh() 819 struct rtnexthop *rtnh; in parse_nexthops() local [all …]
|