diff options
author | Sergey Lapin <slapin@ossfans.org> | 2009-01-28 16:52:35 +0300 |
---|---|---|
committer | Sergey Lapin <slapin@ossfans.org> | 2009-01-29 18:26:08 +0300 |
commit | 755d08e98c67232a19ee8c15cd378eda246c8f09 (patch) | |
tree | ff6a9b5464fdd7696af0ac72326d9d52d223a8d3 /packages/tcpdump/files | |
parent | 73fc517decf816d0fcf6519c0febc77acb2a2b5b (diff) |
tcpdump: added 4.0.0, minimal support for IEEE802.15.4 capture
Diffstat (limited to 'packages/tcpdump/files')
-rw-r--r-- | packages/tcpdump/files/0001-minimal-IEEE802.15.4-allowed.patch | 26 | ||||
-rw-r--r-- | packages/tcpdump/files/no-ipv6-tcpdump4.patch | 22 |
2 files changed, 48 insertions, 0 deletions
diff --git a/packages/tcpdump/files/0001-minimal-IEEE802.15.4-allowed.patch b/packages/tcpdump/files/0001-minimal-IEEE802.15.4-allowed.patch new file mode 100644 index 0000000000..f4358b5d49 --- /dev/null +++ b/packages/tcpdump/files/0001-minimal-IEEE802.15.4-allowed.patch @@ -0,0 +1,26 @@ +From 9a6a3f37b6715fafb79fd88d2a2db3b49183226e Mon Sep 17 00:00:00 2001 +From: Sergey Lapin <slapin@slind.org> +Date: Wed, 28 Jan 2009 16:34:15 +0300 +Subject: [PATCH] minimal IEEE802.15.4 allowed + +--- + tcpdump.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/tcpdump.c b/tcpdump.c +index ba8b702..0a88343 100644 +--- a/tcpdump.c ++++ b/tcpdump.c +@@ -273,6 +273,9 @@ static struct printer printers[] = { + #ifdef DLT_MFR + { mfr_if_print, DLT_MFR }, + #endif ++#ifdef DLT_IEEE802_15_4 ++ { raw_if_print, DLT_IEEE802_15_4 }, ++#endif + #if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H) + { bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR}, + #endif +-- +1.5.6.2 + 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: |