Searched refs:snaplen (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-9.3-release/contrib/pf/pflogd/
H A Dpflogd.h38 int priv_set_snaplen(int snaplen);
41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
H A Dprivsep.c73 int snaplen, ret, olderrno; local
136 must_read(socks[0], &snaplen, sizeof(int));
138 ret = set_snaplen(snaplen);
141 "[priv]: set_snaplen failed for snaplen %d",
142 snaplen);
241 priv_set_snaplen(int snaplen) argument
251 must_write(priv_fd, &snaplen, sizeof(int));
257 hpcap->snapshot = snaplen;
H A Dpflogd.c66 static int snaplen = DEF_SNAPLEN; variable
101 /* buffer must always be greater than snaplen */
173 fprintf(stderr, " [-s snaplen] [expression]\n");
263 hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf);
278 cur_snaplen = snaplen = pcap_snapshot(hpcap);
369 if (snaplen != cur_snaplen) {
370 logmsg(LOG_NOTICE, "Using snaplen %d", snaplen);
371 if (set_snaplen(snaplen))
379 hdr.snaplen
[all...]
/freebsd-9.3-release/contrib/libpcap/tests/
H A Dfiltertest.c167 long snaplen; local
181 snaplen = 68;
217 snaplen = strtol(optarg, &end, 0);
219 || snaplen < 0 || snaplen > 65535)
220 error("invalid snaplen %s", optarg);
221 else if (snaplen == 0)
222 snaplen = 65535;
246 pd = pcap_open_dead(dlt, snaplen);
263 "Usage: %s [-dO] [ -F file ] [ -m netmask] [ -s snaplen ] dl
[all...]
H A Dopentest.c54 int dorfmon, dopromisc, snaplen, useactivate, bufsize; local
62 snaplen = MAXIMUM_SNAPLEN;
90 snaplen = strtol(optarg, &end, 0);
92 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN)
93 error("invalid snaplen %s", optarg);
94 else if (snaplen == 0)
95 snaplen = MAXIMUM_SNAPLEN;
120 status = pcap_set_snaplen(pd, snaplen);
177 "Usage: %s [ -Ipa ] [ -i interface ] [ -s snaplen ] [
[all...]
/freebsd-9.3-release/contrib/libpcap/
H A Dpcap-enet.c80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap
95 caplen = cc > snaplen ? snaplen : cc ;
H A Dsf-pcap.c176 hdr.snaplen = SWAPLONG(hdr.snaplen);
188 p->snapshot = hdr.snaplen;
455 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen) argument
464 hdr.snaplen = snaplen;
H A Dsf-pcap-ng.c133 bpf_u_int32 snaplen; member in struct:interface_description_block
690 idbp->snaplen = SWAPLONG(idbp->snaplen);
748 p->snapshot = idbp->snaplen;
907 idbp->snaplen = SWAPLONG(idbp->snaplen);
924 if (p->snapshot != idbp->snaplen) {
927 idbp->snaplen);
H A Ddlpisubs.c270 pcap_conf_bufmod(pcap_t *p, int snaplen, int timeout) argument
282 ss = snaplen;
H A Dpcap.c523 pcap_set_snaplen(pcap_t *p, int snaplen) argument
527 p->snapshot = snaplen;
641 pcap_open_live(const char *source, int snaplen, int promisc, int to_ms, char *errbuf) argument
649 status = pcap_set_snaplen(p, snaplen);
1623 pcap_open_dead(int linktype, int snaplen) argument
1631 p->snapshot = snaplen;
H A Dpcap-dag.c580 * snaplen is now also ignored, until we get per-stream slen support. Set
692 /* set the card snap length to the specified snaplen parameter */
697 } else if (snaplen < MIN_DAG_SNAPLEN) {
701 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3);
H A Dpcap-sita.c834 static void acn_start_monitor(int fd, int snaplen, int timeout, int promiscuous, int direction) { argument
842 *(uint32_t *)&buf[1] = htonl(snaplen);
H A Dpcap-win32.c671 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
H A Dgencode.c403 static int snaplen; variable
466 snaplen = pcap_snapshot(p);
467 if (snaplen == 0) {
469 "snaplen of 0 rejects all packets");
481 root = gen_retblk(snaplen);
608 backpatch(p, gen_retblk(snaplen));
H A Dpcap-bpf.c1482 return dag_open_live(device, snaplen, promisc, to_ms, ebuf);
/freebsd-9.3-release/libexec/bootpd/tools/bootptest/
H A Dbootptest.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-9.3-release/contrib/tcpdump/
H A Dprint-cnfp.c116 snaplen -= 24;
119 snaplen -= 16;
H A Dtcpdump.c977 snaplen = strtol(optarg, &end, 0);
979 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN)
980 error("invalid snaplen %s", optarg);
981 else if (snaplen == 0)
982 snaplen = MAXIMUM_SNAPLEN;
1245 status = pcap_set_snaplen(pd, snaplen);
1311 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf);
1352 if (snaplen < i) {
1353 warning("snaplen raise
[all...]
H A Dinterface.h397 #define snaplen gndo->ndo_snaplen macro
H A Dprint-icmp.c588 snaplen = snapend - bp;
/freebsd-9.3-release/contrib/ipfilter/ipsd/
H A Dsnit.c126 int ret, offset, fd, snaplen= 76, chunksize = BUFSPACE; local
219 si.ic_len = sizeof(snaplen);
220 si.ic_dp = (char*)&snaplen;
223 perror("ioctl: NIT snaplen");
H A Dsdlpi.c158 int i, offset, fd, snaplen= 58, chunksize = BUFSPACE; local
/freebsd-9.3-release/contrib/libpcap/pcap/
H A Dpcap.h128 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member in struct:pcap_file_header
/freebsd-9.3-release/sys/net/
H A Dnetmap_user.h215 int snaplen; member in struct:nm_desc
H A Dbpf.c1824 * (used to set snaplen) by pcap_open_live().
2294 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, argument
2336 totlen = hdrlen + min(snaplen, pktlen);

Completed in 310 milliseconds

12