| /src/tests/usr.bin/shmif_dumpbus/ |
| t_basic.sh | 51 test_case pcap 69 pcap() function 73 atf_check -s exit:0 -o ignore shmif_dumpbus -p pcap shmbus 79 tcpdump -tt -n -r pcap 87 atf_add_test_case pcap
|
| /src/usr.bin/shmif_pcapin/ |
| shmif_pcapin.c | 47 #include <pcap.h> 64 fprintf(stderr, "usage: %s pcap-file-path bus-path\n", getprogname()); 136 pcap_t *pcap; local 177 pcap = pcap_open_offline(argv[0], pcap_errbuf); 178 if (pcap == NULL) 179 err(EXIT_FAILURE, "cannot open pcap file: %s", pcap_errbuf); 181 while ((pkt = pcap_next(pcap, &pcaphdr))) {
|
| /src/usr.sbin/npf/npftest/ |
| npfstream.c | 15 #include <pcap.h> 95 pcap_t *pcap; local 101 pcap = pcap_open_offline(input, pcap_errbuf); 102 if (pcap == NULL) { 115 while (pcap_next_ex(pcap, &phdr, &data) > 0) { 121 pcap_close(pcap);
|
| /src/usr.bin/shmif_dumpbus/ |
| shmif_dumpbus.c | 29 * Convert shmif bus traffic to a pcap file which can be then 50 #include <pcap.h> 199 pcap_t *pcap = pcap_open_dead(DLT_EN10MB, 1518); local 200 pdump = pcap_dump_open(pcap, pcapfile); 203 "Cannot open pcap dump file `%s': %s", pcapfile, 204 pcap_geterr(pcap));
|
| /src/usr.sbin/npf/npfd/ |
| npfd_log.c | 51 #include <pcap/pcap.h> 59 pcap_t *pcap; member in struct:npfd_log 71 if (pcap_compile(ctx->pcap, &bprog, ctx->filter, 1, 0) == -1) 73 ctx->filter, pcap_geterr(ctx->pcap)); 74 if (pcap_setfilter(ctx->pcap, &bprog) == -1) 76 pcap_geterr(ctx->pcap)); 100 hdr->sigfigs != (u_int)pcap_get_tstamp_precision(ctx->pcap)) 223 snprintf(ctx->path, sizeof(ctx->path), NPFD_LOG_PATH "/%s.pcap", 251 if (ctx->pcap != NULL 368 pcap_t *pcap = ctx->pcap; local [all...] |
| /src/external/bsd/ipf/dist/lib/ |
| ipft_pc.c | 63 struct ipread pcap = { ipcap_open, ipcap_close, ipcap_readip, 0 }; variable in typeref:struct:ipread 119 printf("opened pcap file %s:\n", fname); 135 * in a pcap file. 173 * read an entire pcap packet record. only the data part is copied into
|
| /src/external/bsd/wpa/dist/src/l2_packet/ |
| l2_packet_freebsd.c | 14 #include <pcap.h> 43 pcap_t *pcap; member in struct:l2_packet_data 73 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 77 return pcap_inject(l2->pcap, buf, len); 84 pcap_t *pcap = sock_ctx; local 91 packet = pcap_next(pcap, &hdr); 123 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); 124 if (l2->pcap == NULL) { 129 if (pcap_datalink(l2->pcap) != DLT_EN10MB && 130 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) [all...] |
| l2_packet_pcap.c | 13 #include <pcap.h> 27 pcap_t *pcap; member in struct:l2_packet_data 89 ret = pcap_sendpacket(l2->pcap, buf, len); 105 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 121 pcap_t *pcap = sock_ctx; local 128 packet = pcap_next(pcap, &hdr); 178 pcap_t *pcap = timeout_ctx; local 191 l2, pcap); 192 pcap_dispatch(pcap, 10, l2_packet_receive_cb, (u_char *) l2); 208 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err) [all...] |
| l2_packet_winpcap.c | 30 #include <pcap.h> 48 pcap_t *pcap; member in struct:l2_packet_data 82 ret = pcap_sendpacket(l2->pcap, buf, len); 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 133 pcap_dispatch(l2->pcap, 1, l2_packet_receive_cb, 169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); 170 if (l2->pcap == NULL) { 182 if (pcap_compile(l2->pcap, &pcap_fp, pcap_filter, 1, pcap_netp) < 0) { 183 fprintf(stderr, "pcap_compile: %s\n", pcap_geterr(l2->pcap)); 187 if (pcap_setfilter(l2->pcap, &pcap_fp) < 0) [all...] |
| /src/external/bsd/libpcap/dist/ |
| pcap-dos.c | 1 /* $NetBSD: pcap-dos.c,v 1.8 2024/09/02 15:33:37 christos Exp $ */ 7 * pcap-dos.c: Interface to PKTDRVR, NDIS2 and 32-bit pmode 40 #include "pcap.h" 41 #include "pcap-dos.h" 42 #include "pcap-int.h" 113 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf); 116 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap, 171 static int pcap_activate_dos (pcap_t *pcap) 173 if (pcap->opt.rfmon) 239 struct pcap_pkthdr pcap; local [all...] |
| pcap-int.h | 1 /* $NetBSD: pcap-int.h,v 1.10 2026/03/18 23:43:20 christos Exp $ */ 43 #include <pcap/pcap.h> 240 struct pcap { struct 276 struct pcap *next; /* list of open pcaps that need stuff cleared on close */ 417 * Routines that most pcap implementations can use for non-blocking mode.
|
| /src/external/apache2/mDNSResponder/dist/Clients/dnssdutil/ |
| dnssdutil.c | 30 #include <pcap.h> 15450 pcap_t * pcap; // Captures traffic between mDNSResponder and test DNS server. member in struct:GAITesterPrivate 15592 // Use a specific port for the Do53 server so that it can be used by the PCAP to filter Do53 traffic. 15658 ForgetPacketCapture( &me->pcap ); 15815 check( !me->pcap ); 15816 err = _GAITesterCreatePacketCapture( me->serverPortDo53, &me->pcap ); 15877 pcap_t * pcap; local 15881 pcap = pcap_create( "lo0", errBuf ); 15882 require_action_string( pcap, exit, err = kUnknownErr, errBuf ); 15884 err = pcap_set_buffer_size( pcap, 512 * kBytesPerKiloByte ) 23004 pcap_t * pcap; \/\/ Captures traffic between mDNSResponder and test DNS server. member in struct:DNSQueryTest [all...] |