diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2003-12-11 14:03:35 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2003-12-11 14:03:35 +0000 |
commit | 64b3fe8cd69a1f3d3328fabd3d4cd81be74e16ee (patch) | |
tree | 6ffc29180d4baffb866d7697ed1d1f51aa41038c /net/tcpdump/files/extra-patch-extract.h | |
parent | - Unbreak: switch from courier:courier (UID/GID 62, conflicts with pf) (diff) |
Add a new option, WITH_RADIOTAP. Import David Young's patches for using the
new net80211 radiotap interface. This can be activated once the tcpdump port
is built and installed using the datalink type IEEE802_11_RADIO. Tested with
a wi(4), OEM PRISM2, 1.4.9 STA firmware.
Submitted by: David Young
Sponsored by: consume.net
Diffstat (limited to '')
-rw-r--r-- | net/tcpdump/files/extra-patch-extract.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/tcpdump/files/extra-patch-extract.h b/net/tcpdump/files/extra-patch-extract.h new file mode 100644 index 000000000000..143a27c6fd36 --- /dev/null +++ b/net/tcpdump/files/extra-patch-extract.h @@ -0,0 +1,15 @@ +--- extract.h.orig Wed Dec 11 07:13:51 2002 ++++ extract.h Wed Dec 10 18:45:34 2003 +@@ -96,3 +96,12 @@ + (u_int32_t)*((const u_int8_t *)(p) + 2) << 16 | \ + (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \ + (u_int32_t)*((const u_int8_t *)(p) + 0))) ++#define EXTRACT_LE_64BITS(p) \ ++ ((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 7) << 56 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 6) << 48 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 5) << 40 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 4) << 32 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 3) << 24 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 2) << 16 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 1) << 8 | \ ++ (u_int64_t)*((const u_int8_t *)(p) + 0))) |