Lines Matching defs:snaplen
524 uint32_t snaplen; /* max length of captured packets, in octets */
535 int bus_pcap_header(size_t snaplen, FILE *f) {
549 assert(snaplen > 0);
550 assert((size_t) (uint32_t) snaplen == snaplen);
552 hdr.snaplen = (uint32_t) snaplen;
559 int bus_message_pcap_frame(sd_bus_message *m, size_t snaplen, FILE *f) {
570 assert(snaplen > 0);
571 assert((size_t) (uint32_t) snaplen == snaplen);
581 hdr.incl_len = MIN(hdr.orig_len, snaplen);
587 w = MIN(BUS_MESSAGE_BODY_BEGIN(m), snaplen);
589 snaplen -= w;
593 if (snaplen <= 0)
596 w = MIN(part->size, snaplen);
598 snaplen -= w;