Lines Matching refs:nh
249 struct ipv6hdr *nh; in parse_ipv6hdr() local
252 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
256 nh = ipv6_hdr(skb); in parse_ipv6hdr()
259 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
260 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
261 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
262 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
263 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
486 struct nshhdr *nh; in parse_nsh() local
495 nh = nsh_hdr(skb); in parse_nsh()
496 version = nsh_get_ver(nh); in parse_nsh()
497 length = nsh_hdr_len(nh); in parse_nsh()
506 nh = nsh_hdr(skb); in parse_nsh()
507 key->nsh.base.flags = nsh_get_flags(nh); in parse_nsh()
508 key->nsh.base.ttl = nsh_get_ttl(nh); in parse_nsh()
509 key->nsh.base.mdtype = nh->mdtype; in parse_nsh()
510 key->nsh.base.np = nh->np; in parse_nsh()
511 key->nsh.base.path_hdr = nh->path_hdr; in parse_nsh()
516 memcpy(key->nsh.context, nh->md1.context, in parse_nsh()
517 sizeof(nh->md1)); in parse_nsh()
521 sizeof(nh->md1)); in parse_nsh()
544 struct iphdr *nh; in key_extract_l3l4() local
558 nh = ip_hdr(skb); in key_extract_l3l4()
559 key->ipv4.addr.src = nh->saddr; in key_extract_l3l4()
560 key->ipv4.addr.dst = nh->daddr; in key_extract_l3l4()
562 key->ip.proto = nh->protocol; in key_extract_l3l4()
563 key->ip.tos = nh->tos; in key_extract_l3l4()
564 key->ip.ttl = nh->ttl; in key_extract_l3l4()
566 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
572 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()