Lines Matching refs:nh
255 struct ipv6hdr *nh; in parse_ipv6hdr() local
260 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
264 nh = ipv6_hdr(skb); in parse_ipv6hdr()
265 nexthdr = nh->nexthdr; in parse_ipv6hdr()
266 payload_ofs = (u8 *)(nh + 1) - skb->data; in parse_ipv6hdr()
269 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
270 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
271 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
272 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
273 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
500 struct iphdr *nh; in key_extract() local
514 nh = ip_hdr(skb); in key_extract()
515 key->ipv4.addr.src = nh->saddr; in key_extract()
516 key->ipv4.addr.dst = nh->daddr; in key_extract()
518 key->ip.proto = nh->protocol; in key_extract()
519 key->ip.tos = nh->tos; in key_extract()
520 key->ip.ttl = nh->ttl; in key_extract()
522 offset = nh->frag_off & htons(IP_OFFSET); in key_extract()
527 if (nh->frag_off & htons(IP_MF) || in key_extract()