M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -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
@@ -0,0 +1,24 @@
Index: tcpdump-4.0.0/aclocal.m4
===================================================================
--- tcpdump-4.0.0.orig/aclocal.m4
+++ tcpdump-4.0.0/aclocal.m4
@@ -44,7 +44,6 @@ dnl LBL_CFLAGS
dnl
AC_DEFUN(AC_LBL_C_INIT,
[AC_PREREQ(2.12)
- AC_BEFORE([$0], [AC_PROG_CC])
AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
AC_BEFORE([$0], [AC_LBL_DEVEL])
AC_ARG_WITH(gcc, [ --without-gcc don't use gcc])
Index: tcpdump-4.0.0/configure.in
===================================================================
--- tcpdump-4.0.0.orig/configure.in
+++ tcpdump-4.0.0/configure.in
@@ -10,6 +10,7 @@ AC_REVISION($Revision: 1.196.2.6 $)
AC_PREREQ(2.50)
AC_INIT(tcpdump.c)
+AC_PROG_CC
AC_CANONICAL_HOST
AC_LBL_C_INIT(V_CCOPT, V_INCLS)
@@ -0,0 +1,37 @@
Index: tcpdump-4.0.0/configure.in
===================================================================
--- tcpdump-4.0.0.orig/configure.in
+++ tcpdump-4.0.0/configure.in
@@ -160,8 +160,9 @@ yes) AC_MSG_RESULT(yes)
ipv6=no
;;
esac ],
-
- AC_TRY_RUN([ /* AF_INET6 available check */
+[
+ if test x"$cross_compiling" != "xyes"; then
+ AC_TRY_RUN([ /* AF_INET6 avalable check */
#include <sys/types.h>
#include <sys/socket.h>
main()
@@ -180,7 +181,10 @@ main()
ipv6=no],
[ AC_MSG_RESULT(no)
ipv6=no]
-))
+ )
+else
+ AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.])
+fi])
ipv6type=unknown
ipv6lib=none
@@ -295,7 +299,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" !=
fi
-if test "$ipv6" = "yes"; then
+if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then
#
# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
# function in libc; there are "ngetaddrinfo()" and
@@ -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:
@@ -0,0 +1,36 @@
--- tcpdump-3.8.3/configure 2004-03-28 23:06:09.000000000 +0200
+++ tcpdump-3.8.3.mod/configure 2004-07-29 13:04:18.450769088 +0200
@@ -2059,13 +2059,13 @@
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ CFLAGS="-g"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
- CFLAGS="-O2"
+ CFLAGS=""
else
CFLAGS=
fi
@@ -2291,7 +2291,7 @@
if test "$GCC" = yes ; then
if test "$SHLICC2" = yes ; then
ac_cv_lbl_gcc_vers=2
- V_CCOPT="-O2"
+ V_CCOPT=""
else
echo "$as_me:$LINENO: checking gcc version" >&5
echo $ECHO_N "checking gcc version... $ECHO_C" >&6
@@ -2308,7 +2308,7 @@
echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
if test $ac_cv_lbl_gcc_vers -gt 1 ; then
- V_CCOPT="-O2"
+ V_CCOPT=""
fi
fi
else