From 64b3fe8cd69a1f3d3328fabd3d4cd81be74e16ee Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Thu, 11 Dec 2003 14:03:35 +0000 Subject: 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 --- net/tcpdump/files/extra-patch-extract.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 net/tcpdump/files/extra-patch-extract.h (limited to 'net/tcpdump/files/extra-patch-extract.h') 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))) -- cgit v1.2.3