diff options
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump-4.5.1')
7 files changed, 206 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch new file mode 100644 index 0000000000..9d3d60d4d7 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/0001-minimal-IEEE802.15.4-allowed.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From: Sergey Lapin <slapin@slind.org> | ||
2 | Date: Wed, 28 Jan 2009 16:34:15 +0300 | ||
3 | Subject: [PATCH] minimal IEEE802.15.4 allowed | ||
4 | |||
5 | --- | ||
6 | tcpdump.c | 3 +++ | ||
7 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
8 | |||
9 | diff --git a/tcpdump.c b/tcpdump.c | ||
10 | index 06683af..fbc944c 100644 | ||
11 | --- a/tcpdump.c | ||
12 | +++ b/tcpdump.c | ||
13 | @@ -282,6 +282,9 @@ static struct printer printers[] = { | ||
14 | #ifdef DLT_MFR | ||
15 | { mfr_if_print, DLT_MFR }, | ||
16 | #endif | ||
17 | +#ifdef DLT_IEEE802_15_4 | ||
18 | + { raw_if_print, DLT_IEEE802_15_4 }, | ||
19 | +#endif | ||
20 | #if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H) | ||
21 | { bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR}, | ||
22 | #endif | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch new file mode 100644 index 0000000000..3697420fd3 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/configure.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | --- | ||
2 | aclocal.m4 | 1 - | ||
3 | configure.in | 1 + | ||
4 | 2 files changed, 1 insertions(+), 1 deletions(-) | ||
5 | |||
6 | diff --git a/aclocal.m4 b/aclocal.m4 | ||
7 | index 40b5866..0c662b0 100644 | ||
8 | --- a/aclocal.m4 | ||
9 | +++ b/aclocal.m4 | ||
10 | @@ -40,7 +40,6 @@ dnl | ||
11 | AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC, | ||
12 | [AC_PREREQ(2.50) | ||
13 | AC_BEFORE([$0], [AC_LBL_C_INIT]) | ||
14 | - AC_BEFORE([$0], [AC_PROG_CC]) | ||
15 | AC_BEFORE([$0], [AC_LBL_FIXINCLUDES]) | ||
16 | AC_BEFORE([$0], [AC_LBL_DEVEL]) | ||
17 | AC_ARG_WITH(gcc, [ --without-gcc don't use gcc]) | ||
18 | diff --git a/configure.in b/configure.in | ||
19 | index 11257c9..7f9591c 100644 | ||
20 | --- a/configure.in | ||
21 | +++ b/configure.in | ||
22 | @@ -19,6 +19,7 @@ AC_REVISION($Revision: 1.204 $) | ||
23 | AC_PREREQ(2.50) | ||
24 | AC_INIT(tcpdump.c) | ||
25 | |||
26 | +AC_PROG_CC | ||
27 | AC_CANONICAL_HOST | ||
28 | |||
29 | AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS) | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch new file mode 100644 index 0000000000..7eba2c5a6d --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/ipv6-cross.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | --- | ||
2 | configure.in | 12 ++++++++---- | ||
3 | 1 files changed, 8 insertions(+), 4 deletions(-) | ||
4 | |||
5 | diff --git a/configure.in b/configure.in | ||
6 | index eb3e5e8..11257c9 100644 | ||
7 | --- a/configure.in | ||
8 | +++ b/configure.in | ||
9 | @@ -181,8 +181,9 @@ yes) AC_MSG_RESULT(yes) | ||
10 | ipv6=no | ||
11 | ;; | ||
12 | esac ], | ||
13 | - | ||
14 | - AC_TRY_RUN([ /* AF_INET6 available check */ | ||
15 | +[ | ||
16 | + if test x"$cross_compiling" != "xyes"; then | ||
17 | + AC_TRY_RUN([ /* AF_INET6 avalable check */ | ||
18 | #include <sys/types.h> | ||
19 | #include <sys/socket.h> | ||
20 | main() | ||
21 | @@ -201,7 +202,10 @@ main() | ||
22 | ipv6=no], | ||
23 | [ AC_MSG_RESULT(no) | ||
24 | ipv6=no] | ||
25 | -)) | ||
26 | + ) | ||
27 | +else | ||
28 | + AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.]) | ||
29 | +fi]) | ||
30 | |||
31 | ipv6type=unknown | ||
32 | ipv6lib=none | ||
33 | @@ -316,7 +320,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||
34 | fi | ||
35 | |||
36 | |||
37 | -if test "$ipv6" = "yes"; then | ||
38 | +if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then | ||
39 | # | ||
40 | # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" | ||
41 | # function in libc; there are "ngetaddrinfo()" and | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch new file mode 100644 index 0000000000..50e2d54399 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-configure-dlpi.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | [PATCH] tcpdump: cross-compiling not check dlpi. | ||
2 | |||
3 | For cross-compiling on Linux platforms, we do not need to check libdlpi | ||
4 | since it is only placed on Solaris. | ||
5 | Also, checking libdlpi in native /lib would cause do_qa_configure fail. | ||
6 | |||
7 | Upstream-Status: Pending. | ||
8 | |||
9 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
10 | --- | ||
11 | configure.in | 4 +++- | ||
12 | 1 files changed, 3 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/configure.in b/configure.in | ||
15 | index 7f9591c..ca277c0 100644 | ||
16 | --- a/configure.in | ||
17 | +++ b/configure.in | ||
18 | @@ -716,7 +716,9 @@ don't.]) | ||
19 | fi | ||
20 | |||
21 | # libdlpi is needed for Solaris 11 and later. | ||
22 | -AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib) | ||
23 | +if test "$cross_compiling" != yes; then | ||
24 | + AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib) | ||
25 | +fi | ||
26 | |||
27 | dnl portability macros for getaddrinfo/getnameinfo | ||
28 | dnl | ||
29 | -- | ||
30 | 1.7.5.4 | ||
31 | |||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch new file mode 100644 index 0000000000..b414b72e9d --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump-cross-getaddrinfo.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Fix getaddinfo check when cross compiling | ||
2 | |||
3 | Upstream-Status: Pending. | ||
4 | |||
5 | AC_TRY_RUN defaults to td_cv_buggygetaddrinfo=yes when | ||
6 | cross-compiling. So this change indicates that we | ||
7 | are cross-compiling. | ||
8 | |||
9 | Signed-of-by: Aws Ismail <aws.ismail@windriver.com> | ||
10 | |||
11 | diff --git a/configure.in b/configure.in | ||
12 | index ca277c0..283035e 100644 | ||
13 | --- a/configure.in | ||
14 | +++ b/configure.in | ||
15 | @@ -434,7 +434,7 @@ main() | ||
16 | ], | ||
17 | td_cv_buggygetaddrinfo=no, | ||
18 | td_cv_buggygetaddrinfo=yes, | ||
19 | - td_cv_buggygetaddrinfo=yes)]) | ||
20 | + td_cv_buggygetaddrinfo=cross)]) | ||
21 | if test "$td_cv_buggygetaddrinfo" = no; then | ||
22 | AC_MSG_RESULT(good) | ||
23 | else | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch new file mode 100644 index 0000000000..b2296bc524 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/tcpdump_configure_no_-O2.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | --- | ||
2 | configure | 4 ++-- | ||
3 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
4 | |||
5 | diff --git a/configure b/configure | ||
6 | index 468a517..a890728 100755 | ||
7 | --- a/configure | ||
8 | +++ b/configure | ||
9 | @@ -3036,13 +3036,13 @@ if test "$ac_test_CFLAGS" = set; then | ||
10 | CFLAGS=$ac_save_CFLAGS | ||
11 | elif test $ac_cv_prog_cc_g = yes; then | ||
12 | if test "$GCC" = yes; then | ||
13 | - CFLAGS="-g -O2" | ||
14 | + CFLAGS="-g" | ||
15 | else | ||
16 | CFLAGS="-g" | ||
17 | fi | ||
18 | else | ||
19 | if test "$GCC" = yes; then | ||
20 | - CFLAGS="-O2" | ||
21 | + CFLAGS= | ||
22 | else | ||
23 | CFLAGS= | ||
24 | fi | ||
25 | -- | ||
26 | 1.7.9.5 | ||
27 | |||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch new file mode 100644 index 0000000000..d7a3ac23b1 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.5.1/unnecessary-to-check-libpcap.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | unnecessary to check libpcap | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | since the check of libpcap did not consider the cross-compile, lead to the | ||
6 | below error: | ||
7 | This autoconf log indicates errors, it looked at host include and/or | ||
8 | library paths while determining system capabilities. | ||
9 | |||
10 | In fact, the libpcap has been added into the tcpdump's DEPENDS, not need to | ||
11 | check if libpcap existed. | ||
12 | |||
13 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
14 | --- | ||
15 | configure.in | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/configure.in b/configure.in | ||
19 | index 06fade1..9125de7 100644 | ||
20 | --- a/configure.in | ||
21 | +++ b/configure.in | ||
22 | @@ -567,7 +567,7 @@ AC_SEARCH_LIBS(getrpcbynumber, nsl, | ||
23 | dnl AC_CHECK_LIB(z, uncompress) | ||
24 | dnl AC_CHECK_HEADERS(zlib.h) | ||
25 | |||
26 | -AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) | ||
27 | +#AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) | ||
28 | |||
29 | # | ||
30 | # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate | ||
31 | -- | ||
32 | 1.7.9.5 | ||
33 | |||