Lines Matching full:nh

248  * @nh: ipv6 header
270 static void get_ipv6_ext_hdrs(struct sk_buff *skb, struct ipv6hdr *nh, in get_ipv6_ext_hdrs() argument
273 u8 next_type = nh->nexthdr; in get_ipv6_ext_hdrs()
388 struct ipv6hdr *nh; in parse_ipv6hdr() local
391 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
395 nh = ipv6_hdr(skb); in parse_ipv6hdr()
397 get_ipv6_ext_hdrs(skb, nh, &key->ipv6.exthdrs); in parse_ipv6hdr()
400 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
401 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
402 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
403 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
404 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
627 struct nshhdr *nh; in parse_nsh() local
636 nh = nsh_hdr(skb); in parse_nsh()
637 version = nsh_get_ver(nh); in parse_nsh()
638 length = nsh_hdr_len(nh); in parse_nsh()
647 nh = nsh_hdr(skb); in parse_nsh()
648 key->nsh.base.flags = nsh_get_flags(nh); in parse_nsh()
649 key->nsh.base.ttl = nsh_get_ttl(nh); in parse_nsh()
650 key->nsh.base.mdtype = nh->mdtype; in parse_nsh()
651 key->nsh.base.np = nh->np; in parse_nsh()
652 key->nsh.base.path_hdr = nh->path_hdr; in parse_nsh()
657 memcpy(key->nsh.context, nh->md1.context, in parse_nsh()
658 sizeof(nh->md1)); in parse_nsh()
662 sizeof(nh->md1)); in parse_nsh()
685 struct iphdr *nh; in key_extract_l3l4() local
699 nh = ip_hdr(skb); in key_extract_l3l4()
700 key->ipv4.addr.src = nh->saddr; in key_extract_l3l4()
701 key->ipv4.addr.dst = nh->daddr; in key_extract_l3l4()
703 key->ip.proto = nh->protocol; in key_extract_l3l4()
704 key->ip.tos = nh->tos; in key_extract_l3l4()
705 key->ip.ttl = nh->ttl; in key_extract_l3l4()
707 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
713 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()