diff --git a/Makefile b/Makefile index 3fc3a155..dbcb249a 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,8 @@ SUBDIRS=lib ip tc misc netem genl LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a all: Config - @for i in $(SUBDIRS); \ + @set -e; \ + for i in $(SUBDIRS); \ do $(MAKE) $(MFLAGS) -C $$i; done Config: diff --git a/tc/m_ipt.c b/tc/m_ipt.c index e1f68b33..3d653391 100644 --- a/tc/m_ipt.c +++ b/tc/m_ipt.c @@ -36,24 +36,9 @@ #include #include -const char *pname = "tc-ipt"; -const char *tname = "mangle"; -const char *pversion = "0.1"; - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef IPT_LIB_DIR -#define IPT_LIB_DIR "/usr/local/lib/iptables" -#endif - -#ifndef PROC_SYS_MODPROBE -#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe" -#endif +static const char *pname = "tc-ipt"; +static const char *tname = "mangle"; +static const char *pversion = "0.1"; static const char *ipthooks[] = { "NF_IP_PRE_ROUTING",