Home
last modified time | relevance | path

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

1234

/freebsd/contrib/libpcap/msdos/
H A 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 …]
H A 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_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 …]
H A 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
H A Dreadme.dos5 Look in `README' and `pcap.man' for usage and details. These targets are
19 Files specific to DOS are pcap-dos.[ch] and the assembly and C files in
27 https://www.watt-32.net/pcap/libpcap.zip
103 3. Build pcap by using appropriate makefile. For djgpp, use:
146 array in pcap-dos.c (currently only used to set debug-levels and parameters
/freebsd/contrib/libpcap/
H A 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 …]
H A 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 …]
H A Dpcap-dos.c111 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()
189 if (pcap->snapshot < ETH_MIN+8) in pcap_activate_dos()
190 pcap->snapshot = ETH_MIN+8; in pcap_activate_dos()
192 if (pcap->snapshot > ETH_MAX) /* silently accept and truncate large MTUs */ in pcap_activate_dos()
193 pcap->snapshot = ETH_MAX; in pcap_activate_dos()
[all …]
H A 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 …]
H A Dpcap.c339 pcap_set_not_initialized_message(pcap_t *pcap) in pcap_set_not_initialized_message() argument
341 if (pcap->activated) { in pcap_set_not_initialized_message()
343 (void)snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_set_not_initialized_message()
348 (void)snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_set_not_initialized_message()
353 pcap_read_not_initialized(pcap_t *pcap, int cnt _U_, pcap_handler callback _U_, in pcap_read_not_initialized() argument
356 pcap_set_not_initialized_message(pcap); in pcap_read_not_initialized()
362 pcap_inject_not_initialized(pcap_t *pcap, const void * buf _U_, int size _U_) in pcap_inject_not_initialized() argument
364 pcap_set_not_initialized_message(pcap); in pcap_inject_not_initialized()
370 pcap_setfilter_not_initialized(pcap_t *pcap, struct bpf_program *fp _U_) in pcap_setfilter_not_initialized() argument
372 pcap_set_not_initialized_message(pcap); in pcap_setfilter_not_initialized()
[all …]
H A Dconfigure.ac19 AC_INIT(pcap, m4_esyscmd_s([cat VERSION])) package
20 AC_CONFIG_SRCDIR(pcap.c)
24 # These are the variables that are used in Makefile, pcap-config, and
36 # first; libraries required by additional pcap modules are first
42 # pcap-config, so that "pcap-config --libs --static" will report them.
63 # library needs to be linked. Used in Makefile; not used in pcap-config
72 # in pcap-config, so that "pcap-config --libs --static" will report
140 dnl releases without that fix, so that pcap-bpf.c doesn't need to
686 AC_ARG_WITH(pcap, optwith
687 AS_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
[all …]
H A DCHANGES13 Rename helper routines for pcap modules to have names beginning with
20 pcap: make the seconds and microseconds/nanoseconds fields unsigned.
21 Remove the unused pcap-rpcap-int.h header file.
55 in recent SDKs, including tagging pcap-namedb.h routines.
101 Reject pcap files where one of the reserved fields in the
149 Update and fix pcap-filter man page.
151 Document pcap-config better.
154 Update pcap-savefile man page to match the Internet-Draft for
155 pcap.
189 install: Fixed not to install the non-public pcap-util.h header.
[all …]
H A Dsavefile.c164 sf_getevent(pcap_t *pcap) in sf_getevent() argument
166 (void)snprintf(pcap->errbuf, sizeof(pcap->errbuf), in sf_getevent()
222 sf_get_airpcap_handle(pcap_t *pcap _U_) in sf_get_airpcap_handle()
/freebsd/lib/libpcap/
H A DMakefile7 LIB= pcap
19 pcap-bpf.c \
20 pcap-common.c \
21 pcap-netmap.c \
22 pcap-util.c \
23 pcap.c \
26 sf-pcap.c \
31 INCS= pcap-bpf.h \
32 pcap-namedb.h \
33 pcap-netmap.h \
[all …]
/freebsd/contrib/wpa/src/l2_packet/
H A 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 …]
H A Dl2_packet_freebsd.c42 pcap_t *pcap; member
72 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
76 return pcap_inject(l2->pcap, buf, len); in l2_packet_send()
83 pcap_t *pcap = sock_ctx; in l2_packet_receive() local
90 if (pcap_next_ex(pcap, &hdr, &packet) == -1) { in l2_packet_receive()
126 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap()
127 if (l2->pcap == NULL) { in l2_packet_init_libpcap()
132 if (pcap_datalink(l2->pcap) != DLT_EN10MB && in l2_packet_init_libpcap()
133 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) { in l2_packet_init_libpcap()
135 pcap_geterr(l2->pcap)); in l2_packet_init_libpcap()
[all …]
H A 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 …]
/freebsd/contrib/netbsd-tests/usr.bin/shmif_dumpbus/
H A Dt_basic.sh49 test_case pcap
67 pcap() function
71 atf_check -s exit:0 -o ignore shmif_dumpbus -p pcap shmbus
77 tcpdump -tt -r pcap
85 atf_add_test_case pcap
/freebsd/contrib/tcpdump/cmake/Modules/
H A 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)
185 # That didn't work. Try pcap-config.
187 find_program(PCAP_CONFIG pcap-config)
190 # We have pcap-config; use it.
193 message(STATUS "Found pcap-config")
[all …]
/freebsd/tests/sys/netpfil/pf/
H A Dnat.sh164 jexec server1 tcpdump -i ${epair_server1}a -w ${PWD}/server1.pcap \
167 jexec server2 tcpdump -i ${epair_server2}a -w ${PWD}/server2.pcap \
180 tuple_server1=$(tcpdump -r ${PWD}/server1.pcap | awk '{addr=$3} END {print addr}')
181 tuple_server2=$(tcpdump -r ${PWD}/server2.pcap | awk '{addr=$3} END {print addr}')
204 jexec server1 tcpdump -i ${epair_server1}a -w ${PWD}/server1.pcap \
207 jexec server2 tcpdump -i ${epair_server2}a -w ${PWD}/server2.pcap \
220 tuple_server1=$(tcpdump -r ${PWD}/server1.pcap | awk '{addr=$3} END {print addr}')
221 tuple_server2=$(tcpdump -r ${PWD}/server2.pcap | awk '{addr=$3} END {print addr}')
/freebsd/sys/contrib/device-tree/Bindings/fpga/
H A Dxlnx,zynqmp-pcap-fpga.txt6 - compatible: should contain "xlnx,zynqmp-pcap-fpga"
21 zynqmp_pcap: pcap {
22 compatible = "xlnx,zynqmp-pcap-fpga";
/freebsd/contrib/libpcap/doc/
H A DREADME.linux23 pcap-config script if they build with the shared library. (The build
24 procedure for applications whose configure scripts use the pcap-config
29 Statistics reported by pcap are platform specific. The statistics
32 ps_recv Number of packets that were accepted by the pcap filter
34 passed on to pcap due to things like buffer shortage, etc.
H A 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)
/freebsd/contrib/file/magic/Magdir/
H A Dsniffer80 # https://www.tcpdump.org/manpages/pcap-savefile.5.html
85 0 name pcap-be
284 0 ubelong 0xa1b2c3d4 pcap capture file, microseconds ts (big-endian)
285 !:mime application/vnd.tcpdump.pcap
286 >0 use pcap-be
287 0 ulelong 0xa1b2c3d4 pcap capture file, microsecond ts (little-endian)
288 !:mime application/vnd.tcpdump.pcap
289 >0 use \^pcap-be
292 0 ubelong 0xa1b23c4d pcap capture file, nanosecond ts (big-endian)
293 !:mime application/vnd.tcpdump.pcap
[all …]
/freebsd/contrib/wpa/wpa_supplicant/utils/
H A Dlog2pcap.py30 pcap = sys.argv[2] variable
36 pcap_file = open(pcap, 'wb')
/freebsd/sbin/ipf/ipsend/
H A Dipresend.c28 extern struct ipread pcap, iphex, iptext;
98 ipr = &pcap; in main()

1234