git://git.onelab.eu
/
iptables.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to iptables-1.3.8
[iptables.git]
/
extensions
/
libipt_NETMAP.c
diff --git
a/extensions/libipt_NETMAP.c
b/extensions/libipt_NETMAP.c
index
a39c731
..
4b4b14d
100644
(file)
--- a/
extensions/libipt_NETMAP.c
+++ b/
extensions/libipt_NETMAP.c
@@
-9,7
+9,7
@@
#include <getopt.h>
#include <iptables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <getopt.h>
#include <iptables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
-#include <linux/netfilter
_ipv4/ip_nat_rule
.h>
+#include <linux/netfilter
/nf_nat
.h>
#define MODULENAME "NETMAP"
#define MODULENAME "NETMAP"
@@
-86,7
+86,7
@@
parse_to(char *arg, struct ip_nat_range *range)
range->min_ip = ip->s_addr;
if (slash) {
if (strchr(slash+1, '.')) {
range->min_ip = ip->s_addr;
if (slash) {
if (strchr(slash+1, '.')) {
- ip = dotted_to_
addr
(slash+1);
+ ip = dotted_to_
mask
(slash+1);
if (!ip)
exit_error(PARAMETER_PROBLEM, "Bad netmask `%s'\n",
slash+1);
if (!ip)
exit_error(PARAMETER_PROBLEM, "Bad netmask `%s'\n",
slash+1);