From 857126daf5b96292be0fd924e8462b76177af025 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Sat, 13 Aug 2016 02:39:33 +0300 Subject: build: configure: Add option to enable debug symbols Add '--enable-debug' option to enable debugging symbols, the reason is to simplify it by ./configure it once and do not execute 'make DEBUG=1' each time for a long debug session. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 399733f..4a5b7e3 100755 --- a/configure +++ b/configure @@ -22,6 +22,7 @@ HAVE_TPACKET3=0 DISABLE_LIBNL=0 DISABLE_GEOIP=0 DISABLE_ZLIB=0 +ENABLE_DEBUG=0 usage() { @@ -33,6 +34,7 @@ usage() echo " --disable-libnl Disable libnl support" echo " --disable-geoip Disable geoip support" echo " --disable-zlib Disable zlib support" + echo " --enable-debug Enable debug mode (default disabled)" echo "" echo "Some influential environment variables:" echo " CC C compiler command" @@ -55,6 +57,9 @@ while [ $# -gt 0 ] ; do --disable-zlib) DISABLE_ZLIB=1 ;; + --enable-debug) + ENABLE_DEBUG=1 + ;; *) echo "[!] Unrecognized option: '$1'. Try './configure --help' for more information" exit 1 @@ -789,6 +794,7 @@ else echo "CONFIG_GEOIP=0" >> Config fi +echo "CONFIG_DEBUG=$ENABLE_DEBUG" >> Config echo "CONFIG_TOOLS=$TOOLS" >> Config echo "CONFIG_OK=1" >> Config -- cgit v1.2.3-54-g00ecf >Tobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng <fgao@ikuai8.com>2017-01-20 21:40:43 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-02 14:30:19 +0100
commit10435c1192d06bdb0bac7666452d8219d7e7c477 (patch)
tree93b76419142fe17b1d162d062c663297a3e8a965 /MAINTAINERS
parent1a28ad74ebd8f9d3c7eae0d781f72a6d30545e17 (diff)
netfilter: nf_tables: Eliminate duplicated code in nf_tables_table_enable()
If something fails in nf_tables_table_enable(), it unregisters the chains. But the rollback code is the same as nf_tables_table_disable() almostly, except there is one counter check. Now create one wrapper function to eliminate the duplicated codes. Signed-off-by: Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'MAINTAINERS')