/freebsd-9.3-release/contrib/pf/pflogd/ |
H A D | pflogd.h | 38 int priv_set_snaplen(int snaplen); 41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
|
H A D | privsep.c | 73 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 D | pflogd.c | 66 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 D | filtertest.c | 167 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 D | opentest.c | 54 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 D | pcap-enet.c | 80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap 95 caplen = cc > snaplen ? snaplen : cc ;
|
H A D | sf-pcap.c | 176 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 D | sf-pcap-ng.c | 133 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 D | dlpisubs.c | 270 pcap_conf_bufmod(pcap_t *p, int snaplen, int timeout) argument 282 ss = snaplen;
|
H A D | pcap.c | 523 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 D | pcap-dag.c | 580 * 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 D | pcap-sita.c | 834 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 D | pcap-win32.c | 671 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
|
H A D | gencode.c | 403 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 D | pcap-bpf.c | 1482 return dag_open_live(device, snaplen, promisc, to_ms, ebuf);
|
/freebsd-9.3-release/libexec/bootpd/tools/bootptest/ |
H A D | bootptest.c | 87 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 D | print-cnfp.c | 116 snaplen -= 24; 119 snaplen -= 16;
|
H A D | tcpdump.c | 977 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 D | interface.h | 397 #define snaplen gndo->ndo_snaplen macro
|
H A D | print-icmp.c | 588 snaplen = snapend - bp;
|
/freebsd-9.3-release/contrib/ipfilter/ipsd/ |
H A D | snit.c | 126 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 D | sdlpi.c | 158 int i, offset, fd, snaplen= 58, chunksize = BUFSPACE; local
|
/freebsd-9.3-release/contrib/libpcap/pcap/ |
H A D | pcap.h | 128 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 D | netmap_user.h | 215 int snaplen; member in struct:nm_desc
|
H A D | bpf.c | 1824 * (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);
|