diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2013-06-27 18:56:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-27 19:36:24 +0200 |
commit | 8e7acbfae3017cd5f30e3b17ca16354f76b81b8a (patch) | |
tree | 88164946f76b50c96ad9a08308988e434af429de /src/internal.h | |
parent | 04604b0373d907fefde0c3e13af68868f03e5d58 (diff) |
src: xml: convert family values to string
This patch translates family values to display a string:
* ip if AF_INET
* ip6 if AF_INET6
* bridge if AF_BRIDGE
* arp if 0
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h index fffca3d..23a3e59 100644 --- a/src/internal.h +++ b/src/internal.h @@ -23,6 +23,9 @@ #define NFT_TABLE_JSON_VERSION 0 #define NFT_CHAIN_JSON_VERSION 0 +const char *nft_family2str(uint32_t family); +int nft_str2family(const char *family); + struct expr_ops; struct nft_rule_expr { |