Lines Matching refs:nh
253 struct ipv6hdr *nh; in parse_ipv6hdr() local
258 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
262 nh = ipv6_hdr(skb); in parse_ipv6hdr()
263 nexthdr = nh->nexthdr; in parse_ipv6hdr()
264 payload_ofs = (u8 *)(nh + 1) - skb->data; in parse_ipv6hdr()
267 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
268 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
269 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
270 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
271 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
493 struct iphdr *nh; in key_extract() local
507 nh = ip_hdr(skb); in key_extract()
508 key->ipv4.addr.src = nh->saddr; in key_extract()
509 key->ipv4.addr.dst = nh->daddr; in key_extract()
511 key->ip.proto = nh->protocol; in key_extract()
512 key->ip.tos = nh->tos; in key_extract()
513 key->ip.ttl = nh->ttl; in key_extract()
515 offset = nh->frag_off & htons(IP_OFFSET); in key_extract()
520 if (nh->frag_off & htons(IP_MF) || in key_extract()