Home
last modified time | relevance | path

Searched refs:snaplen (Results 1 – 16 of 16) sorted by relevance

/dragonfly/usr.sbin/pflogd/
H A Dpflogd.c61 static int snaplen = DEF_SNAPLEN; variable
341 if (snaplen != cur_snaplen) { in try_reset_dump()
343 if (set_snaplen(snaplen)) in try_reset_dump()
352 hdr.snaplen = hpcap->snapshot; in try_reset_dump()
404 hdr.snaplen > PFLOGD_MAXSNAPLEN) { in scan_dump()
431 hdr.snaplen); in scan_dump()
432 if (set_snaplen(hdr.snaplen)) { in scan_dump()
542 len, cur_snaplen, snaplen); in dump_packet()
631 if (snaplen <= 0) in main()
632 snaplen = DEF_SNAPLEN; in main()
[all …]
H A Dprivsep.c69 int snaplen, ret, olderrno; in priv_init() local
128 must_read(socks[0], &snaplen, sizeof(int)); in priv_init()
130 ret = set_snaplen(snaplen); in priv_init()
134 snaplen); in priv_init()
233 priv_set_snaplen(int snaplen) in priv_set_snaplen() argument
243 must_write(priv_fd, &snaplen, sizeof(int)); in priv_set_snaplen()
249 hpcap->snapshot = snaplen; in priv_set_snaplen()
H A Dpflogd.h38 int priv_set_snaplen(int snaplen);
41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
/dragonfly/libexec/bootpd/tools/bootptest/
H A Dbootptest.c84 int snaplen; variable
352 snaplen = sizeof(*bp); in main()
371 snaplen += (n - BP_VEND_LEN); in main()
379 snapend = (unsigned char *) sndbuf + snaplen; in main()
427 snaplen = n; in main()
428 snapend = (unsigned char *) rcvbuf + snaplen; in main()
447 bootp_print(sndbuf, snaplen, sin_from.sin_port, 0); in send_request()
451 if (sendto(s, sndbuf, snaplen, 0, in send_request()
/dragonfly/contrib/libpcap/
H A Dsf-pcapng.c118 bpf_u_int32 snaplen; member
201 uint32_t snaplen; /* snapshot length */ member
702 ps->ifaces[ps->ifcount - 1].snaplen = idbp->snaplen; in add_interface()
1029 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_check_header()
1062 p->snapshot = pcap_adjust_snapshot(p->linktype, idbp->snaplen); in pcap_ng_check_header()
1240 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_next_packet()
1263 pcap_adjust_snapshot(p->linktype, idbp->snaplen)) { in pcap_ng_next_packet()
1266 idbp->snaplen); in pcap_ng_next_packet()
H A Dsavefile.c444 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot() argument
446 if (snaplen == 0 || snaplen > INT_MAX) { in pcap_adjust_snapshot()
456 snaplen = max_snaplen_for_dlt(linktype); in pcap_adjust_snapshot()
458 return snaplen; in pcap_adjust_snapshot()
H A Dsf-pcap.c213 hdr.snaplen = SWAPLONG(hdr.snaplen); in pcap_check_header()
254 p->snapshot = pcap_adjust_snapshot(p->linktype, hdr.snaplen); in pcap_check_header()
716 sf_write_header(pcap_t *p, FILE *fp, int linktype, int snaplen) in sf_write_header() argument
732 hdr.snaplen = snaplen; in sf_write_header()
1059 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
H A Dpcap.c2548 pcap_set_snaplen(pcap_t *p, int snaplen) argument
2552 p->snapshot = snaplen;
2762 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *errbuf) argument
2801 return (pcap_open_rpcap(device, snaplen,
2827 status = pcap_set_snaplen(p, snaplen);
4346 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) argument
4370 p->snapshot = snaplen;
4408 pcap_open_dead(int linktype, int snaplen) argument
4410 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
H A Dpcap-int.h564 bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
H A DCHANGES68 Increase the maximum snaplen for LINKTYPE_USBPCAP/DLT_USBPCAP
300 bound snaplen for linux tpacket_v2 to ~64k
661 Fix bug where create_ring would fail for particular snaplen and
H A Dgencode.c263 int snaplen; member
793 cstate.snaplen = pcap_snapshot(p); in pcap_compile()
794 if (cstate.snaplen == 0) { in pcap_compile()
835 cstate.ic.root = gen_retblk(&cstate, cstate.snaplen); in pcap_compile()
1004 backpatch(p, gen_retblk(cstate, cstate->snaplen)); in finish_parse()
/dragonfly/contrib/libpcap/pcap/
H A Dpcap.h215 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member
1086 PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags,
/dragonfly/sys/net/
H A Dbpf.c1404 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, in catchpacket() argument
1418 totlen = hdrlen + min(snaplen, pktlen); in catchpacket()
/dragonfly/contrib/file/magic/Magdir/
H A Dsniffer311 # snaplen, or other information from the first SHB may be misleading.
/dragonfly/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2416 pfh.snaplen = 65535;
/dragonfly/contrib/tcpdump/
H A DCHANGES1344 - Detect when pcap raises the snaplen (e.g. with snit). Print a warning