Home
last modified time | relevance | path

Searched full:pcap (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/external/tcpdump/tests/
DTESTLIST15 print-x print-flags.pcap print-x.out -x
16 print-xx print-flags.pcap print-xx.out -xx
17 print-X print-flags.pcap print-capX.out -X
18 print-XX print-flags.pcap print-capXX.out -XX
19 print-A print-flags.pcap print-A.out -A
20 print-AA print-flags.pcap print-AA.out -AA
23 bgp_vpn_attrset bgp_vpn_attrset.pcap bgp_vpn_attrset.out -v
24 mpbgp-linklocal-nexthop mpbgp-linklocal-nexthop.pcap mpbgp-linklocal-nexthop.out -v
25 bgp_infloop-v bgp-infinite-loop.pcap bgp_infloop-v.out -v
26 bgp-aigp bgp-aigp.pcap bgp-aigp.out -v
[all …]
Dcrypto.tests10 input => '02-sunrise-sunset-esp.pcap',
18 input => '08-sunrise-sunset-esp2.pcap',
26 input => '02-sunrise-sunset-esp.pcap',
35 input => '08-sunrise-sunset-esp2.pcap',
44 input => '08-sunrise-sunset-aes.pcap',
53 input => 'espudp1.pcap',
62 input => 'ikev2pI2.pcap',
71 input => 'isakmp4500.pcap',
76 …#bgp-as-path-oobr-ssl ${testsdir}/bgp-as-path-oobr.pcap ${testsdir}/bgp-as-path-oobr-ssl.out '-vvv…
80 input => 'bgp-as-path-oobr.pcap',
[all …]
Dsmb.tests12 input => 'eapon1.pcap',
19 input => 'eapon1.pcap',
26 input => 'eapon1.pcap',
34 input => 'eapon1.pcap',
43 input => 'ipx.pcap',
50 input => 'ipx.pcap',
58 input => 'nbns-valgrind.pcap',
66 input => 'nbns-valgrind.pcap',
75 input => 'smb_print_trans-oobr1.pcap',
83 input => 'smb_print_trans-oobr1.pcap',
[all …]
/external/libpcap/msdos/
Dmakefile25 etherent.c gencode.c nametoad.c pcap-dos.c optimize.c \
26 savefile.c pcap.c msdos\ndis2.c msdos\pktdrvr.c \
107 bpf_filt.obj: bpf_filt.c pcap-int.h pcap.h pcap-bpf.h
109 bpf_imag.obj: bpf_imag.c pcap-int.h pcap.h pcap-bpf.h
111 bpf_dump.obj: bpf_dump.c pcap.h pcap-bpf.h
113 etherent.obj: etherent.c pcap-int.h pcap.h pcap-bpf.h pcap-namedb.h
115 optimize.obj: optimize.c pcap-int.h pcap.h pcap-bpf.h gencode.h
117 savefile.obj: savefile.c pcap-int.h pcap.h pcap-bpf.h
119 pcap.obj: pcap.c pcap-dos.h pcap-int.h pcap.h pcap-bpf.h
121 grammar.obj: grammar.c pcap-int.h pcap.h pcap-bpf.h gencode.h \
[all …]
Dmakefile.wc10 # c:\net\pcap> wmake -f msdos\makefile.wc
17 LIB = $(OBJDIR)\pcap.lib
27 OBJS = $(OBJDIR)\grammar.obj $(OBJDIR)\scanner.obj $(OBJDIR)\pcap.obj &
30 $(OBJDIR)\pcap-dos.obj $(OBJDIR)\pktdrvr.obj $(OBJDIR)\optimize.obj &
39 all: $(OBJDIR) $(OBJDIR)\pcap.lib
44 $(OBJDIR)\pcap.lib: $(OBJS) wlib.arg
45 wlib -q -b -c $(OBJDIR)\pcap.lib @wlib.arg
52 pcap-dos.h pcap-int.h pcap.h msdos\pktdrvr.h
97 $(OBJDIR)\bpf_filter.obj: bpf_filter.c pcap-int.h pcap.h pcap-bpf.h
99 $(OBJDIR)\bpf_imag.obj: bpf_imag.c pcap-int.h pcap.h pcap-bpf.h
[all …]
Dmakefile.dj7 # c:\net\pcap> make -f msdos/makefile.dj
26 etherent.c gencode.c nametoaddr.c pcap-common.c pcap-dos.c optimize.c \
27 savefile.c pcap.c sf-pcap.c sf-pcapng.c \
115 scanner.l: pcap-int.h pcap-namedb.h gencode.h grammar.h
116 grammar.y: pcap-int.h gencode.h pcap-namedb.h
/external/libpcap/
DMakefile.in92 COMMON_C_SRC = pcap.c gencode.c optimize.c nametoaddr.c etherent.c \
93 fmtutils.c pcap-util.c \
94 savefile.c sf-pcap.c sf-pcapng.c pcap-common.c \
111 pcap.h \
112 pcap-bpf.h \
113 pcap-namedb.h \
114 pcap/bluetooth.h \
115 pcap/bpf.h \
116 pcap/can_socketcan.h \
117 pcap/compiler-tests.h \
[all …]
DINSTALL.md77 `--with-pcap` option to `./configure` or the `-DPCAP_TYPE` option to
228 dlpisubs.c - DLPI-related functions for pcap-dlpi.c and pcap-libdlpi.c
257 pcap/bluetooth.h - public definition of DLT_BLUETOOTH_HCI_H4_WITH_PHDR header
258 pcap/bpf.h - BPF definitions
259 pcap/can_socketcan.h - SocketCAN header
260 pcap/compiler-tests.h - compiler version comparison and other macros
261 pcap/dlt.h - Link-layer header type codes.
262 pcap/funcattrs.h - function attribute macros
263 pcap/ipnet.h - Solaris IPnet definitions
264 pcap/namedb.h - public libpcap name database definitions
[all …]
D.gitignore30 /pcap-config
31 /pcap-filter.manmisc
32 /pcap-linktype.manmisc
33 /pcap-savefile.manfile
34 /pcap-tstamp.manmisc
35 /pcap.3pcap
36 /pcap_compile.3pcap
37 /pcap_datalink.3pcap
38 /pcap_dump_open.3pcap
39 /pcap_get_tstamp_precision.3pcap
[all …]
Dpcap-dos.c5 * pcap-dos.c: Interface to PKTDRVR, NDIS2 and 32-bit pmode
38 #include "pcap.h"
39 #include "pcap-dos.h"
40 #include "pcap-int.h"
111 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf);
114 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap,
169 static int pcap_activate_dos (pcap_t *pcap) in pcap_activate_dos() argument
171 if (pcap->opt.rfmon) { in pcap_activate_dos()
186 if (pcap->snapshot <= 0 || pcap->snapshot > MAXIMUM_SNAPLEN) in pcap_activate_dos()
187 pcap->snapshot = MAXIMUM_SNAPLEN; in pcap_activate_dos()
[all …]
Dbuild.sh83 run_after_echo "$PREFIX/bin/pcap-config" --help
84 run_after_echo "$PREFIX/bin/pcap-config" --version
85 run_after_echo "$PREFIX/bin/pcap-config" --cflags
86 run_after_echo "$PREFIX/bin/pcap-config" --libs
87 run_after_echo "$PREFIX/bin/pcap-config" --additional-libs
88 run_after_echo "$PREFIX/bin/pcap-config" --libs --static
89 run_after_echo "$PREFIX/bin/pcap-config" --additional-libs --static
90 run_after_echo "$PREFIX/bin/pcap-config" --libs --static-pcap-only
91 run_after_echo "$PREFIX/bin/pcap-config" --additional-libs --static-pcap-only
Dpcap-config.121 .TH PCAP\-CONFIG 1 "17 April 2023"
23 pcap-config \- write libpcap compiler and linker flags to standard output
26 .B pcap-config
46 .B \-\-static\-pcap\-only
52 .I pcap\-config
106 .B \-\-static\-pcap\-only
116 .I pcap\-config
123 .I pcap\-config
125 .B \-\-static\-pcap\-only
DCMakeLists.txt106 project(pcap C) project
148 # pcap-config files.
228 # pcap-config and libpcap.pc, for a library upon which we depend.
430 # NOTE: pcap does *NOT* work with msvcrt.dll; it must link with
441 # the DLLs, so the system will find pcap.dll when any of the
456 set(LIBRARY_NAME pcap CACHE STRING "Library name")
461 set(LIBRARY_NAME pcap)
542 # Get, parse, format and set pcap's version string from [pcap_root]/VERSION
1757 pcap-common.c
1758 pcap-util.c
[all …]
Dpcap.h38 * expect to be able to include <pcap.h>, and at least some of them
40 * OSes that have "helpfully" moved pcap.h to <pcap/pcap.h> without
41 * leaving behind a <pcap.h> file.
43 #include <pcap/pcap.h>
Dpcap-savefile.manfile.in20 .TH PCAP-SAVEFILE @MAN_FILE_FORMATS@ "16 Aug 2023"
22 pcap-savefile \- libpcap savefile format
83 A 4-byte not used - SHOULD be filled with 0 by pcap file writers, and MUST
84 be ignored by pcap file readers. This value was documented by some older
86 Some older pcap file writers stored non-zero values in this field.
88 A 4-byte not used - SHOULD be filled with 0 by pcap file writers, and MUST
89 be ignored by pcap file readers. This value was documented by some older
90 implementations as "accuracy of timestamps". Some older pcap file
129 not used - MUST be set to zero by pcap writers, and MUST NOT be
130 interpreted by pcap readers; a reader SHOULD treat a non-zero value as
[all …]
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c13 #include <pcap.h>
27 pcap_t *pcap; member
89 ret = pcap_sendpacket(l2->pcap, buf, len); in l2_packet_send()
105 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
121 pcap_t *pcap = sock_ctx; in l2_packet_receive() local
128 packet = pcap_next(pcap, &hdr); in l2_packet_receive()
178 pcap_t *pcap = timeout_ctx; in l2_packet_receive_timeout() local
191 l2, pcap); in l2_packet_receive_timeout()
192 pcap_dispatch(pcap, 10, l2_packet_receive_cb, (u_char *) l2); in l2_packet_receive_timeout()
208 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
[all …]
Dl2_packet_freebsd.c14 #include <pcap.h>
41 pcap_t *pcap; member
71 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
75 return pcap_inject(l2->pcap, buf, len); in l2_packet_send()
82 pcap_t *pcap = sock_ctx; in l2_packet_receive() local
89 packet = pcap_next(pcap, &hdr); in l2_packet_receive()
121 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
122 if (l2->pcap == NULL) { in l2_packet_init_libpcap()
127 if (pcap_datalink(l2->pcap) != DLT_EN10MB && in l2_packet_init_libpcap()
128 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) { in l2_packet_init_libpcap()
[all …]
Dl2_packet_winpcap.c30 #include <pcap.h>
48 pcap_t *pcap; member
82 ret = pcap_sendpacket(l2->pcap, buf, len); in l2_packet_send()
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
133 pcap_dispatch(l2->pcap, 1, l2_packet_receive_cb, in l2_packet_receive_thread()
169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); in l2_packet_init_libpcap()
170 if (l2->pcap == NULL) { in l2_packet_init_libpcap()
182 if (pcap_compile(l2->pcap, &pcap_fp, pcap_filter, 1, pcap_netp) < 0) { in l2_packet_init_libpcap()
183 fprintf(stderr, "pcap_compile: %s\n", pcap_geterr(l2->pcap)); in l2_packet_init_libpcap()
187 if (pcap_setfilter(l2->pcap, &pcap_fp) < 0) { in l2_packet_init_libpcap()
[all …]
/external/tcpdump/cmake/Modules/
DFindPCAP.cmake6 # lib subdirectories for pcap.dll (e.g WpdPack or npcap-sdk).
8 # (e.g cmake -DPCAP_ROOT=C:\path\to\pcap [...])
15 # libpcap isn't set up to install .pc files or pcap-config on Windows,
20 # So just search for them directly. Look for both pcap and wpcap.
30 find_path(PCAP_INCLUDE_DIR pcap.h)
45 find_library(PCAP_LIBRARY NAMES pcap wpcap)
52 find_package_handle_standard_args(PCAP
185 # That didn't work. Try pcap-config.
187 find_program(PCAP_CONFIG pcap-config)
190 # We have pcap-config; use it.
[all …]
/external/autotest/docs/
Dwificell.md6 packet capture (pcap) device or a signal attenuator. For instructions on how
53 # DUT at 'my-host', AP at 'my-other-router', and PCAP at 'my-other-pcap'
54 test_that --args="router_addr=my-other-router pcap_addr=my-other-pcap" \
60 autotest, you can pass the `router` and `pcap` arguments to `tast run` instead:
63 # DUT at 'my-host', AP at 'my-other-router', and PCAP at 'my-other-pcap'
64 tast run -var="router=my-other-router" -var="pcap=my-other-pcap" my-host \
68 Also, note that if a pcap device isn't found at `${HOST}-pcap`, then we often
87 dedicated pcap device. Note that all supported tests should support running in
/external/scapy/scapy/tools/
Dcheck_asdis.py10 print("""Usage: check_asdis -i <pcap_file> [-o <wrong_packets.pcap>]
13 -z compress output pcap
14 -a open pcap file in append mode""", file=sys.stderr)
44 raise getopt.GetoptError("Missing pcap file (-i)")
54 pcap = RawPcapReader(PCAP_IN)
57 …pcap_out = RawPcapWriter(PCAP_OUT, append=APPEND, gz=COMPRESS, linktype=pcap.linktype) # noqa: E5…
60 LLcls = conf.l2types.get(pcap.linktype)
62 …print(" Unknown link type [%i]. Can't test anything!" % pcap.linktype, file=sys.stderr) # noqa: E…
68 for p1, meta in pcap:
/external/libpcap/doc/
DREADME.haiku.md9 [**pcap_set_buffer_size**](https://www.tcpdump.org/manpages/pcap_set_buffer_size.3pcap.html)(3PCAP)
11 [**pcap_setdirection**](https://www.tcpdump.org/manpages/pcap_setdirection.3pcap.html)(3PCAP)
13 [**pcap_inject**](https://www.tcpdump.org/manpages/pcap_inject.3pcap.html)(3PCAP)
17 [**pcap_stats**](https://www.tcpdump.org/manpages/pcap_stats.3pcap.html)(3PCAP)
/external/iptables/utils/
Dnfbpf_compile.c12 #include <pcap.h>
20 pcap_t *pcap; in main() local
24 " link is a pcap linklayer type:\n" in main()
40 pcap = pcap_open_dead(dlt, 65535); in main()
41 if (!pcap) { in main()
45 if (pcap_compile(pcap, &program, argv[argc - 1], 1, in main()
48 pcap_close(pcap); in main()
60 pcap_close(pcap); in main()
/external/scapy/scapy/arch/
Dlibpcap.py72 # https://github.com/the-tcpdump-group/libpcap/blob/master/pcap/pcap.h
148 # PCAP #
270 # Detect Pcap version: check for Npcap
303 self.pcap = pcap_create(self.iface, self.errbuf)
304 if not self.pcap:
318 if pcap_set_snaplen(self.pcap, snaplen) != 0:
323 if pcap_set_promisc(self.pcap, promisc) != 0:
328 if pcap_set_timeout(self.pcap, to_ms) != 0:
334 if pcap_set_rfmon(self.pcap, 1) != 0:
339 status = pcap_activate(self.pcap)
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Ddrop_monitor_tests.sh79 timeout 5 dwdump -o sw -w ${dir}/packets.pcap
80 (( $(tshark -r ${dir}/packets.pcap \
84 rm ${dir}/packets.pcap
87 timeout 5 dwdump -o sw -w ${dir}/packets.pcap
88 (( $(tshark -r ${dir}/packets.pcap \
107 timeout 5 dwdump -o hw -w ${dir}/packets.pcap
108 (( $(tshark -r ${dir}/packets.pcap \
113 rm ${dir}/packets.pcap
116 timeout 5 dwdump -o hw -w ${dir}/packets.pcap
117 (( $(tshark -r ${dir}/packets.pcap \

12345678910>>...17