/external/libpcap/tests/ |
H A D | pcap_compile_test.c | 1 pcap = pcap_open_dead(link, snaplen);
|
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...] |
/external/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 | 209 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 D | sf-pcap-ng.c | 133 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 D | dlpisubs.c | 276 pcap_conf_bufmod(pcap_t *p, int snaplen) argument 287 ss = snaplen;
|
H A D | pcap.c | 576 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 D | pcap-dag.c | 607 * 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 D | pcap-sita.c | 845 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 D | pcap-win32.c | 703 p->snapshot = PacketSetSnapLen(p->adapter, snaplen);
|
H A D | gencode.c | 399 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 D | print-cnfp.c | 116 snaplen -= 24; 119 snaplen -= 16;
|
H A D | tcpdump.c | 1004 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 D | print-icmp.c | 586 snaplen = snapend - bp;
|
H A D | interface.h | 418 #define snaplen gndo->ndo_snaplen macro
|
/external/libpcap/pcap/ |
H A D | pcap.h | 130 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member in struct:pcap_file_header
|