Home
last modified time | relevance | path

Searched refs:netoff (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/ipv4/
H A Dip_fragment.c507 int netoff; in ip_check_defrag() local
513 netoff = skb_network_offset(skb); in ip_check_defrag()
515 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
522 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
528 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) { in ip_check_defrag()
532 if (pskb_trim_rcsum(skb, netoff + len)) { in ip_check_defrag()
/kernel/linux/linux-6.6/net/ipv4/
H A Dip_fragment.c515 int netoff; in ip_check_defrag() local
521 netoff = skb_network_offset(skb); in ip_check_defrag()
523 if (skb_copy_bits(skb, netoff, &iph, sizeof(iph)) < 0) in ip_check_defrag()
530 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag()
536 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) { in ip_check_defrag()
540 if (pskb_trim_rcsum(skb, netoff + len)) { in ip_check_defrag()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c394 const int netoff = skb_network_offset(skb); in find_prev_fhdr() local
395 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr()
396 int start = netoff + sizeof(struct ipv6hdr); in find_prev_fhdr()
/kernel/linux/linux-6.6/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c392 const int netoff = skb_network_offset(skb); in find_prev_fhdr() local
393 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr()
394 int start = netoff + sizeof(struct ipv6hdr); in find_prev_fhdr()
/kernel/linux/linux-5.10/net/packet/
H A Daf_packet.c2211 unsigned int netoff; in tpacket_rcv() local
2266 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2270 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()
2274 netoff += sizeof(struct virtio_net_hdr); in tpacket_rcv()
2277 macoff = netoff - maclen; in tpacket_rcv()
2279 if (netoff > USHRT_MAX) { in tpacket_rcv()
2377 h.h1->tp_net = netoff; in tpacket_rcv()
2386 h.h2->tp_net = netoff; in tpacket_rcv()
2408 h.h3->tp_net = netoff; in tpacket_rcv()
/kernel/linux/linux-6.6/net/packet/
H A Daf_packet.c2249 unsigned int netoff; in tpacket_rcv() local
2306 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2310 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()
2315 netoff += vnet_hdr_sz; in tpacket_rcv()
2316 macoff = netoff - maclen; in tpacket_rcv()
2318 if (netoff > USHRT_MAX) { in tpacket_rcv()
2418 h.h1->tp_net = netoff; in tpacket_rcv()
2427 h.h2->tp_net = netoff; in tpacket_rcv()
2449 h.h3->tp_net = netoff; in tpacket_rcv()

Completed in 14 milliseconds