/dports/multimedia/libv4l/linux-5.13-rc2/include/net/ |
H A D | rtnh.h | 8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument 10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok() 11 rtnh->rtnh_len >= sizeof(*rtnh) && in rtnh_ok() 12 rtnh->rtnh_len <= remaining; in rtnh_ok() 15 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next() argument 18 int totlen = NLA_ALIGN(rtnh->rtnh_len); 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() argument 26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs() 29 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen() argument [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/net/ |
H A D | rtnh.h | 8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument 10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok() 11 rtnh->rtnh_len >= sizeof(*rtnh) && in rtnh_ok() 12 rtnh->rtnh_len <= remaining; in rtnh_ok() 15 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next() argument 18 int totlen = NLA_ALIGN(rtnh->rtnh_len); 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() argument 26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs() 29 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen() argument [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/net/ |
H A D | rtnh.h | 8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument 10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok() 11 rtnh->rtnh_len >= sizeof(*rtnh) && in rtnh_ok() 12 rtnh->rtnh_len <= remaining; in rtnh_ok() 15 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, in rtnh_next() argument 18 int totlen = NLA_ALIGN(rtnh->rtnh_len); 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() argument 26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs() 29 static inline int rtnh_attrlen(const struct rtnexthop *rtnh) in rtnh_attrlen() argument [all …]
|
/dports/net/quagga/quagga-1.2.4/zebra/ |
H A D | zebra_fpm_netlink.c | 400 struct rtnexthop *rtnh; in netlink_route_info_encode() local 404 rtnh = RTA_DATA (rta); in netlink_route_info_encode() 410 rtnh->rtnh_len = sizeof (*rtnh); in netlink_route_info_encode() 411 rtnh->rtnh_flags = 0; in netlink_route_info_encode() 412 rtnh->rtnh_hops = 0; in netlink_route_info_encode() 413 rtnh->rtnh_ifindex = 0; in netlink_route_info_encode() 414 rta->rta_len += rtnh->rtnh_len; in netlink_route_info_encode() 419 rtnh->rtnh_len += sizeof (struct rtattr) + bytelen; in netlink_route_info_encode() 424 rtnh->rtnh_ifindex = nhi->if_index; in netlink_route_info_encode() 427 rtnh = RTNH_NEXT (rtnh); in netlink_route_info_encode()
|
H A D | rt_netlink.c | 845 if (len < (int) sizeof (*rtnh) || rtnh->rtnh_len > len) in netlink_routing_table() 850 if (rtnh->rtnh_len > sizeof (*rtnh)) in netlink_routing_table() 854 rtnh->rtnh_len - sizeof (*rtnh)); in netlink_routing_table() 870 rtnh = RTNH_NEXT(rtnh); in netlink_routing_table() 1062 if (len < (int) sizeof (*rtnh) || rtnh->rtnh_len > len) in netlink_route_change() 1067 if (rtnh->rtnh_len > sizeof (*rtnh)) in netlink_route_change() 1087 rtnh = RTNH_NEXT(rtnh); in netlink_route_change() 1573 rtnh->rtnh_len = sizeof (*rtnh); in _netlink_route_build_multipath() 1574 rtnh->rtnh_flags = 0; in _netlink_route_build_multipath() 1575 rtnh->rtnh_hops = 0; in _netlink_route_build_multipath() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/ipv4/ |
H A D | fib_semantics.c | 654 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops() 733 rtnh = rtnh_next(rtnh, &remaining); in fib_get_nhs() 846 struct rtnexthop *rtnh; in fib_nh_match() local 892 rtnh = cfg->fc_mp; in fib_nh_match() 901 if (rtnh->rtnh_ifindex && rtnh->rtnh_ifindex != nh->fib_nh_oif) in fib_nh_match() 950 rtnh = rtnh_next(rtnh, &remaining); in fib_nh_match() 1669 struct rtnexthop *rtnh; in fib_add_nexthop() local 1672 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh)); in fib_add_nexthop() 1673 if (!rtnh) in fib_add_nexthop() 1682 rtnh->rtnh_flags = flags; in fib_add_nexthop() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/ipv4/ |
H A D | fib_semantics.c | 654 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops() 733 rtnh = rtnh_next(rtnh, &remaining); in fib_get_nhs() 846 struct rtnexthop *rtnh; in fib_nh_match() local 892 rtnh = cfg->fc_mp; in fib_nh_match() 901 if (rtnh->rtnh_ifindex && rtnh->rtnh_ifindex != nh->fib_nh_oif) in fib_nh_match() 950 rtnh = rtnh_next(rtnh, &remaining); in fib_nh_match() 1669 struct rtnexthop *rtnh; in fib_add_nexthop() local 1672 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh)); in fib_add_nexthop() 1673 if (!rtnh) in fib_add_nexthop() 1682 rtnh->rtnh_flags = flags; in fib_add_nexthop() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/ipv4/ |
H A D | fib_semantics.c | 654 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops() 733 rtnh = rtnh_next(rtnh, &remaining); in fib_get_nhs() 846 struct rtnexthop *rtnh; in fib_nh_match() local 892 rtnh = cfg->fc_mp; in fib_nh_match() 901 if (rtnh->rtnh_ifindex && rtnh->rtnh_ifindex != nh->fib_nh_oif) in fib_nh_match() 950 rtnh = rtnh_next(rtnh, &remaining); in fib_nh_match() 1669 struct rtnexthop *rtnh; in fib_add_nexthop() local 1672 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh)); in fib_add_nexthop() 1673 if (!rtnh) in fib_add_nexthop() 1682 rtnh->rtnh_flags = flags; in fib_add_nexthop() [all …]
|
/dports/net-mgmt/lldpd/lldpd-1.0.8/include/linux/ |
H A D | rtnetlink.h | 384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 385 ((int)(rtnh)->rtnh_len) <= (len)) 386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/include/linux/ |
H A D | rtnetlink.h | 392 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 393 ((int)(rtnh)->rtnh_len) <= (len)) 394 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 397 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/net/frr7/frr-frr-7.5.1/include/linux/ |
H A D | rtnetlink.h | 392 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 393 ((int)(rtnh)->rtnh_len) <= (len)) 394 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 397 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/lang/gnatdroid-sysroot-x86/android-19-x86/usr/include/linux/ |
H A D | rtnetlink.h | 241 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len… argument 242 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/lang/gnatdroid-sysroot/android-19-arm/usr/include/linux/ |
H A D | rtnetlink.h | 241 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len… argument 242 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/uapi/linux/ |
H A D | rtnetlink.h | 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 425 ((int)(rtnh)->rtnh_len) <= (len)) 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/multimedia/libv4l/linux-5.13-rc2/include/uapi/linux/ |
H A D | rtnetlink.h | 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 425 ((int)(rtnh)->rtnh_len) <= (len)) 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/lang/zig/zig-0.9.0/lib/libc/include/any-linux-any/linux/ |
H A D | rtnetlink.h | 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 425 ((int)(rtnh)->rtnh_len) <= (len)) 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/include/any-linux-any/linux/ |
H A D | rtnetlink.h | 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 425 ((int)(rtnh)->rtnh_len) <= (len)) 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/uapi/linux/ |
H A D | rtnetlink.h | 424 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument 425 ((int)(rtnh)->rtnh_len) <= (len)) 426 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument 429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/core/ |
H A D | lwtunnel.c | 182 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr() local 188 while (rtnh_ok(rtnh, remaining)) { in lwtunnel_valid_encap_type_attr() 189 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 191 attrs = rtnh_attrs(rtnh); in lwtunnel_valid_encap_type_attr() 202 rtnh = rtnh_next(rtnh, &remaining); in lwtunnel_valid_encap_type_attr()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/core/ |
H A D | lwtunnel.c | 182 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr() local 188 while (rtnh_ok(rtnh, remaining)) { in lwtunnel_valid_encap_type_attr() 189 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 191 attrs = rtnh_attrs(rtnh); in lwtunnel_valid_encap_type_attr() 202 rtnh = rtnh_next(rtnh, &remaining); in lwtunnel_valid_encap_type_attr()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/core/ |
H A D | lwtunnel.c | 182 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr() local 188 while (rtnh_ok(rtnh, remaining)) { in lwtunnel_valid_encap_type_attr() 189 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 191 attrs = rtnh_attrs(rtnh); in lwtunnel_valid_encap_type_attr() 202 rtnh = rtnh_next(rtnh, &remaining); in lwtunnel_valid_encap_type_attr()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/ |
H A D | rt_netlink.c | 463 if (len < (int)sizeof(*rtnh) || rtnh->rtnh_len > len) in parse_multipath_nexthops_unicast() 488 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath_nexthops_unicast() 492 rtnh->rtnh_len - sizeof(*rtnh)); in parse_multipath_nexthops_unicast() 533 if (rtnh->rtnh_len == 0) in parse_multipath_nexthops_unicast() 537 rtnh = RTNH_NEXT(rtnh); in parse_multipath_nexthops_unicast() 793 struct rtnexthop *rtnh = in netlink_route_change_read_unicast() local 918 struct rtnexthop *rtnh = in netlink_route_change_read_multicast() local 923 if (len < (int)sizeof(*rtnh) || rtnh->rtnh_len > len) in netlink_route_change_read_multicast() 933 rtnh = RTNH_NEXT(rtnh); in netlink_route_change_read_multicast() 1370 struct rtnexthop *rtnh; in _netlink_route_build_multipath() local [all …]
|
/dports/net/frr7/frr-frr-7.5.1/zebra/ |
H A D | rt_netlink.c | 463 if (len < (int)sizeof(*rtnh) || rtnh->rtnh_len > len) in parse_multipath_nexthops_unicast() 488 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath_nexthops_unicast() 492 rtnh->rtnh_len - sizeof(*rtnh)); in parse_multipath_nexthops_unicast() 533 if (rtnh->rtnh_len == 0) in parse_multipath_nexthops_unicast() 537 rtnh = RTNH_NEXT(rtnh); in parse_multipath_nexthops_unicast() 793 struct rtnexthop *rtnh = in netlink_route_change_read_unicast() local 918 struct rtnexthop *rtnh = in netlink_route_change_read_multicast() local 923 if (len < (int)sizeof(*rtnh) || rtnh->rtnh_len > len) in netlink_route_change_read_multicast() 933 rtnh = RTNH_NEXT(rtnh); in netlink_route_change_read_multicast() 1370 struct rtnexthop *rtnh; in _netlink_route_build_multipath() local [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/mpls/ |
H A D | af_mpls.c | 845 while (rtnh_ok(rtnh, remaining)) { in mpls_count_nexthops() 850 attrlen = rtnh_attrlen(rtnh); in mpls_count_nexthops() 877 rtnh = rtnh_next(rtnh, &remaining); in mpls_count_nexthops() 901 if (!rtnh_ok(rtnh, remaining)) in mpls_nh_build_multi() 907 if (rtnh->rtnh_hops || rtnh->rtnh_flags) in mpls_nh_build_multi() 910 attrlen = rtnh_attrlen(rtnh); in mpls_nh_build_multi() 927 rtnh = rtnh_next(rtnh, &remaining); in mpls_nh_build_multi() 2005 struct rtnexthop *rtnh; in mpls_dump_route() local 2019 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh)); in mpls_dump_route() 2020 if (!rtnh) in mpls_dump_route() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/mpls/ |
H A D | af_mpls.c | 845 while (rtnh_ok(rtnh, remaining)) { in mpls_count_nexthops() 850 attrlen = rtnh_attrlen(rtnh); in mpls_count_nexthops() 877 rtnh = rtnh_next(rtnh, &remaining); in mpls_count_nexthops() 901 if (!rtnh_ok(rtnh, remaining)) in mpls_nh_build_multi() 907 if (rtnh->rtnh_hops || rtnh->rtnh_flags) in mpls_nh_build_multi() 910 attrlen = rtnh_attrlen(rtnh); in mpls_nh_build_multi() 927 rtnh = rtnh_next(rtnh, &remaining); in mpls_nh_build_multi() 2005 struct rtnexthop *rtnh; in mpls_dump_route() local 2019 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh)); in mpls_dump_route() 2020 if (!rtnh) in mpls_dump_route() [all …]
|