summaryrefslogtreecommitdiff
path: root/net/tcpdump/files/extra-patch-extract.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net/tcpdump/files/extra-patch-extract.h15
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)))