aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tcpdump/files/no-ipv6-tcpdump4.patch
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-01-28 16:52:35 +0300
committerSergey Lapin <slapin@ossfans.org>2009-01-28 16:52:35 +0300
commit8a45068adaf724dc8746299460f8ddc7ed4a1921 (patch)
tree4a658abad71075b75cf71adf62c906ecfe97a23f /packages/tcpdump/files/no-ipv6-tcpdump4.patch
parentb8fb01ac7e8dfe467eb07a58a54f7ea35efc672f (diff)
downloadopenembedded-8a45068adaf724dc8746299460f8ddc7ed4a1921.tar.gz
openembedded-8a45068adaf724dc8746299460f8ddc7ed4a1921.tar.bz2
openembedded-8a45068adaf724dc8746299460f8ddc7ed4a1921.zip
tcpdump: added 4.0.0, minimal support for IEEE802.15.4 capture
Diffstat (limited to 'packages/tcpdump/files/no-ipv6-tcpdump4.patch')
-rw-r--r--packages/tcpdump/files/no-ipv6-tcpdump4.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/tcpdump/files/no-ipv6-tcpdump4.patch b/packages/tcpdump/files/no-ipv6-tcpdump4.patch
new file mode 100644
index 0000000000..a399d0508f
--- /dev/null
+++ b/packages/tcpdump/files/no-ipv6-tcpdump4.patch
@@ -0,0 +1,22 @@
+Compiling tcpdump 4.0.0 without ipv6 - linking against ipv6less
+libpcap too - generates the following error:
+
+print-enc.o: In function `enc_if_print':
+print-enc.c:(.text+0xce): undefined reference to `ip6_print'
+collect2: ld returned 1 exit status
+make: *** [tcpdump] Error 1
+
+--- tcpdump/print-enc.c.orig 2008-09-01 04:44:22 +0200
++++ tcpdump/print-enc.c 2008-11-11 14:48:00 +0100
+@@ -77,9 +77,11 @@
+ case AF_INET:
+ ip_print(gndo, p, length);
+ break;
++#ifdef INET6
+ case AF_INET6:
+ ip6_print(p, length);
+ break;
++#endif
+ }
+
+ out: