diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | extensions/arpt_mangle.c | 10 |
2 files changed, 8 insertions, 6 deletions
@@ -4,8 +4,8 @@ TOPLEVEL_INCLUDED=YES ifndef KERNEL_DIR KERNEL_DIR=include/linux endif -ARPTABLES_VERSION:=0.0.0 -OLD_ARPTABLES_VERSION:=0.0.-1 +ARPTABLES_VERSION:=0.0.1 +OLD_ARPTABLES_VERSION:=0.0.0 PREFIX:=/usr/local LIBDIR:=$(PREFIX)/lib diff --git a/extensions/arpt_mangle.c b/extensions/arpt_mangle.c index 2288839..8b562ac 100644 --- a/extensions/arpt_mangle.c +++ b/extensions/arpt_mangle.c @@ -56,10 +56,11 @@ parse(int c, char **argv, int invert, unsigned int *flags, /* if (e->arp.arpln_mask == 0) exit_error(PARAMETER_PROBLEM, "no pln defined"); -*/ + if (e->arp.invflags & ARPT_INV_ARPPLN) exit_error(PARAMETER_PROBLEM, "! pln not allowed for --mangle-ip-s"); +*/ /* if (e->arp.arpln != 4) exit_error(PARAMETER_PROBLEM, "only pln=4 supported"); @@ -76,10 +77,11 @@ parse(int c, char **argv, int invert, unsigned int *flags, /* if (e->arp.arpln_mask == 0) exit_error(PARAMETER_PROBLEM, "no pln defined"); -*/ + if (e->arp.invflags & ARPT_INV_ARPPLN) exit_error(PARAMETER_PROBLEM, "! pln not allowed for --mangle-ip-d"); +*/ /* if (e->arp.arpln != 4) exit_error(PARAMETER_PROBLEM, "only pln=4 supported"); @@ -145,7 +147,7 @@ static void print(const struct arpt_arp *ip, sprintf(buf, "%s", addr_to_dotted(&(m->u_s.src_ip))); else sprintf(buf, "%s", addr_to_anyname(&(m->u_s.src_ip))); - printf("--magle-ip-s %s ", buf); + printf("--mangle-ip-s %s ", buf); } if (m->flags & ARPT_MANGLE_SDEV) { printf("--mangle-mac-s "); @@ -157,7 +159,7 @@ static void print(const struct arpt_arp *ip, sprintf(buf, "%s", addr_to_dotted(&(m->u_t.tgt_ip))); else sprintf(buf, "%s", addr_to_anyname(&(m->u_t.tgt_ip))); - printf("--magle-ip-d %s ", buf); + printf("--mangle-ip-d %s ", buf); } if (m->flags & ARPT_MANGLE_TDEV) { printf("--mangle-mac-d "); |