Home
last modified time | relevance | path

Searched refs:netoff (Results 1 – 3 of 3) sorted by relevance

/linux/net/ipv4/
A Dip_fragment.c506 int netoff; in ip_check_defrag() local
512 netoff = skb_network_offset(skb); in ip_check_defrag()
514 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
521 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
527 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) { in ip_check_defrag()
531 if (pskb_trim_rcsum(skb, netoff + len)) { in ip_check_defrag()
/linux/net/ipv6/netfilter/
A Dnf_conntrack_reasm.c391 const int netoff = skb_network_offset(skb); in find_prev_fhdr() local
392 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr()
393 int start = netoff + sizeof(struct ipv6hdr); in find_prev_fhdr()
/linux/net/packet/
A Daf_packet.c2232 unsigned int netoff; in tpacket_rcv() local
2288 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2292 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()
2296 netoff += sizeof(struct virtio_net_hdr); in tpacket_rcv()
2299 macoff = netoff - maclen; in tpacket_rcv()
2301 if (netoff > USHRT_MAX) { in tpacket_rcv()
2396 h.h1->tp_net = netoff; in tpacket_rcv()
2405 h.h2->tp_net = netoff; in tpacket_rcv()
2427 h.h3->tp_net = netoff; in tpacket_rcv()

Completed in 30 milliseconds