Home
last modified time | relevance | path

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

/net/ipv4/
Dgre_demux.c61 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
67 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header()
70 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
77 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header()
80 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
127 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header()
130 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); in gre_parse_header()
Dfib_semantics.c463 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local
471 if (nhs) { in fib_nlmsg_size()
496 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size()
640 int nhs = 0; in fib_count_nexthops() local
643 nhs++; in fib_count_nexthops()
651 nhs = 0; in fib_count_nexthops()
654 return nhs; in fib_count_nexthops()
1344 int nhs = 1; in fib_create_info() local
1376 nhs = 0; in fib_create_info()
1381 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info()
[all …]
/net/decnet/
Ddn_fib.c153 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local
156 nhs++; in dn_fib_count_nhs()
161 return nhlen > 0 ? 0 : nhs; in dn_fib_count_nhs()
273 int nhs = 1; in dn_fib_create_info() local
282 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info()
285 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info()
291 fi->fib_nhs = nhs; in dn_fib_create_info()
342 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info()
363 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
/net/ipv6/
Dicmp.c612 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
620 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
633 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
648 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
650 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
651 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/net/mpls/
Daf_mpls.c838 u8 nhs = 0; in mpls_count_nexthops() local
871 if (nhs == 255) in mpls_count_nexthops()
873 nhs++; in mpls_count_nexthops()
879 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
890 u8 nhs = 0; in mpls_nh_build_multi() local
926 nhs++; in mpls_nh_build_multi()
929 rt->rt_nhn = nhs; in mpls_nh_build_multi()
970 u8 nhs; in mpls_route_add() local
1006 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1012 nhs = 1; in mpls_route_add()
[all …]
/net/netfilter/
Dnf_synproxy_core.c658 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
660 struct net *net = nhs->net; in ipv4_synproxy_hook()
1076 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
1078 struct net *net = nhs->net; in ipv6_synproxy_hook()