Lines Matching full:nh

251  * @nh: ipv6 header
273 static void get_ipv6_ext_hdrs(struct sk_buff *skb, struct ipv6hdr *nh, in get_ipv6_ext_hdrs() argument
276 u8 next_type = nh->nexthdr; in get_ipv6_ext_hdrs()
391 struct ipv6hdr *nh; in parse_ipv6hdr() local
394 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
398 nh = ipv6_hdr(skb); in parse_ipv6hdr()
400 get_ipv6_ext_hdrs(skb, nh, &key->ipv6.exthdrs); in parse_ipv6hdr()
403 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
404 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
405 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
406 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
407 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
631 struct nshhdr *nh; in parse_nsh() local
640 nh = nsh_hdr(skb); in parse_nsh()
641 version = nsh_get_ver(nh); in parse_nsh()
642 length = nsh_hdr_len(nh); in parse_nsh()
651 nh = nsh_hdr(skb); in parse_nsh()
652 key->nsh.base.flags = nsh_get_flags(nh); in parse_nsh()
653 key->nsh.base.ttl = nsh_get_ttl(nh); in parse_nsh()
654 key->nsh.base.mdtype = nh->mdtype; in parse_nsh()
655 key->nsh.base.np = nh->np; in parse_nsh()
656 key->nsh.base.path_hdr = nh->path_hdr; in parse_nsh()
661 memcpy(key->nsh.context, nh->md1.context, in parse_nsh()
662 sizeof(nh->md1)); in parse_nsh()
666 sizeof(nh->md1)); in parse_nsh()
689 struct iphdr *nh; in key_extract_l3l4() local
703 nh = ip_hdr(skb); in key_extract_l3l4()
704 key->ipv4.addr.src = nh->saddr; in key_extract_l3l4()
705 key->ipv4.addr.dst = nh->daddr; in key_extract_l3l4()
707 key->ip.proto = nh->protocol; in key_extract_l3l4()
708 key->ip.tos = nh->tos; in key_extract_l3l4()
709 key->ip.ttl = nh->ttl; in key_extract_l3l4()
711 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
717 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()