Message ID | 20151009123817.32207.32567.stgit@r2d2.cica.es |
---|---|
State | RFC |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/tests/operations/testcases/maps/anonymous_snat_map_0 b/tests/operations/testcases/maps/anonymous_snat_map_0 new file mode 100755 index 0000000..67698ec --- /dev/null +++ b/tests/operations/testcases/maps/anonymous_snat_map_0 @@ -0,0 +1,7 @@ +#!/bin/bash + +# anonymous map can be added to a snat rule + +$NFT add table nat +$NFT add chain nat postrouting +$NFT add rule nat postrouting snat ip saddr map {1.1.1.1 : 2.2.2.2} diff --git a/tests/operations/testcases/maps/named_snat_map_0 b/tests/operations/testcases/maps/named_snat_map_0 new file mode 100755 index 0000000..6e11051 --- /dev/null +++ b/tests/operations/testcases/maps/named_snat_map_0 @@ -0,0 +1,9 @@ +#!/bin/bash + +# nameds map can be addedd to a snat rule + +$NFT add table nat +$NFT add chain nat postrouting +$NFT add map nat m { type ipv4_addr : ipv4_addr\; } +$NFT add element nat m {1.1.1.1: 2.2.2.2} +$NFT add rule nat postrouting snat ip saddr map @m
Let's add some tests cases for maps. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> --- .../operations/testcases/maps/anonymous_snat_map_0 | 7 +++++++ tests/operations/testcases/maps/named_snat_map_0 | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100755 tests/operations/testcases/maps/anonymous_snat_map_0 create mode 100755 tests/operations/testcases/maps/named_snat_map_0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html