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.c189 long snaplen; in main() local
212 snaplen = 68; in main()
248 snaplen = strtol(optarg, &end, 0); in main()
250 || snaplen < 0 || snaplen > 65535) in main()
252 else if (snaplen == 0) in main()
253 snaplen = 65535; in main()
280 pd = pcap_open_dead(dlt, snaplen); in main()
/external/libpcap/
Dpcap-enet.c76 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop()
91 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()
832 if (p->snapshot != ph.snaplen) { in pcap_dump_open_append()
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.c588 pcap_set_snaplen(pcap_t *p, int snaplen) in pcap_set_snaplen() argument
592 p->snapshot = snaplen; in pcap_set_snaplen()
766 pcap_open_live(const char *source, int snaplen, int promisc, int to_ms, char *errbuf) in pcap_open_live() argument
774 status = pcap_set_snaplen(p, snaplen); in pcap_open_live()
1816 pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, u_int precision) in pcap_open_dead_with_tstamp_precision() argument
1833 p->snapshot = snaplen; in pcap_open_dead_with_tstamp_precision()
1854 pcap_open_dead(int linktype, int snaplen) in pcap_open_dead() argument
1856 return (pcap_open_dead_with_tstamp_precision(linktype, snaplen, in pcap_open_dead()
Ddlpisubs.c272 pcap_conf_bufmod(pcap_t *p, int snaplen) in pcap_conf_bufmod() argument
283 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.c747 } else if (snaplen < MIN_DAG_SNAPLEN) { in dag_activate()
751 snprintf(conf, 30, "varlen slen=%d", (snaplen + 3) & ~3); in dag_activate()
Dpcap-sita.c843 static void acn_start_monitor(int fd, int snaplen, int timeout, int promiscuous, int direction) {
851 *(uint32_t *)&buf[1] = htonl(snaplen);
Dpcap-win32.c733 p->snapshot = PacketSetSnapLen(p->adapter, snaplen); in pcap_activate_win32()
Dgencode.c426 static int snaplen; variable
484 snaplen = pcap_snapshot(p); in pcap_compile()
485 if (snaplen == 0) { in pcap_compile()
500 root = gen_retblk(snaplen); in pcap_compile()
636 backpatch(p, gen_retblk(snaplen));
DCHANGES256 Fix bug where create_ring would fail for particular snaplen and
/external/tcpdump/
Dtcpdump.c1315 snaplen = strtol(optarg, &end, 0); in main()
1317 || snaplen < 0 || snaplen > MAXIMUM_SNAPLEN) in main()
1319 else if (snaplen == 0) in main()
1320 snaplen = MAXIMUM_SNAPLEN; in main()
1647 status = pcap_set_snaplen(pd, snaplen); in main()
1721 pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf); in main()
1762 if (snaplen < i) { in main()
1763 warning("snaplen raised from %d to %d", snaplen, i); in main()
1764 snaplen = i; in main()
1983 device, dlt, snaplen); in main()
[all …]
Dinterface.h224 #define snaplen gndo->ndo_snaplen macro
DCHANGES902 - Detect when pcap raises the snaplen (e.g. with snit). Print a warning
/external/autotest/server/cros/network/
Dpacket_capturer.py120 remote_file=None, snaplen=None): argument
288 remote_file=None, snaplen=None): argument
309 snaplen or 0,
Dwifi_test_context_manager.py167 snaplen=self._packet_capture_snaplen)
172 snaplen=self._packet_capture_snaplen)
/external/autotest/server/site_tests/network_WiFi_HiddenScan/
Dnetwork_WiFi_HiddenScan.py28 snaplen=packet_capturer.SNAPLEN_WIFI_PROBE_REQUEST)
/external/autotest/server/site_tests/network_WiFi_VisibleScan/
Dnetwork_WiFi_VisibleScan.py39 snaplen=packet_capturer.SNAPLEN_WIFI_PROBE_REQUEST)
/external/autotest/server/
Dsite_linux_system.py304 ht_type=None, snaplen=None, filename=None): argument
335 self._capture_interface, './debug/', snaplen=snaplen,
/external/autotest/server/site_tests/network_WiFi_RateControl/
Dnetwork_WiFi_RateControl.py147 snaplen=self.TEST_SNAPLEN)
/external/webrtc/webrtc/test/
Drtp_file_reader.cc411 uint32_t snaplen; // Max length of captured packets, in octets. in ReadGlobalHeader() local
415 TRY_PCAP(Read(&snaplen, false)); in ReadGlobalHeader()
/external/libpcap/pcap/
Dpcap.h128 bpf_u_int32 snaplen; /* max length saved portion of each pkt */ member