Searched refs:rtnh (Results 1 - 5 of 5) sorted by relevance
/external/iproute2/include/linux/ |
H A D | rtnetlink.h | 322 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 323 ((int)(rtnh)->rtnh_len) <= (len)) 324 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 327 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
/external/libnl/include/linux/ |
H A D | rtnetlink.h | 312 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 313 ((int)(rtnh)->rtnh_len) <= (len)) 314 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 317 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
/external/kernel-headers/original/uapi/linux/ |
H A D | rtnetlink.h | 334 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 335 ((int)(rtnh)->rtnh_len) <= (len)) 336 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 339 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
/external/libnl/lib/route/ |
H A D | route_obj.c | 853 struct rtnexthop *rtnh = nla_data(attr); local 857 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { 862 rtnl_route_nh_set_weight(nh, rtnh->rtnh_hops); 863 rtnl_route_nh_set_ifindex(nh, rtnh->rtnh_ifindex); 864 rtnl_route_nh_set_flags(nh, rtnh->rtnh_flags); 866 if (rtnh->rtnh_len > sizeof(*rtnh)) { 870 RTNH_DATA(rtnh), 871 rtnh 1147 struct rtnexthop *rtnh; local [all...] |
/external/iproute2/ip/ |
H A D | iproute.c | 631 int parse_one_nh(struct rtattr *rta, struct rtnexthop *rtnh, int *argcp, char ***argvp) argument 640 rtnh->rtnh_len += sizeof(struct rtattr) + 4; 643 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { 652 rtnh->rtnh_hops = w - 1; 654 rtnh->rtnh_flags |= RTNH_F_ONLINK; 661 rtnh->rtnh_len += sizeof(struct rtattr) + 4; 674 struct rtnexthop *rtnh; local 678 rtnh = RTA_DATA(rta); 689 memset(rtnh, 0, sizeof(*rtnh)); [all...] |
Completed in 2253 milliseconds