Home
last modified time | relevance | path

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

12

/freebsd-11-stable/contrib/libpcap/testprogs/
HDopentest.c62 int dorfmon, dopromisc, snaplen, useactivate, bufsize; in main() local
71 snaplen = MAXIMUM_SNAPLEN; in main()
99 snaplen = strtol(optarg, &end, 0); in main()
101 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN) in main()
103 else if (snaplen == 0) in main()
104 snaplen = MAXIMUM_SNAPLEN; in main()
137 status = pcap_set_snaplen(pd, snaplen); in main()
HDfiltertest.c202 long snaplen; in main() local
221 snaplen = 68; in main()
276 snaplen = strtol(optarg, &end, 0); in main()
278 || snaplen < 0 || snaplen > 65535) in main()
280 else if (snaplen == 0) in main()
281 snaplen = 65535; in main()
313 pd = pcap_open_dead(dlt, snaplen); in main()
/freebsd-11-stable/contrib/pf/pflogd/
HDpflogd.c66 static int snaplen = DEF_SNAPLEN; variable
263 hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf); in init_pcap()
278 cur_snaplen = snaplen = pcap_snapshot(hpcap); in init_pcap()
369 if (snaplen != cur_snaplen) { in try_reset_dump()
370 logmsg(LOG_NOTICE, "Using snaplen %d", snaplen); in try_reset_dump()
371 if (set_snaplen(snaplen)) in try_reset_dump()
379 hdr.snaplen = hpcap->snapshot; in try_reset_dump()
435 hdr.snaplen > PFLOGD_MAXSNAPLEN) { in scan_dump()
448 if (ph.caplen > hdr.snaplen || ph.caplen > PFLOGD_MAXSNAPLEN) in scan_dump()
459 if (hdr.snaplen != cur_snaplen) { in scan_dump()
[all …]
HDprivsep.c73 int snaplen, ret, olderrno; in priv_init() local
136 must_read(socks[0], &snaplen, sizeof(int)); in priv_init()
138 ret = set_snaplen(snaplen); in priv_init()
142 snaplen); in priv_init()
241 priv_set_snaplen(int snaplen) in priv_set_snaplen() argument
251 must_write(priv_fd, &snaplen, sizeof(int)); in priv_set_snaplen()
257 hpcap->snapshot = snaplen; in priv_set_snaplen()
HDpflogd.h38 int priv_set_snaplen(int snaplen);
41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
/freebsd-11-stable/libexec/bootpd/tools/bootptest/
HDbootptest.c87 int snaplen; variable
355 snaplen = sizeof(*bp);
374 snaplen += (n - BP_VEND_LEN);
382 snapend = (unsigned char *) sndbuf + snaplen;
430 snaplen = n;
431 snapend = (unsigned char *) rcvbuf + snaplen;
450 bootp_print(sndbuf, snaplen, sin_from.sin_port, 0);
454 if (sendto(s, sndbuf, snaplen, 0,
/freebsd-11-stable/contrib/libpcap/
HDpcap-enet.c76 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop()
91 caplen = cc > snaplen ? snaplen : cc ; in readloop()
HDsavefile.c347 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen) in pcap_adjust_snapshot() argument
349 if (snaplen == 0 || snaplen > INT_MAX) { in pcap_adjust_snapshot()
359 snaplen = max_snaplen_for_dlt(linktype); in pcap_adjust_snapshot()
361 return snaplen; in pcap_adjust_snapshot()
HDsf-pcapng.c117 bpf_u_int32 snaplen; member
1010 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_check_header()
1044 p->snapshot = pcap_adjust_snapshot(p->linktype, idbp->snaplen); in pcap_ng_check_header()
1222 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_next_packet()
1245 pcap_adjust_snapshot(p->linktype, idbp->snaplen)) { in pcap_ng_next_packet()
1248 idbp->snaplen); in pcap_ng_next_packet()
HDsf-pcap.c213 hdr.snaplen = SWAPLONG(hdr.snaplen); in pcap_check_header()
255 p->snapshot = pcap_adjust_snapshot(p->linktype, hdr.snaplen); in pcap_check_header()
717 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) in sf_write_header() argument
726 hdr.snaplen = snaplen; in sf_write_header()
1050 if ((bpf_u_int32)p->snapshot != ph.snaplen) { in pcap_dump_open_append()
HDpcap-new.c354 pcap_t *pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth… in pcap_open() argument
400 return pcap_open_rpcap(source, snaplen, flags, read_timeout, auth, errbuf); in pcap_open()
409 status = pcap_set_snaplen(fp, snaplen); in pcap_open()
HDpcap-rpcap.h40 pcap_t *pcap_open_rpcap(const char *source, int snaplen, int flags,
HDdlpisubs.c302 pcap_conf_bufmod(pcap_t *p, int snaplen) in pcap_conf_bufmod() argument
313 ss = snaplen; in pcap_conf_bufmod()
HDpcap.c2353 pcap_set_snaplen(pcap_t *p, int snaplen)
2357 p->snapshot = snaplen;
2567 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *errbuf)
2606 return (pcap_open_rpcap(device, snaplen,
2632 status = pcap_set_snaplen(p, snaplen);
3979 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision)
4003 p->snapshot = snaplen;
4041 pcap_open_dead(int linktype, int snaplen)
4043 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
HDrpcap-protocol.h268 uint32 snaplen; /* Length of the snapshot (number of bytes to capture for each packet) */ member
HDpcap-rpcap.c1165 startcapreq->snaplen = htonl(fp->snapshot); in pcap_startcapture_remote()
2186 pcap_t *pcap_open_rpcap(const char *source, int snaplen, int flags, int read_timeout, struct pcap_r… in pcap_open_rpcap() argument
2226 if (snaplen <= 0 || snaplen > MAXIMUM_SNAPLEN) in pcap_open_rpcap()
2227 snaplen = MAXIMUM_SNAPLEN; in pcap_open_rpcap()
2230 fp->snapshot = snaplen; in pcap_open_rpcap()
HDpcap-int.h488 bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen);
HDpcap-sita.c867 static void acn_start_monitor(int fd, int snaplen, int timeout, int promiscuous, int direction) { in acn_start_monitor() argument
875 *(uint32_t *)&buf[1] = htonl(snaplen); in acn_start_monitor()
HDpcap-linux.c5101 unsigned int snaplen = tp_snaplen; local
5179 snaplen += sizeof(struct sll2_header);
5217 snaplen += sizeof(struct sll_header);
5230 snaplen,
/freebsd-11-stable/contrib/ipfilter/lib/
HDipft_pc.c43 u_int snaplen; member
77 p->snaplen = SWAPLONG(p->snaplen);
121 ph.id, ph.major, ph.minor, ph.type, ph.snaplen);
/freebsd-11-stable/contrib/libpcap/pcap/
HDpcap.h166 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member
857 PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags,
/freebsd-11-stable/contrib/libpcap/doc/
HDREADME.dag90 libpcap now does NOT set the card's hardware snaplen (slen). This must now be
92 dagsix, dagconfig. This is because the snaplen is currently shared between
/freebsd-11-stable/contrib/tcpdump/
HDCONTRIBUTING120 sudo ./tcpdump -s snaplen [-v][v][...] -i lo # in a terminal
122 You should try several values for snaplen to do various truncation.
/freebsd-11-stable/contrib/file/magic/Magdir/
HDsniffer300 # snaplen, or other information from the first SHB may be misleading.
/freebsd-11-stable/sys/net/
HDbpf.c2375 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, in catchpacket() argument
2414 totlen = hdrlen + min(snaplen, pktlen); in catchpacket()

12