Home
last modified time | relevance | path

Searched refs:snaplen (Results 1 – 24 of 24) sorted by relevance

/external/libpcap/tests/
Dopentest.c54 int dorfmon, dopromisc, snaplen, useactivate, bufsize; in main() local
62 snaplen = MAXIMUM_SNAPLEN; in main()
90 snaplen = strtol(optarg, &end, 0); in main()
92 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN) in main()
94 else if (snaplen == 0) in main()
95 snaplen = MAXIMUM_SNAPLEN; in main()
120 status = pcap_set_snaplen(pd, snaplen); in main()
Dfiltertest.c167 long snaplen; in main() local
181 snaplen = 68; in main()
217 snaplen = strtol(optarg, &end, 0); in main()
219 || snaplen < 0 || snaplen > 65535) in main()
221 else if (snaplen == 0) in main()
222 snaplen = 65535; in main()
246 pd = pcap_open_dead(dlt, snaplen); in main()
Dpcap_compile_test.c1 pcap = pcap_open_dead(link, snaplen);
/external/libpcap/
Dpcap-enet.c80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop()
95 caplen = cc > snaplen ? snaplen : cc ; in readloop()
Dsf-pcap.c209 hdr.snaplen = SWAPLONG(hdr.snaplen); in pcap_check_header()
234 p->snapshot = hdr.snaplen; in pcap_check_header()
569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) in sf_write_header() argument
578 hdr.snaplen = snaplen; in sf_write_header()
Dsf-pcap-ng.c133 bpf_u_int32 snaplen; member
881 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_check_header()
913 p->snapshot = idbp->snaplen; in pcap_ng_check_header()
1084 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_next_packet()
1101 if (p->snapshot != idbp->snaplen) { in pcap_ng_next_packet()
1104 idbp->snaplen); in pcap_ng_next_packet()
Dpcap.c576 pcap_set_snaplen(pcap_t *p, int snaplen) in pcap_set_snaplen() argument
580 p->snapshot = snaplen; in pcap_set_snaplen()
754 pcap_open_live(const char *source, int snaplen, int promisc, int to_ms, char *errbuf) in pcap_open_live() argument
762 status = pcap_set_snaplen(p, snaplen); in pcap_open_live()
1786 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) in pcap_open_dead_with_tstamp_precision() argument
1803 p->snapshot = snaplen; in pcap_open_dead_with_tstamp_precision()
1818 pcap_open_dead(int linktype, int snaplen) in pcap_open_dead() argument
1820 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen, in pcap_open_dead()
Ddlpisubs.c276 pcap_conf_bufmod(pcap_t *p, int snaplen) in pcap_conf_bufmod() argument
287 ss = snaplen; in pcap_conf_bufmod()
DREADME.dag90 libpcap now does NOT set the card's hardware snaplen (slen). This must now be
92 dagsix, dagconfig. This is because the snaplen is currently shared between
Dpcap-dag.c732 } else if (snaplen < MIN_DAG_SNAPLEN) { in dag_activate()
736 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3); in dag_activate()
Dpcap-sita.c845 static void acn_start_monitor(int fd, int snaplen, int timeout, int promiscuous, int direction) {
853 *(uint32_t *)&buf[1] = htonl(snaplen);
Dpcap-win32.c703 p->snapshot = PacketSetSnapLen(p->adapter, snaplen); in pcap_activate_win32()
Dgencode.c399 static int snaplen; variable
462 snaplen = pcap_snapshot(p); in pcap_compile_unsafe()
463 if (snaplen == 0) { in pcap_compile_unsafe()
477 root = gen_retblk(snaplen); in pcap_compile_unsafe()
604 backpatch(p, gen_retblk(snaplen));
DCHANGES205 Fix bug where create_ring would fail for particular snaplen and
/external/qemu/android/
Dqemu-tcpdump.c52 uint32_t snaplen; in pcap_write_header() member
63 h.snaplen = PCAP_SNAPLEN; in pcap_write_header()
/external/tcpdump/
Dtcpdump.c1004 snaplen = strtol(optarg, &end, 0); in main()
1006 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN) in main()
1008 else if (snaplen == 0) in main()
1009 snaplen = MAXIMUM_SNAPLEN; in main()
1278 status = pcap_set_snaplen(pd, snaplen); in main()
1352 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf); in main()
1393 if (snaplen < i) { in main()
1394 warning("snaplen raised from %d to %d", snaplen, i); in main()
1395 snaplen = i; in main()
1565 device, dlt, snaplen); in main()
[all …]
Dprint-cnfp.c116 snaplen -= 24; in cnfp_print()
119 snaplen -= 16; in cnfp_print()
Dprint-icmp.c586 snaplen = snapend - bp; in icmp_print()
Dinterface.h418 #define snaplen gndo->ndo_snaplen macro
DCHANGES847 - Detect when pcap raises the snaplen (e.g. with snit). Print a warning
/external/chromium_org/third_party/webrtc/modules/video_coding/main/test/
Dpcap_file_reader.cc228 uint32_t snaplen; // Max length of captured packets, in octets. in ReadGlobalHeader() local
232 TRY(Read(&snaplen, false)); in ReadGlobalHeader()
/external/libpcap/pcap/
Dpcap.h130 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member
/external/qemu/net/
Dnet-android.c2014 uint32_t snaplen; member
2085 hdr.snaplen = s->pcap_caplen; in net_dump_init()
Dnet.c1935 uint32_t snaplen; member
2006 hdr.snaplen = s->pcap_caplen; in net_dump_init()