Home
last modified time | relevance | path

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

/net/ipv4/
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()
Dfib_semantics.c471 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local
479 if (nhs) { in fib_nlmsg_size()
504 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size()
658 int nhs = 0; in fib_count_nexthops() local
661 nhs++; in fib_count_nexthops()
669 nhs = 0; in fib_count_nexthops()
672 return nhs; in fib_count_nexthops()
1411 int nhs = 1; in fib_create_info() local
1443 nhs = 0; in fib_create_info()
1448 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info()
[all …]
Dnexthop.c157 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()
172 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
/net/ipv6/
Dicmp.c657 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
665 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
678 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
693 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
695 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
696 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/net/mpls/
Daf_mpls.c840 u8 nhs = 0; in mpls_count_nexthops() local
873 if (nhs == 255) in mpls_count_nexthops()
875 nhs++; in mpls_count_nexthops()
881 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
892 u8 nhs = 0; in mpls_nh_build_multi() local
928 nhs++; in mpls_nh_build_multi()
931 rt->rt_nhn = nhs; in mpls_nh_build_multi()
972 u8 nhs; in mpls_route_add() local
1008 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1014 nhs = 1; in mpls_route_add()
[all …]
/net/netfilter/
Dnf_synproxy_core.c662 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
664 struct net *net = nhs->net; in ipv4_synproxy_hook()
1079 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
1081 struct net *net = nhs->net; in ipv6_synproxy_hook()