net/utils/tcpdump: update to 4.8.1
Update tcpdump to upstream release 4.8.1 Signed-off-by: Paul Wassi <p.wassi@gmx.at>v19.07.3_mercusys_ac12_duma
parent
64590f3c7e
commit
a4a00d794f
@ -1,23 +1,100 @@
|
|||||||
--- a/tcpdump.c
|
--- a/configure
|
||||||
+++ b/tcpdump.c
|
+++ b/configure
|
||||||
@@ -1095,20 +1095,6 @@ main(int argc, char **argv)
|
@@ -6260,97 +6260,6 @@ $as_echo "no" >&6; }
|
||||||
error("invalid data link type %s", gndo->ndo_dltname);
|
fi
|
||||||
break;
|
fi
|
||||||
|
|
||||||
-#if defined(HAVE_PCAP_DEBUG) || defined(HAVE_YYDEBUG)
|
-#
|
||||||
- case 'Y':
|
-# Check for special debugging functions
|
||||||
- {
|
-#
|
||||||
- /* Undocumented flag */
|
-for ac_func in pcap_set_parser_debug
|
||||||
-#ifdef HAVE_PCAP_DEBUG
|
-do :
|
||||||
- extern int pcap_debug;
|
- ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
|
||||||
- pcap_debug = 1;
|
-if test "x$ac_cv_func_pcap_set_parser_debug" = xyes; then :
|
||||||
-#else
|
- cat >>confdefs.h <<_ACEOF
|
||||||
|
-#define HAVE_PCAP_SET_PARSER_DEBUG 1
|
||||||
|
-_ACEOF
|
||||||
|
-
|
||||||
|
-fi
|
||||||
|
-done
|
||||||
|
-
|
||||||
|
-if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
|
||||||
|
- #
|
||||||
|
- # OK, we don't have pcap_set_parser_debug() to set the libpcap
|
||||||
|
- # filter expression parser debug flag; can we directly set the
|
||||||
|
- # flag?
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
|
||||||
|
-$as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
|
||||||
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
-/* end confdefs.h. */
|
||||||
|
-
|
||||||
|
-int
|
||||||
|
-main ()
|
||||||
|
-{
|
||||||
|
-
|
||||||
|
- extern int pcap_debug;
|
||||||
|
-
|
||||||
|
- return pcap_debug;
|
||||||
|
-
|
||||||
|
- ;
|
||||||
|
- return 0;
|
||||||
|
-}
|
||||||
|
-_ACEOF
|
||||||
|
-if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
- ac_lbl_cv_pcap_debug_defined=yes
|
||||||
|
-else
|
||||||
|
- ac_lbl_cv_pcap_debug_defined=no
|
||||||
|
-fi
|
||||||
|
-rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
- conftest$ac_exeext conftest.$ac_ext
|
||||||
|
- if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
-$as_echo "yes" >&6; }
|
||||||
|
-
|
||||||
|
-$as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
|
||||||
|
-
|
||||||
|
- else
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
-$as_echo "no" >&6; }
|
||||||
|
- #
|
||||||
|
- # OK, what about "yydebug"?
|
||||||
|
- #
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
|
||||||
|
-$as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
|
||||||
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
-/* end confdefs.h. */
|
||||||
|
-
|
||||||
|
-int
|
||||||
|
-main ()
|
||||||
|
-{
|
||||||
|
-
|
||||||
- extern int yydebug;
|
- extern int yydebug;
|
||||||
- yydebug = 1;
|
-
|
||||||
-#endif
|
- return yydebug;
|
||||||
- }
|
-
|
||||||
- break;
|
- ;
|
||||||
-#endif
|
- return 0;
|
||||||
case 'z':
|
-}
|
||||||
if (optarg) {
|
-_ACEOF
|
||||||
zflag = strdup(optarg);
|
-if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
- ac_lbl_cv_yydebug_defined=yes
|
||||||
|
-else
|
||||||
|
- ac_lbl_cv_yydebug_defined=no
|
||||||
|
-fi
|
||||||
|
-rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
- conftest$ac_exeext conftest.$ac_ext
|
||||||
|
- if test "$ac_lbl_cv_yydebug_defined" = yes ; then
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
-$as_echo "yes" >&6; }
|
||||||
|
-
|
||||||
|
-$as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
|
||||||
|
-
|
||||||
|
- else
|
||||||
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
-$as_echo "no" >&6; }
|
||||||
|
- fi
|
||||||
|
- fi
|
||||||
|
-fi
|
||||||
|
for ac_func in pcap_set_optimizer_debug
|
||||||
|
do :
|
||||||
|
ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue