Lines Matching refs:nh_ofs
193 unsigned int nh_ofs = skb_network_offset(skb); in check_iphdr() local
197 err = check_header(skb, nh_ofs + sizeof(struct iphdr)); in check_iphdr()
203 skb->len < nh_ofs + ip_len)) in check_iphdr()
206 skb_set_transport_header(skb, nh_ofs + ip_len); in check_iphdr()
386 unsigned int nh_ofs = skb_network_offset(skb); in parse_ipv6hdr() local
391 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
425 nh_len = payload_ofs - nh_ofs; in parse_ipv6hdr()
426 skb_set_transport_header(skb, nh_ofs + nh_len); in parse_ipv6hdr()
628 unsigned int nh_ofs = skb_network_offset(skb); in parse_nsh() local
632 err = check_header(skb, nh_ofs + NSH_BASE_HDR_LEN); in parse_nsh()
643 err = check_header(skb, nh_ofs + length); in parse_nsh()