]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Introduce and use common function to parse val[/mask] arguments
authorSerhey Popovych <serhe.popovych@gmail.com>
Thu, 1 Mar 2018 11:03:11 +0000 (13:03 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 27 Apr 2018 16:56:20 +0000 (18:56 +0200)
commit29b1d97764d1849651388d870565b3fa815a0bd8
tree1e9c5e71eaf91ca360949b020602390280df90d9
parent56aadc01b258ef7849463723ab5ddc4885db22f6
xtables: Introduce and use common function to parse val[/mask] arguments

There are a couple of places in both core and extensions where arguments
in the form of val[/mask] is parsed (see XTTYPE_MARKMASK32).

In some cases symbolic name might be used which is mapped in code to
numeric value.

Introduce common function to handle both cases where value given is
either val[/mask] or symbolic name.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libipt_realm.c
extensions/libxt_devgroup.c
include/xtables.h
libxtables/xtables.c
libxtables/xtoptions.c