* [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address.
@ 2017-11-19 12:34 Varsha Rao
2017-11-20 13:28 ` Pablo Neira Ayuso
2017-11-26 2:37 ` Varsha Rao
0 siblings, 2 replies; 4+ messages in thread
From: Varsha Rao @ 2017-11-19 12:34 UTC (permalink / raw)
To: Pablo Neira Ayuso, netfilter-devel; +Cc: Varsha Rao
This patch adds test case for IPv4 Mapped IPv6 address and renames
file 0025named_limit_0 to 0026named_limit_0.
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
---
.../sets/{0025named_limit_0 => 0026named_limit_0} | 0
tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 | 25 ++++++++++++++++++++++
2 files changed, 25 insertions(+)
rename tests/shell/testcases/sets/{0025named_limit_0 => 0026named_limit_0} (100%)
create mode 100755 tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
diff --git a/tests/shell/testcases/sets/0025named_limit_0 b/tests/shell/testcases/sets/0026named_limit_0
similarity index 100%
rename from tests/shell/testcases/sets/0025named_limit_0
rename to tests/shell/testcases/sets/0026named_limit_0
diff --git a/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 b/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
new file mode 100755
index 0000000..5420fbf
--- /dev/null
+++ b/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# Tests IPv4 Mapped IPv6 addresses.
+
+set -e
+
+tmpfile=$(mktemp)
+if [ ! -w $tmpfile ] ; then
+ echo "Failed to create tmp file" >&2
+ exit 0
+fi
+
+trap "rm -rf $tmpfile" EXIT # cleanup if aborted
+
+echo "
+table inet t {
+ set s {
+ type ipv6_addr
+ flags interval
+ elements = { ::ffff:0.0.0.0/96 }
+ }
+}
+" > $tmpfile
+
+$NFT -f $tmpfile
--
2.14.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address.
2017-11-19 12:34 [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address Varsha Rao
@ 2017-11-20 13:28 ` Pablo Neira Ayuso
2017-11-23 4:13 ` Varsha Rao
2017-11-26 2:37 ` Varsha Rao
1 sibling, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2017-11-20 13:28 UTC (permalink / raw)
To: Varsha Rao; +Cc: netfilter-devel
On Sun, Nov 19, 2017 at 06:04:32PM +0530, Varsha Rao wrote:
> This patch adds test case for IPv4 Mapped IPv6 address and renames
> file 0025named_limit_0 to 0026named_limit_0.
Applied, thanks Varsha.
Please, next time, send one patch for each thing. It's a good practise
to stick to one single patch per logical change.
In other words, if you see yourself saying in the patch description
something like: "This patch is doing X and Y", then it means X needs
one single patch for it, and Y another one.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address.
2017-11-20 13:28 ` Pablo Neira Ayuso
@ 2017-11-23 4:13 ` Varsha Rao
0 siblings, 0 replies; 4+ messages in thread
From: Varsha Rao @ 2017-11-23 4:13 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
On Mon, Nov 20, 2017 at 6:58 PM, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> On Sun, Nov 19, 2017 at 06:04:32PM +0530, Varsha Rao wrote:
>> This patch adds test case for IPv4 Mapped IPv6 address and renames
>> file 0025named_limit_0 to 0026named_limit_0.
>
> Applied, thanks Varsha.
>
> Please, next time, send one patch for each thing. It's a good practise
> to stick to one single patch per logical change.
>
> In other words, if you see yourself saying in the patch description
> something like: "This patch is doing X and Y", then it means X needs
> one single patch for it, and Y another one.
Sorry, as no code was changed, I did not make a new patch for it.
Thank you for the clarification.
Thanks,
Varsha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address.
2017-11-19 12:34 [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address Varsha Rao
2017-11-20 13:28 ` Pablo Neira Ayuso
@ 2017-11-26 2:37 ` Varsha Rao
1 sibling, 0 replies; 4+ messages in thread
From: Varsha Rao @ 2017-11-26 2:37 UTC (permalink / raw)
To: Pablo Neira Ayuso, netfilter-devel
Hello Pablo,
On Sun, Nov 19, 2017 at 6:04 PM, Varsha Rao <rvarsha016@gmail.com> wrote:
> This patch adds test case for IPv4 Mapped IPv6 address and renames
> file 0025named_limit_0 to 0026named_limit_0.
>
> Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
> ---
> rename to tests/shell/testcases/sets/0026named_limit_0
> diff --git a/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 b/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
> new file mode 100755
There seems to be a small problem with applied patch. It has file mode as 100644
instead of 100755. Should I send a patch for it?
Thanks,
Varsha
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-26 2:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-19 12:34 [PATCH nft] tests: shell: Add test for IPv4 Mapped IPv6 address Varsha Rao
2017-11-20 13:28 ` Pablo Neira Ayuso
2017-11-23 4:13 ` Varsha Rao
2017-11-26 2:37 ` Varsha Rao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.