Searched refs:rtnexthop (Results 1 – 10 of 10) sorted by relevance
7 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok()14 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next()20 return (struct rtnexthop *) ((char *) rtnh + totlen); in rtnh_next()23 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) in rtnh_attrs()28 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen()
41 struct rtnexthop *fc_mp;
328 struct rtnexthop { struct346 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument348 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))349 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
150 struct rtnexthop *nhp = nla_data(attr); in dn_fib_count_nhs()153 while(nhlen >= (int)sizeof(struct rtnexthop)) { in dn_fib_count_nhs()166 struct rtnexthop *nhp = nla_data(attr); in dn_fib_get_nhs()170 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_get_nhs()
229 struct rtnexthop *nhp; in dn_fib_nh_match()250 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match()287 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in dn_fib_nlmsg_size()346 struct rtnexthop *nhp; in dn_fib_dump_info()
372 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()439 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining) in fib_count_nexthops()452 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()491 struct rtnexthop *rtnh; in fib_nh_match()1044 struct rtnexthop *rtnh; in fib_dump_info()
592 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
2158 struct rtnexthop *nhp; in __ipmr_fill_mroute()2325 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2422 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },2574 struct rtnexthop *rtnh; in ip6_route_multipath_add()2587 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()2671 struct rtnexthop *rtnh; in ip6_route_multipath_del()2677 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
2241 struct rtnexthop *nhp; in __ip6mr_fill_mroute()2417 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()