]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: have xtopt_parse_mint interpret partially-spec'd ranges
authorJan Engelhardt <jengelh@medozas.de>
Tue, 24 May 2011 21:50:29 +0000 (23:50 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 24 May 2011 22:38:50 +0000 (00:38 +0200)
commit6944f2c8190f1c4319aeac748470c71b0ba45025
treebadf3e40fe0b47be98d0f24ef078cc7e6831da0d
parent1b6c7632e5e35ecce91f87a4ae36eca3103cfee2
libxtables: have xtopt_parse_mint interpret partially-spec'd ranges

When ":n" or "n:" is specified, it will now be interpreted as "0:n"
and "n:<max>", respecitvely. nvals will always reflect the number of
(expanded) components. This restores the functionality of options that
take such partially-unspecified ranges.

This makes it possible to nuke the per-matchdata init functions of
some extensions and simply the extensions postparsing to the point
where it only needs to check for nvals==1 or ==2.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libip6t_ah.c
extensions/libip6t_frag.c
extensions/libip6t_rt.c
extensions/libipt_ah.c
extensions/libxt_conntrack.c
extensions/libxt_esp.c
extensions/libxt_length.c
xtoptions.c