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

There are number of places where argument is in val[/mask] format
printed in extensions and some of them may print corresponding symbolic
name.

By introducing common function for this task we eliminate custom code
parts in extensions to perform printing of arguments in required
formats.

Use xtables_print_mark_mask() helper for extensions without
symbolic name for val[/mask].

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