From 8e7acbfae3017cd5f30e3b17ca16354f76b81b8a Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 27 Jun 2013 18:56:38 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- test/nft-chain-xml-add.sh | 6 +++--- test/nft-rule-xml-add.sh | 3 +-- test/nft-table-xml-add.sh | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/nft-chain-xml-add.sh b/test/nft-chain-xml-add.sh index fda28cb..ab50e2b 100755 --- a/test/nft-chain-xml-add.sh +++ b/test/nft-chain-xml-add.sh @@ -42,7 +42,7 @@ XML="0 NF_INET_LOCAL_IN 1 - 2 + ip " @@ -63,7 +63,7 @@ XML="0 NF_INET_POST_ROUTING 1 - 10 + ip6 " @@ -85,7 +85,7 @@ XML="0 NF_INET_FORWARD 1 - 2 + ip " diff --git a/test/nft-rule-xml-add.sh b/test/nft-rule-xml-add.sh index 426b975..961b597 100755 --- a/test/nft-rule-xml-add.sh +++ b/test/nft-rule-xml-add.sh @@ -33,9 +33,8 @@ fi [ ! -x "$NFT" ] && echo "W: nftables main binary not found but continuing anyway $NFT" -XML=" +XML=" 0 - 127 0 0 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=" - 2 + ip 0
" @@ -57,7 +57,7 @@ fi # This is valid XML=" - 10 + ip6 0
" -- cgit v1.2.3