mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[NETFILTER]: ipt_DNAT: accept port randomization option
Also accept the --random option for DNAT to allow randomly selecting a destination port from the given range. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0ec96822d5
commit
327850070b
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue