summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_u32.c
diff options
context:
space:
mode:
authorSerhey Popovych <serhe.popovych@gmail.com>2018-03-01 13:03:10 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-27 18:56:14 +0200
commit56aadc01b258ef7849463723ab5ddc4885db22f6 (patch)
treeb8fb3f0c3c95231a0843ee5eb4386096b811f96e /extensions/libxt_u32.c
parent79c2da9860d704e7e709a0612da1fdc5cde8b5fa (diff)
extensions: Initialize linear mapping of symbols in _init() of extension
libxt_devgroup and libipt_realm currently unable to display symbolic names in save/print commands because linear mapping is not initialized. It looks bit confusing as linear mapping initialization is done in init() of extension, which is expected to be called before any other function of extension. However init is called only when '-m' option specified on command line, that is true only for insert, append, replace and destroy iptables commands. Move initialization to extension _init() function before calling any function in extension. Before: ------- ... src-group 0x1 dst-group 0x2 ... src-group 0x2 dst-group 0x1 After: ------ ... src-group grp1 dst-group grp2 ... src-group grp2 dst-group grp1 Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_u32.c')
0 files changed, 0 insertions, 0 deletions