Home
last modified time | relevance | path

Searched refs:nhs (Results 1 – 6 of 6) sorted by relevance

/net/ipv4/
A Dgre_demux.c63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
69 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header()
72 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
79 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header()
82 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
117 val = skb_header_pointer(skb, nhs + hdr_len, in gre_parse_header()
135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header()
138 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); in gre_parse_header()
A Dfib_semantics.c511 if (nhs) { in fib_nlmsg_size()
684 int nhs = 0; in fib_count_nexthops() local
687 nhs++; in fib_count_nexthops()
695 nhs = 0; in fib_count_nexthops()
698 return nhs; in fib_count_nexthops()
1356 int nhs = 1; in fib_create_info() local
1389 nhs = 0; in fib_create_info()
1395 if (nhs == 0) in fib_create_info()
1424 fi->fib_nhs = nhs; in fib_create_info()
1482 if (nhs != 1) { in fib_create_info()
[all …]
A Dnexthop.c171 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()
187 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
/net/ipv6/
A Dicmp.c664 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
672 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
685 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
700 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
702 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
703 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/net/mpls/
A Daf_mpls.c841 u8 nhs = 0; in mpls_count_nexthops() local
874 if (nhs == 255) in mpls_count_nexthops()
876 nhs++; in mpls_count_nexthops()
882 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
893 u8 nhs = 0; in mpls_nh_build_multi() local
929 nhs++; in mpls_nh_build_multi()
932 rt->rt_nhn = nhs; in mpls_nh_build_multi()
973 u8 nhs; in mpls_route_add() local
1015 nhs = 1; in mpls_route_add()
1018 if (nhs == 0) { in mpls_route_add()
[all …]
/net/netfilter/
A Dnf_synproxy_core.c640 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
642 struct net *net = nhs->net; in ipv4_synproxy_hook()
1057 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
1059 struct net *net = nhs->net; in ipv6_synproxy_hook()

Completed in 26 milliseconds