1 # Compiling and using libpcap on Haiku
3 Haiku R1/beta4 and earlier versions do not support packet capture on the
4 loopback interface. Using this version of libpcap, loopback capture works
5 since Haiku R1/beta5. Packet timestamping and filtering always occur
6 in userland. Wireless monitor mode is not supported. The "any"
7 pseudo-interface is not supported.
8 [**pcap_set_buffer_size**](https://www.tcpdump.org/manpages/pcap_set_buffer_size.3pcap.html)(3PCAP)
10 [**pcap_setdirection**](https://www.tcpdump.org/manpages/pcap_setdirection.3pcap.html)(3PCAP)
12 [**pcap_inject**](https://www.tcpdump.org/manpages/pcap_inject.3pcap.html)(3PCAP)
15 The statistics reported by
16 [**pcap_stats**](https://www.tcpdump.org/manpages/pcap_stats.3pcap.html)(3PCAP)
17 on Haiku are as follows:
18 * `ps_recv` is the number of packets successfully delivered by the kernel,
19 before libpcap applies a filter.
20 * `ps_drop` is the number of packets rejected by the filter.
21 * `ps_ifdrop` is the number of packets dropped by the network interface (as
22 seen via `SIOCGIFSTATS`) since the capture handle became active.
26 * Autoconf 2.72 works.
33 The following command will install respective non-default packages:
35 pkgman install cmake llvm18_clang
38 For reference, the tests were done using a system installed from
39 `haiku-r1beta5-x86_64-anyboot.iso`.