Lines Matching refs:snaplen
2058 unsigned int snaplen, res; in packet_rcv() local
2088 snaplen = skb->len; in packet_rcv()
2090 res = run_filter(skb, sk, snaplen); in packet_rcv()
2093 if (snaplen > res) in packet_rcv()
2094 snaplen = res; in packet_rcv()
2129 if (pskb_trim(skb, snaplen)) in packet_rcv()
2174 unsigned int snaplen, res; in tpacket_rcv() local
2210 snaplen = skb->len; in tpacket_rcv()
2212 res = run_filter(skb, sk, snaplen); in tpacket_rcv()
2229 if (snaplen > res) in tpacket_rcv()
2230 snaplen = res; in tpacket_rcv()
2251 if (macoff + snaplen > po->rx_ring.frame_size) { in tpacket_rcv()
2263 snaplen = po->rx_ring.frame_size - macoff; in tpacket_rcv()
2264 if ((int)snaplen < 0) { in tpacket_rcv()
2265 snaplen = 0; in tpacket_rcv()
2269 } else if (unlikely(macoff + snaplen > in tpacket_rcv()
2275 snaplen, nval, macoff); in tpacket_rcv()
2276 snaplen = nval; in tpacket_rcv()
2277 if (unlikely((int)snaplen < 0)) { in tpacket_rcv()
2278 snaplen = 0; in tpacket_rcv()
2285 TP_STATUS_KERNEL, (macoff+snaplen)); in tpacket_rcv()
2324 skb_copy_bits(skb, 0, h.raw + macoff, snaplen); in tpacket_rcv()
2334 h.h1->tp_snaplen = snaplen; in tpacket_rcv()
2343 h.h2->tp_snaplen = snaplen; in tpacket_rcv()
2365 h.h3->tp_snaplen = snaplen; in tpacket_rcv()
2395 macoff + snaplen); in tpacket_rcv()