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

/external/libpcap/tests/
H A Dpcap_compile_test.c1 pcap = pcap_open_dead(link, snaplen);
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...]
/external/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.c209 hdr.snaplen = SWAPLONG(hdr.snaplen);
234 p->snapshot = hdr.snaplen;
569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) argument
578 hdr.snaplen = snaplen;
H A Dsf-pcap-ng.c133 bpf_u_int32 snaplen; member in struct:interface_description_block
881 idbp->snaplen = SWAPLONG(idbp->snaplen);
913 p->snapshot = idbp->snaplen;
1084 idbp->snaplen = SWAPLONG(idbp->snaplen);
1101 if (p->snapshot != idbp->snaplen) {
1104 idbp->snaplen);
H A Ddlpisubs.c276 pcap_conf_bufmod(pcap_t *p, int snaplen) argument
287 ss = snaplen;
H A Dpcap.c576 pcap_set_snaplen(pcap_t *p, int snaplen) argument
580 p->snapshot = snaplen;
754 pcap_open_live(const char *source, int snaplen, int promisc, int to_ms, char *errbuf) argument
762 status = pcap_set_snaplen(p, snaplen);
1786 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) argument
1803 p->snapshot = snaplen;
1818 pcap_open_dead(int linktype, int snaplen) argument
1820 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen,
H A Dpcap-dag.c607 * snaplen is now also ignored, until we get per-stream slen support. Set
727 /* set the card snap length to the specified snaplen parameter */
732 } else if (snaplen < MIN_DAG_SNAPLEN) {
736 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3);
H A Dpcap-sita.c845 static void acn_start_monitor(int fd, int snaplen, int timeout, int promiscuous, int direction) { argument
853 *(uint32_t *)&buf[1] = htonl(snaplen);
H A Dpcap-win32.c703 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
H A Dgencode.c399 static int snaplen; variable
462 snaplen = pcap_snapshot(p);
463 if (snaplen == 0) {
465 "snaplen of 0 rejects all packets");
477 root = gen_retblk(snaplen);
604 backpatch(p, gen_retblk(snaplen));
/external/tcpdump/
H A Dprint-cnfp.c116 snaplen -= 24;
119 snaplen -= 16;
H A Dtcpdump.c1004 snaplen = strtol(optarg, &end, 0);
1006 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN)
1007 error("invalid snaplen %s", optarg);
1008 else if (snaplen == 0)
1009 snaplen = MAXIMUM_SNAPLEN;
1278 status = pcap_set_snaplen(pd, snaplen);
1352 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf);
1393 if (snaplen < i) {
1394 warning("snaplen raise
[all...]
H A Dprint-icmp.c586 snaplen = snapend - bp;
H A Dinterface.h418 #define snaplen gndo->ndo_snaplen macro
/external/libpcap/pcap/
H A Dpcap.h130 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member in struct:pcap_file_header

Completed in 1694 milliseconds