Home
last modified time | relevance | path

Searched refs:pcap (Results 1 – 25 of 104) sorted by relevance

12345

/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 gnuc.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.wc17 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\net\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
101 $(OBJDIR)\bpf_dump.obj: bpf_dump.c pcap.h pcap-bpf.h
[all …]
Dmakefile.dj26 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/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.sh11 …if ./TESTonce esp1 02-sunrise-sunset-esp.pcap esp1.out '-E "0x12345678@192.1.2.45 3des-cbc-hmac96:…
20 …if ./TESTonce esp2 08-sunrise-sunset-esp2.pcap esp2.out '-E "0x12345678@192.1.2.45 3des-cbc-hmac96…
29 …if ./TESTonce esp3 02-sunrise-sunset-esp.pcap esp1.out '-E "3des-cbc-hmac96:0x4043434545464649494a…
48 if ./TESTonce esp4 08-sunrise-sunset-esp2.pcap esp2.out '-E "file esp-secrets.txt"'
57 if ./TESTonce esp5 08-sunrise-sunset-aes.pcap esp5.out '-E "file esp-secrets.txt"'
66 if ./TESTonce espudp1 espudp1.pcap espudp1.out '-nnnn -E "file esp-secrets.txt"'
75 if ./TESTonce ikev2pI2 ikev2pI2.pcap ikev2pI2.out '-E "file ikev2pI2-secrets.txt" -v -v -v -v'
84 if ./TESTonce isakmp4 isakmp4500.pcap isakmp4.out '-E "file esp-secrets.txt"'
94 if ./TESTonce bgp-as-path-oobr-ssl bgp-as-path-oobr.pcap bgp-as-path-oobr-ssl.out '-vvv -e'
103 if ./TESTonce bgp-aigp-oobr-ssl bgp-aigp-oobr.pcap bgp-aigp-oobr-ssl.out '-vvv -e'
[all …]
/external/libpcap/
DMakefile.in89 PSRC = pcap-@V_PCAP@.c @USB_SRC@ @BT_SRC@ @BT_MONITOR_SRC@ @NETFILTER_SRC@ @DBUS_SRC@ @NETMAP_SRC@ …
92 CSRC = pcap.c gencode.c optimize.c nametoaddr.c etherent.c \
94 savefile.c sf-pcap.c sf-pcapng.c pcap-common.c \
105 pcap.h \
106 pcap-bpf.h \
107 pcap-namedb.h \
108 pcap/bpf.h \
109 pcap/bluetooth.h \
110 pcap/can_socketcan.h \
111 pcap/compiler-tests.h \
[all …]
Dpcap-dos.c110 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf);
113 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap,
168 static int pcap_activate_dos (pcap_t *pcap) in pcap_activate_dos() argument
170 if (pcap->opt.rfmon) { in pcap_activate_dos()
185 if (pcap->snapshot <= 0 || pcap->snapshot > MAXIMUM_SNAPLEN) in pcap_activate_dos()
186 pcap->snapshot = MAXIMUM_SNAPLEN; in pcap_activate_dos()
188 if (pcap->snapshot < ETH_MIN+8) in pcap_activate_dos()
189 pcap->snapshot = ETH_MIN+8; in pcap_activate_dos()
191 if (pcap->snapshot > ETH_MAX) /* silently accept and truncate large MTUs */ in pcap_activate_dos()
192 pcap->snapshot = ETH_MAX; in pcap_activate_dos()
[all …]
DINSTALL.md25 ./configure --with-pcap=snit
284 dlpisubs.c - DLPI-related functions for pcap-dlpi.c and pcap-libdlpi.c
307 pcap/bluetooth.h - public definition of DLT_BLUETOOTH_HCI_H4_WITH_PHDR header
308 pcap/bpf.h - BPF definitions
309 pcap/namedb.h - public libpcap name database definitions
310 pcap/pcap.h - public libpcap definitions
311 pcap/sll.h - public definition of DLT_LINUX_SLL header
312 pcap/usb.h - public definition of DLT_USB header
313 pcap-bpf.c - BSD Packet Filter support
314 pcap-bpf.h - header for backwards compatibility
[all …]
DCMakeLists.txt14 project(pcap) project
81 # the DLLs, so the system will find pcap.dll when any of the
96 set(LIBRARY_NAME pcap CACHE STRING "Library name")
101 set(LIBRARY_NAME pcap)
252 # Get, parse, format and set pcap's version string from [pcap_root]/VERSION
860 pcap-common.c
861 pcap.c
864 sf-pcap.c
879 # Determine the main pcap-XXX.c file to use, and the libraries with
1031 message(ERROR "${PCAP_TYPE} is not a valid pcap type")
[all …]
DAndroid.bp46 "pcap-linux.c",
47 "pcap-usb-linux.c",
48 "pcap-netfilter-linux-android.c",
50 "pcap.c",
57 "sf-pcap.c",
59 "pcap-common.c",
Dpcap.c190 pcap_not_initialized(pcap_t *pcap) in pcap_not_initialized() argument
192 if (pcap->activated) { in pcap_not_initialized()
194 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
199 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
207 pcap_not_initialized_ptr(pcap_t *pcap) in pcap_not_initialized_ptr() argument
209 if (pcap->activated) { in pcap_not_initialized_ptr()
211 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
215 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
221 pcap_getevent_not_initialized(pcap_t *pcap) in pcap_getevent_not_initialized() argument
223 if (pcap->activated) { in pcap_getevent_not_initialized()
[all …]
Dconfigure.ac19 AC_INIT(pcap, m4_esyscmd_s([cat VERSION])) package
20 AC_CONFIG_SRCDIR(pcap.c)
44 dnl releases without that fix, so that pcap-bpf.c doesn't need to
527 AC_ARG_WITH(pcap, optwith
528 AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
667 # Needed for common functions used by pcap-[dlpi,libdlpi].c
835 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
882 # --with-pcap=dag is the only way to get here, and it means
891 # --with-pcap=septel is the only way to get here, and it means
900 # --with-pcap=snf is the only way to get here, and it means
[all …]
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c27 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()
209 if (l2->pcap == NULL) { in l2_packet_init_libpcap()
[all …]
Dl2_packet_freebsd.c37 pcap_t *pcap; member
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
71 return pcap_inject(l2->pcap, buf, len); in l2_packet_send()
78 pcap_t *pcap = sock_ctx; in l2_packet_receive() local
85 packet = pcap_next(pcap, &hdr); in l2_packet_receive()
110 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
111 if (l2->pcap == NULL) { in l2_packet_init_libpcap()
116 if (pcap_datalink(l2->pcap) != DLT_EN10MB && in l2_packet_init_libpcap()
117 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) { in l2_packet_init_libpcap()
119 pcap_geterr(l2->pcap)); in l2_packet_init_libpcap()
[all …]
Dl2_packet_winpcap.c48 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()
188 fprintf(stderr, "pcap_setfilter: %s\n", pcap_geterr(l2->pcap)); in l2_packet_init_libpcap()
[all …]
/external/scapy/scapy/arch/
Dpcapdnet.py138 self.pcap = pcap_open_live(self.iface, snaplen, promisc, to_ms, self.errbuf)
143 c = pcap_next_ex(self.pcap, byref(self.header), byref(self.pkt_data))
151 return pcap_datalink(self.pcap)
156 return pcap_get_selectable_fd(self.pcap)
159 if pcap_compile(self.pcap, byref(self.bpf_program), filter_exp, 0, -1) == -1:
163 if pcap_setfilter(self.pcap, byref(self.bpf_program)) == -1:
168 pcap_setnonblock(self.pcap, i, self.errbuf)
170 pcap_sendpacket(self.pcap, x, len(x))
172 pcap_close(self.pcap)
350 import pcap
[all …]
/external/u-boot/doc/
DREADME.pcap11 the pcap capturing requires maximum buffer size.
18 # Initialize pcap capture to physical address (0x100000) with maximum size of
22 pcap start
28 pcap stop
30 # pcap init 0x100000 100000
33 # pcap start
60 # pcap stop
61 # tftpput 0xffffffff80100000 $pcapsize 10.0.2.2:capture.pcap
/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c213 cap_t fcap, pcap, cap_fullpi; in caps_actually_set_test() local
218 pcap = cap_init(); in caps_actually_set_test()
219 if (!fcap || !pcap) { in caps_actually_set_test()
289 cap_free(pcap); in caps_actually_set_test()
324 pcap = cap_dup(cap_fullpi); in caps_actually_set_test()
326 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
336 ret = fork_drop_and_exec(KEEP_PERMS, pcap); in caps_actually_set_test()
354 cap_set_flag(pcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
379 cap_clear(pcap); in caps_actually_set_test()
380 ret = fork_drop_and_exec(DROP_PERMS, pcap); in caps_actually_set_test()
[all …]
/external/libpcap/testprogs/
Dpcap_compile_test.c1 pcap = pcap_open_dead(link, snaplen);
4 if (pcap_compile(pcap, &p, prog, optimize, 0) < 0) {
5 fprintf(stderr, pcap_geterr(pcap));
10 pcap_close(pcap);
/external/libpcap/doc/
DDLT_ALLOCATE_HOWTO.md4 DLT_ types live in pcap/dlt.h. They can be requested by the community on a
18 LINKTYPE_ is allocated for actually writing to pcap files. As much as
20 this was not always the case. See pcap-common.c.
22 The LINKTYPE_ values are not exported, but are in pcap-common.c only.
28 added to pcap-common.c.
29 It is not necessary to copy the comments from dlt.h to pcap-common.c.
DREADME.linux.md88 pcap-config script if they build with the shared library. (The build
89 procedure for applications whose configure scripts use the pcap-config
94 Statistics reported by pcap are platform specific. The statistics
99 ps_recv Number of packets that were accepted by the pcap filter
104 ps_recv Number of packets that were accepted by the pcap filter
106 passed on to pcap due to things like buffer shortage, etc.
/external/scapy/scapy/tools/
Dcheck_asdis.py54 pcap = RawPcapReader(PCAP_IN)
57 pcap_out = RawPcapWriter(PCAP_OUT, append=APPEND, gz=COMPRESS, linktype=pcap.linktype)
60 LLcls = conf.l2types.get(pcap.linktype)
62 print(" Unknown link type [%i]. Can't test anything!" % pcap.linktype, file=sys.stderr)
69 for p1,meta in pcap:
/external/autotest/docs/
Dwificell.md6 packet capture (pcap) device or a signal attenuator.
52 # DUT at 'my-host', AP at 'my-other-router', and PCAP at 'my-other-pcap'
53 test_that --args="router_addr=my-other-router pcap_addr=my-other-pcap" \
57 Also, note that if a pcap device isn't found at `${HOST}-pcap`, then we often
/external/autotest/server/site_tests/network_WiFi_UpdateRouter/
Dcontrol.pcap6 NAME = 'network_WiFi_UpdateRouter.pcap'
23 tag='pcap')
/external/wpa_supplicant_8/wpa_supplicant/utils/
Dlog2pcap.py29 pcap = sys.argv[2] variable
35 pcap_file = open(pcap, 'w')

12345