Lines Matching refs:nh_ofs
196 unsigned int nh_ofs = skb_network_offset(skb); in check_iphdr() local
200 err = check_header(skb, nh_ofs + sizeof(struct iphdr)); in check_iphdr()
206 skb->len < nh_ofs + ip_len)) in check_iphdr()
209 skb_set_transport_header(skb, nh_ofs + ip_len); in check_iphdr()
389 unsigned int nh_ofs = skb_network_offset(skb); in parse_ipv6hdr() local
394 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
428 nh_len = payload_ofs - nh_ofs; in parse_ipv6hdr()
429 skb_set_transport_header(skb, nh_ofs + nh_len); in parse_ipv6hdr()
632 unsigned int nh_ofs = skb_network_offset(skb); in parse_nsh() local
636 err = check_header(skb, nh_ofs + NSH_BASE_HDR_LEN); in parse_nsh()
647 err = check_header(skb, nh_ofs + length); in parse_nsh()