Home
last modified time | relevance | path

Searched refs:rtnexthop (Results 1 – 12 of 12) sorted by relevance

/linux/include/net/
H A Drtnh.h8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok()
15 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next()
21 return (struct rtnexthop *) ((char *) rtnh + totlen); in rtnh_next()
24 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) in rtnh_attrs()
29 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen()
H A Dip_fib.h48 struct rtnexthop *fc_mp;
/linux/tools/include/uapi/linux/
H A Drtnetlink.h419 struct rtnexthop { struct
443 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument
445 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
446 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/linux/include/uapi/linux/
H A Drtnetlink.h444 struct rtnexthop { struct
468 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument
470 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
471 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/linux/net/core/
H A Dlwtunnel.c185 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr()
/linux/net/ipv4/
H A Dfib_semantics.c551 nhsize += NLA_ALIGN(sizeof(struct rtnexthop)); in fib_nlmsg_size()
711 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops()
745 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
896 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
935 struct rtnexthop *rtnh; in fib_nh_match()
1683 struct rtnexthop *rtnh; in fib_add_nexthop()
H A Dipmr_base.c222 struct rtnexthop *nhp; in mr_fill_mroute()
H A Dipmr.c2574 + MAXVIFS * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2832 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
2847 struct rtnexthop *rtnh = nla_data(nla); in ipmr_nla_get_ttls()
H A Dfib_frontend.c697 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
/linux/net/mpls/
H A Daf_mpls.c529 struct rtnexthop *rc_mp;
870 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len, in mpls_count_nexthops()
923 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi()
2090 struct rtnexthop *rtnh; in mpls_dump_route()
2315 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
/linux/net/ipv6/
H A Droute.c5140 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
5159 struct rtnexthop *rtnh; in rtm_to_fib6_multipath_config()
5163 rtnh = (struct rtnexthop *)cfg->fc_mp; in rtm_to_fib6_multipath_config()
5443 struct rtnexthop *rtnh; in ip6_route_multipath_add()
5466 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5617 struct rtnexthop *rtnh; in ip6_route_multipath_del()
5624 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5707 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nh_nlmsg_size()
H A Dip6mr.c2599 + MAXMIFS * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()