path: root/include/iptables_common.h
diff options
authorPhil Oester <>2006-07-10 04:52:56 +0000
committerPatrick McHardy <>2006-07-10 04:52:56 +0000
commit5549ad0e7eac76922e727e61f425e1f1f02e380d (patch)
tree728276ae4c34bc9c9f508eda5ce883e1fe39fd33 /include/iptables_common.h
parent8a173efc9af7cdc96b37867bdb3f4112be5dcbf9 (diff)
iptables: handle cidr notation more sanely (Phil Oester <>)
At present, a command such as iptables -A foo -s 10.10/16 will interpret 10.10/16 as, and after applying the mask end up with, which likely isn't what the user intended. Yet some people do expect 10.10 (without the cidr notation) to end up as The below patch should satisfy all parties. It zero pads the missing octets only in the cidr case, leaving the IP untouched otherwise. This resolves bug #422
Diffstat (limited to 'include/iptables_common.h')
0 files changed, 0 insertions, 0 deletions