Home
last modified time | relevance | path

Searched refs:rtnexthop (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/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.h45 struct rtnexthop *fc_mp;
/kernel/linux/linux-6.6/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.h46 struct rtnexthop *fc_mp;
/kernel/linux/linux-5.10/include/uapi/linux/
H A Drtnetlink.h378 /* RTM_MULTIPATH --- array of struct rtnexthop.
380 * "struct rtnexthop" describes all necessary nexthop information,
387 struct rtnexthop { struct
409 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
411 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
412 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/kernel/linux/linux-6.6/include/uapi/linux/
H A Drtnetlink.h400 /* RTM_MULTIPATH --- array of struct rtnexthop.
402 * "struct rtnexthop" describes all necessary nexthop information,
409 struct rtnexthop { struct
433 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
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))
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Drtnetlink.h287 struct rtnexthop { struct
302 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int) (rtnh)->rtnh_len) <= (len))
303 #define RTNH_NEXT(rtnh) ((struct rtnexthop *) (((char *) (rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
304 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Drtnetlink.h255 struct rtnexthop { struct
270 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
272 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
273 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Drtnetlink.h287 struct rtnexthop { struct
302 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int) (rtnh)->rtnh_len) <= (len))
303 #define RTNH_NEXT(rtnh) ((struct rtnexthop *) (((char *) (rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
304 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
/kernel/linux/linux-5.10/net/core/
H A Dlwtunnel.c182 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr()
/kernel/linux/linux-6.6/net/core/
H A Dlwtunnel.c190 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr()
/kernel/linux/linux-5.10/net/ipv4/
H A Dfib_semantics.c486 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()
656 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops()
690 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
841 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
880 struct rtnexthop *rtnh; in fib_nh_match()
1730 struct rtnexthop *rtnh; in fib_add_nexthop()
H A Dipmr_base.c213 struct rtnexthop *nhp; in mr_fill_mroute()
H A Dipmr.c2363 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2611 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
2626 struct rtnexthop *rtnh = nla_data(nla); in ipmr_nla_get_ttls()
H A Dfib_frontend.c667 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
/kernel/linux/linux-6.6/net/ipv4/
H A Dfib_semantics.c486 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()
657 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops()
691 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
842 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs()
881 struct rtnexthop *rtnh; in fib_nh_match()
1711 struct rtnexthop *rtnh; in fib_add_nexthop()
H A Dipmr_base.c214 struct rtnexthop *nhp; in mr_fill_mroute()
H A Dipmr.c2379 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2627 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
2642 struct rtnexthop *rtnh = nla_data(nla); in ipmr_nla_get_ttls()
H A Dfib_frontend.c670 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
/kernel/linux/linux-5.10/net/mpls/
H A Daf_mpls.c501 struct rtnexthop *rc_mp;
833 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len, in mpls_count_nexthops()
886 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi()
2044 struct rtnexthop *rtnh; in mpls_dump_route()
2266 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
/kernel/linux/linux-6.6/net/mpls/
H A Daf_mpls.c504 struct rtnexthop *rc_mp;
836 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len, in mpls_count_nexthops()
889 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi()
2041 struct rtnexthop *rtnh; in mpls_dump_route()
2259 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
/kernel/linux/linux-5.10/net/ipv6/
H A Droute.c4893 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
5144 struct rtnexthop *rtnh; in ip6_route_multipath_add()
5162 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5328 struct rtnexthop *rtnh; in ip6_route_multipath_del()
5335 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5419 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nh_nlmsg_size()
H A Dip6mr.c2393 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()
/kernel/linux/linux-6.6/net/ipv6/
H A Droute.c4980 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
5237 struct rtnexthop *rtnh; in ip6_route_multipath_add()
5255 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5421 struct rtnexthop *rtnh; in ip6_route_multipath_del()
5428 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5512 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nh_nlmsg_size()
H A Dip6mr.c2408 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()

Completed in 59 milliseconds