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 /test/nft-table-xml-add.sh | |
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 'test/nft-table-xml-add.sh')
-rwxr-xr-x | test/nft-table-xml-add.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nft-table-xml-add.sh b/test/nft-table-xml-add.sh index 2c55edc..30b65e1 100755 --- a/test/nft-table-xml-add.sh +++ b/test/nft-table-xml-add.sh @@ -40,7 +40,7 @@ fi # This is valid XML="<table name=\"filter_test\" version=\"0\"> <properties> - <family>2</family> + <family>ip</family> <table_flags>0</table_flags> </properties> </table>" @@ -57,7 +57,7 @@ fi # This is valid XML="<table name=\"filter6_test\" version=\"0\"> <properties> - <family>10</family> + <family>ip6</family> <table_flags>0</table_flags> </properties> </table>" |