| /src/usr.sbin/npf/npfd/ |
| npfd.c | 148 " [-f <filename>] [-p <pidfile>] [-s <snaplen>] expression\n", 181 int snaplen = 116; local 206 snaplen = atoi(optarg); 218 npfd_log_t *log = npfd_log_create(filename, iface, filter, snaplen);
|
| npfd_log.c | 58 int snaplen; member in struct:npfd_log 122 return hdr.snaplen; 155 return hdr.snaplen; 158 if (pkt.caplen > hdr.snaplen) 189 return hdr.snaplen; 214 int snaplen) 233 ctx->snaplen = snaplen; 248 int snaplen = ctx->snaplen; local [all...] |
| /src/external/bsd/libpcap/dist/testprogs/ |
| opentest.c | 62 int dorfmon, dopromisc, snaplen, useactivate, bufsize; local 71 snaplen = MAXIMUM_SNAPLEN; 104 error("invalid snaplen %s", optarg); 106 if (snaplen == 0) 107 snaplen = MAXIMUM_SNAPLEN; 109 snaplen = (int)long_snaplen; 143 status = pcap_set_snaplen(pd, snaplen); 204 "Usage: %s [ -Ipa ] [ -i interface ] [ -s snaplen ] [ -B bufsize ]\n",
|
| filtertest.c | 215 int snaplen; local 235 snaplen = MAXIMUM_SNAPLEN; 293 error("invalid snaplen %s", optarg); 295 if (snaplen == 0) 296 snaplen = MAXIMUM_SNAPLEN; 298 snaplen = (int)long_snaplen; 331 pd = pcap_open_dead(dlt, snaplen); 372 "Usage: %s [-dgO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n", 374 "Usage: %s [-dO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n",
|
| writecaptest.c | 158 open_interface(const char *device, int snaplen_set, int snaplen, char *ebuf) 177 status = pcap_set_snaplen(pc, snaplen); 234 int snaplen = 0; local 276 snaplen = (int)strtol(optarg, &end, 0); 277 if (optarg == end || *end != '\0' || snaplen < 0) 278 error("invalid snaplen %s (must be >= 0)", 359 pd = open_interface(device, snaplen_set, snaplen, ebuf); 386 pd = open_interface(device, snaplen_set, snaplen, ebuf); 483 (void)fprintf(stderr, "Usage: %s -D -L [ -i interface ] [ -s snaplen ] [ -w file ] [ -y dlt ] [expression]\n",
|
| /src/external/bsd/ipf/dist/ipsd/ |
| sdlpi.c | 158 int i, offset, fd, snaplen= 58, chunksize = BUFSPACE; local
|
| 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");
|
| /src/dist/pf/sbin/pflogd/ |
| privsep.c | 79 int snaplen, ret, olderrno; local 148 must_read(socks[0], &snaplen, sizeof(int)); 150 ret = set_snaplen(snaplen); 153 "[priv]: set_snaplen failed for snaplen %d", 154 snaplen); 253 priv_set_snaplen(int snaplen) 263 must_write(priv_fd, &snaplen, sizeof(int)); 269 hpcap->snapshot = snaplen;
|
| pflogd.c | 67 static uint32_t snaplen = DEF_SNAPLEN; variable 100 /* buffer must always be greater than snaplen */ 182 fprintf(stderr, " [-s snaplen] [expression]\n"); 250 hpcap = pcap_open_live(interface, snaplen, 1, PCAP_TO_MS, errbuf); 265 cur_snaplen = snaplen = pcap_snapshot(hpcap); 358 if (snaplen != cur_snaplen) { 359 logmsg(LOG_NOTICE, "Using snaplen %d", snaplen); 360 if (set_snaplen(snaplen)) 369 hdr.snaplen = hpcap->snapshot [all...] |
| /src/usr.sbin/bootp/bootptest/ |
| bootptest.c | 86 int snaplen; variable 348 snaplen = sizeof(*bp); 367 snaplen += (n - BP_VEND_LEN); 375 snapend = (unsigned char *) sndbuf + snaplen; 419 snaplen = n; 420 snapend = (unsigned char *) rcvbuf + snaplen; 439 bootp_print((struct bootp *)sndbuf, snaplen, sin_from.sin_port, 0); 443 if (sendto(s, sndbuf, snaplen, 0,
|
| /src/external/bsd/ipf/dist/lib/ |
| ipft_pc.c | 43 u_int snaplen; member in struct:__anon6703 77 p->snaplen = SWAPLONG(p->snaplen); 121 ph.id, ph.major, ph.minor, ph.type, ph.snaplen);
|
| /src/external/bsd/libpcap/dist/ |
| sf-pcapng.c | 117 bpf_u_int32 snaplen; member in struct:interface_description_block 200 uint32_t snaplen; /* snapshot length */ member in struct:pcap_ng_if 701 ps->ifaces[ps->ifcount - 1].snaplen = idbp->snaplen; 1028 idbp->snaplen = SWAPLONG(idbp->snaplen); 1061 p->snapshot = pcapint_adjust_snapshot(p->linktype, idbp->snaplen); 1239 idbp->snaplen = SWAPLONG(idbp->snaplen); 1262 pcapint_adjust_snapshot(p->linktype, idbp->snaplen)) { [all...] |
| rpcap-protocol.h | 291 uint32 snaplen; /* Length of the snapshot (number of bytes to capture for each packet) */ member in struct:rpcap_startcapreq
|
| pcap-linux.c | 3981 unsigned int snaplen = tp_snaplen; local 4059 snaplen += sizeof(struct sll2_header); 4097 snaplen += sizeof(struct sll_header); 4289 snaplen, 4353 * of a "ret <snaplen>" instruction, on the socket
|
| gencode.c | 264 int snaplen; member in struct:_compiler_state 811 cstate.snaplen = pcap_snapshot(p); 812 if (cstate.snaplen == 0) { 814 "snaplen of 0 rejects all packets"); 849 cstate.ic.root = gen_retblk(&cstate, cstate.snaplen); 1026 backpatch(p, gen_retblk_internal(cstate, cstate->snaplen));
|
| /src/external/bsd/libpcap/dist/pcap/ |
| pcap.h | 217 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member in struct:pcap_file_header 1139 PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags,
|