Lines Matching refs:nh
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()
630 struct nshhdr *nh; in parse_nsh() local
639 nh = nsh_hdr(skb); in parse_nsh()
640 version = nsh_get_ver(nh); in parse_nsh()
641 length = nsh_hdr_len(nh); in parse_nsh()
650 nh = nsh_hdr(skb); in parse_nsh()
651 key->nsh.base.flags = nsh_get_flags(nh); in parse_nsh()
652 key->nsh.base.ttl = nsh_get_ttl(nh); in parse_nsh()
653 key->nsh.base.mdtype = nh->mdtype; in parse_nsh()
654 key->nsh.base.np = nh->np; in parse_nsh()
655 key->nsh.base.path_hdr = nh->path_hdr; in parse_nsh()
660 memcpy(key->nsh.context, nh->md1.context, in parse_nsh()
661 sizeof(nh->md1)); in parse_nsh()
665 sizeof(nh->md1)); in parse_nsh()
688 struct iphdr *nh; in key_extract_l3l4() local
702 nh = ip_hdr(skb); in key_extract_l3l4()
703 key->ipv4.addr.src = nh->saddr; in key_extract_l3l4()
704 key->ipv4.addr.dst = nh->daddr; in key_extract_l3l4()
706 key->ip.proto = nh->protocol; in key_extract_l3l4()
707 key->ip.tos = nh->tos; in key_extract_l3l4()
708 key->ip.ttl = nh->ttl; in key_extract_l3l4()
710 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
716 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()