Home | History | Annotate | Download | only in pflogd

Lines Matching defs:snaplen

66 static uint32_t snaplen = DEF_SNAPLEN;
99 /* buffer must always be greater than snaplen */
181 fprintf(stderr, " [-s snaplen] [expression]\n");
249 hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf);
264 cur_snaplen = snaplen = pcap_snapshot(hpcap);
357 if (snaplen != cur_snaplen) {
358 logmsg(LOG_NOTICE, "Using snaplen %d", snaplen);
359 if (set_snaplen(snaplen))
368 hdr.snaplen = hpcap->snapshot;
406 * options (in particular, snaplen) and adjust our options so
423 hdr.snaplen > PFLOGD_MAXSNAPLEN) {
436 if (ph.caplen > hdr.snaplen || ph.caplen > PFLOGD_MAXSNAPLEN)
447 if (hdr.snaplen != cur_snaplen) {
449 "Existing file has different snaplen %u, using it",
450 hdr.snaplen);
451 if (set_snaplen(hdr.snaplen)) {
577 len, cur_snaplen, snaplen);
654 snaplen = strtonum(optarg, 0, PFLOGD_MAXSNAPLEN,
656 if (snaplen <= 0)
657 snaplen = DEF_SNAPLEN;
659 snaplen = PFLOGD_MAXSNAPLEN;