1 # Compiling and using libpcap on GNU/Hurd
3 libpcap on Hurd currently does not support packet capture on the loopback
4 network interface. BPF works in kernel only if the filter length is not
5 greater that 31 BPF instructions and does not use `BPF_MOD` or `BPF_XOR`.
6 Packet timestamping always occurs in userland. Wireless monitor mode is not
7 supported. Packet capture sees only packets received on the interface.
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_set_promisc**](https://www.tcpdump.org/manpages/pcap_set_promisc.3pcap.html)(3PCAP)
17 * flex 2.6.4 and GNU Bison 3.8.2 work.
19 * GCC 12.2.0 and Clang 14.0.6 work.
21 For reference, the tests were done using a system installed from the 2023-06-08
22 snapshot from [here](https://cdimage.debian.org/cdimage/ports/12.0/hurd-i386/).