OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ec9682
)
[NETFILTER]: ipt_DNAT: accept port randomization option
author
Patrick McHardy
<kaber@trash.net>
Thu, 3 May 2007 10:34:03 +0000
(
03:34
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 May 2007 10:34:03 +0000
(
03:34
-0700)
Also accept the --random option for DNAT to allow randomly selecting a
destination port from the given range.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_rule.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/nf_nat_rule.c
b/net/ipv4/netfilter/nf_nat_rule.c
index
2a28339
..
2534f71
100644
(file)
--- a/
net/ipv4/netfilter/nf_nat_rule.c
+++ b/
net/ipv4/netfilter/nf_nat_rule.c
@@
-226,10
+226,6
@@
static int ipt_dnat_checkentry(const char *tablename,
printk("DNAT: multiple ranges no longer supported\n");
return 0;
}
- if (mr->range[0].flags & IP_NAT_RANGE_PROTO_RANDOM) {
- printk("DNAT: port randomization not supported\n");
- return 0;
- }
return 1;
}