summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-05-08 13:08:36 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-11 12:16:57 +0200
commite77b31f53a61a8995cd6baf91a6e557260f401bd (patch)
tree1ee2e9c20c746c8cb66ee5f70ce95c9ebcf8cafc /src/main.c
parent7feece21f72ebf4633048b2dd447e31da30819fb (diff)
libnftables: Introduce a few helper functions
This adds a bunch of functions for conversion of different values into string (and vice-versa). * log_level_parse(): A simple helper to turn log level string representation into log level value. * nat_etype2str(): Translate nat statement type into string representation. * ct_dir2str(): Convert IP_CT_DIR_* values into string representation. * ct_label2str(): Convert ct_label values into string representation. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions