Lines Matching defs:ppd
224 union frame_map ppd;
241 ppd.raw = ring->rd[frame_num].iov_base;
245 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac,
246 ppd.v1->tp_h.tp_snaplen);
247 total_bytes += ppd.v1->tp_h.tp_snaplen;
251 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac,
252 ppd.v2->tp_h.tp_snaplen);
253 total_bytes += ppd.v2->tp_h.tp_snaplen;
260 __v1_v2_rx_user_ready(ppd.raw, ring->version);
374 union frame_map ppd;
423 ppd.raw = next;
427 ppd.v1->tp_h.tp_snaplen = packet_len;
428 ppd.v1->tp_h.tp_len = packet_len;
430 memcpy((uint8_t *) ppd.raw + TPACKET_HDRLEN -
433 total_bytes += ppd.v1->tp_h.tp_snaplen;
437 ppd.v2->tp_h.tp_snaplen = packet_len;
438 ppd.v2->tp_h.tp_len = packet_len;
440 memcpy((uint8_t *) ppd.raw + TPACKET2_HDRLEN -
443 total_bytes += ppd.v2->tp_h.tp_snaplen;
547 struct tpacket3_hdr *ppd;
551 ppd = (struct tpacket3_hdr *) ((uint8_t *) pbd +
555 bytes += ppd->tp_snaplen;
557 if (ppd->tp_next_offset)
558 bytes_with_padding += ppd->tp_next_offset;
560 bytes_with_padding += ALIGN_8(ppd->tp_snaplen + ppd->tp_mac);
562 test_payload((uint8_t *) ppd + ppd->tp_mac, ppd->tp_snaplen);
567 ppd = (struct tpacket3_hdr *) ((uint8_t *) ppd + ppd->tp_next_offset);