Skip to content

Commit 653b2b0

Browse files
committed
doc: Add a README.hurd.md file.
1 parent c28c1b6 commit 653b2b0

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
3232
Documentation:
3333
Document a standard format for writing out BPF filter programs.
3434
Explain "other addresses" in pcap_findalldevs(3PCAP).
35+
Add a README.hurd.md file.
3536
Building and testing:
3637
Apply GNU Hurd support patch from the Debian package.
3738
CI: Introduce and use LIBPCAP_CMAKE_TAINTED.

INSTALL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ in `/usr/include/sys/dlpi.h`, and find the corresponding value.
195195
doc/README.dag - notes on using libpcap to capture on Endace DAG devices
196196
doc/README.haiku.md - notes on using libpcap on Haiku
197197
doc/README.hpux - notes on using libpcap on HP-UX
198+
doc/README.hurd.md - notes on using libpcap on GNU/Hurd
198199
doc/README.linux - notes on using libpcap on Linux
199200
doc/README.macos - notes on using libpcap on macOS
200201
doc/README.septel - notes on using libpcap to capture on Intel/Septel devices

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ EXTRA_DIST = \
252252
doc/README.dag \
253253
doc/README.haiku.md \
254254
doc/README.hpux \
255+
doc/README.hurd.md \
255256
doc/README.linux \
256257
doc/README.macos \
257258
doc/README.septel \

doc/README.hurd.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Compiling and using libpcap on GNU/Hurd
2+
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)
9+
has no effect.
10+
[**pcap_setdirection**](https://www.tcpdump.org/manpages/pcap_setdirection.3pcap.html)(3PCAP)
11+
is not supported.
12+
[**pcap_set_promisc**](https://www.tcpdump.org/manpages/pcap_set_promisc.3pcap.html)(3PCAP)
13+
has no effect.
14+
15+
## Debian GNU/Hurd 12
16+
17+
* flex 2.6.4 and GNU Bison 3.8.2 work.
18+
* CMake 3.25.1 works.
19+
* GCC 12.2.0 and Clang 14.0.6 work.
20+
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/).

0 commit comments

Comments
 (0)