freebsd-ports/net/tcpdump/files/extra-patch-extract.h
Bruce M Simpson 4c753cd394 Update tcpdump/libpcap ports for new releases 3.8.3/0.8.3. Reset PORTREVISION.
Update radiotap patches as radiotap is not yet in tcpdump release branch
due to endianness issues.
2004-03-31 00:14:06 +00:00

15 lines
768 B
C

--- extract.h.orig Wed Dec 11 07:13:51 2002
+++ extract.h Wed Mar 31 01:03:41 2004
@@ -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)))