HomeSort by relevance Sort by last modified time
    Searched refs:rtnh (Results 1 - 8 of 8) sorted by null

  /development/ndk/platforms/android-L/include/linux/
rtnetlink.h 290 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len) <= (len))
291 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
295 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
  /external/iproute2/include/linux/
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/
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)))
  /bionic/libc/kernel/uapi/linux/
rtnetlink.h 290 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len) <= (len))
291 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
295 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
  /development/ndk/platforms/android-3/include/linux/
rtnetlink.h 241 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len) <= (len))
242 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
  /external/kernel-headers/original/uapi/linux/
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/
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->rtnh_len - sizeof(*rtnh)
1147 struct rtnexthop *rtnh; local
    [all...]
  /external/iproute2/ip/
iproute.c 631 int parse_one_nh(struct rtattr *rta, struct rtnexthop *rtnh, int *argcp, char ***argvp)
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 392 milliseconds