| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | rtnh.h | 8 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 D | ip_fib.h | 45 struct rtnexthop *fc_mp;
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | rtnetlink.h | 362 struct rtnexthop { struct 384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 387 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | rtnetlink.h | 362 struct rtnexthop { struct 384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 387 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | rtnetlink.h | 387 struct rtnexthop { struct 409 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 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))
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | lwtunnel.c | 182 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr()
|
| /OK3568_Linux_fs/kernel/net/decnet/ |
| H A D | dn_table.c | 231 struct rtnexthop *nhp; in dn_fib_nh_match() 252 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match() 289 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in dn_fib_nlmsg_size() 348 struct rtnexthop *nhp; in dn_fib_dump_info()
|
| H A D | dn_fib.c | 152 struct rtnexthop *nhp = nla_data(attr); in dn_fib_count_nhs() 167 struct rtnexthop *nhp = nla_data(attr); in dn_fib_get_nhs()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | fib_semantics.c | 484 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size() 654 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops() 688 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs() 839 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs() 878 struct rtnexthop *rtnh; in fib_nh_match() 1721 struct rtnexthop *rtnh; in fib_add_nexthop()
|
| H A D | ipmr_base.c | 213 struct rtnexthop *nhp; in mr_fill_mroute()
|
| H A D | ipmr.c | 2363 + 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 D | fib_frontend.c | 664 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
|
| /OK3568_Linux_fs/kernel/net/mpls/ |
| H A D | af_mpls.c | 501 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() 2040 struct rtnexthop *rtnh; in mpls_dump_route() 2262 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | route.c | 4849 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) }, 5100 struct rtnexthop *rtnh; in ip6_route_multipath_add() 5118 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add() 5291 struct rtnexthop *rtnh; in ip6_route_multipath_del() 5298 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del() 5382 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nh_nlmsg_size() 5409 + NLA_ALIGN(sizeof(struct rtnexthop)) in rt6_nlmsg_size()
|
| H A D | ip6mr.c | 2393 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()
|