Lines Matching refs:nh
133 struct ipv6hdr *nh; in parse_ipv6hdr() local
140 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
144 nh = ipv6_hdr(skb); in parse_ipv6hdr()
145 nexthdr = nh->nexthdr; in parse_ipv6hdr()
146 payload_ofs = (u8 *)(nh + 1) - skb->data; in parse_ipv6hdr()
149 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
150 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
151 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
152 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
153 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
644 struct iphdr *nh; in ovs_flow_extract() local
658 nh = ip_hdr(skb); in ovs_flow_extract()
659 key->ipv4.addr.src = nh->saddr; in ovs_flow_extract()
660 key->ipv4.addr.dst = nh->daddr; in ovs_flow_extract()
662 key->ip.proto = nh->protocol; in ovs_flow_extract()
663 key->ip.tos = nh->tos; in ovs_flow_extract()
664 key->ip.ttl = nh->ttl; in ovs_flow_extract()
666 offset = nh->frag_off & htons(IP_OFFSET); in ovs_flow_extract()
671 if (nh->frag_off & htons(IP_MF) || in ovs_flow_extract()