Home
last modified time | relevance | path

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

/Linux-v6.1/include/net/
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()
Dip_fib.h46 struct rtnexthop *fc_mp;
/Linux-v6.1/include/uapi/linux/
Drtnetlink.h409 struct rtnexthop { struct
433 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument
435 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
436 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/Linux-v6.1/net/core/
Dlwtunnel.c190 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr()
/Linux-v6.1/net/ipv4/
Dfib_semantics.c484 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()
655 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops()
689 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
840 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
879 struct rtnexthop *rtnh; in fib_nh_match()
1702 struct rtnexthop *rtnh; in fib_add_nexthop()
Dipmr_base.c214 struct rtnexthop *nhp; in mr_fill_mroute()
Dipmr.c2364 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2612 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
2627 struct rtnexthop *rtnh = nla_data(nla); in ipmr_nla_get_ttls()
Dfib_frontend.c667 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
/Linux-v6.1/net/mpls/
Daf_mpls.c503 struct rtnexthop *rc_mp;
835 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len, in mpls_count_nexthops()
888 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi()
2035 struct rtnexthop *rtnh; in mpls_dump_route()
2253 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
/Linux-v6.1/net/ipv6/
Droute.c4982 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
5239 struct rtnexthop *rtnh; in ip6_route_multipath_add()
5257 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5430 struct rtnexthop *rtnh; in ip6_route_multipath_del()
5437 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5521 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nh_nlmsg_size()
5548 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nlmsg_size()
Dip6mr.c2418 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()