From 93116920da057df730d76b8026d0d50908045b8b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 19 Aug 2020 03:32:10 -0600 Subject: [PATCH] tests: verify ttl is remapped to tunnel-ttl --- tests/fixtures/tunnel-ifupdown2.interfaces | 1 + tests/fixtures/tunnel-legacy.interfaces | 1 + tests/fixtures/tunnel.interfaces | 1 + tests/ifquery_test | 2 ++ 4 files changed, 5 insertions(+) diff --git a/tests/fixtures/tunnel-ifupdown2.interfaces b/tests/fixtures/tunnel-ifupdown2.interfaces index 4e93b91..f38e139 100644 --- a/tests/fixtures/tunnel-ifupdown2.interfaces +++ b/tests/fixtures/tunnel-ifupdown2.interfaces @@ -4,6 +4,7 @@ iface tun0 tunnel-endpoint 203.0.113.1 tunnel-mode gre tunnel-physdev eth0 + tunnel-ttl 255 address 203.0.113.10/30 gateway 203.0.113.9 diff --git a/tests/fixtures/tunnel-legacy.interfaces b/tests/fixtures/tunnel-legacy.interfaces index bb030bd..c20ecf7 100644 --- a/tests/fixtures/tunnel-legacy.interfaces +++ b/tests/fixtures/tunnel-legacy.interfaces @@ -4,6 +4,7 @@ iface tun0 endpoint 203.0.113.1 mode gre tunnel-dev eth0 + ttl 255 address 203.0.113.10/30 gateway 203.0.113.9 diff --git a/tests/fixtures/tunnel.interfaces b/tests/fixtures/tunnel.interfaces index 4bf46de..12a081b 100644 --- a/tests/fixtures/tunnel.interfaces +++ b/tests/fixtures/tunnel.interfaces @@ -4,6 +4,7 @@ iface tun0 tunnel-remote 203.0.113.1 tunnel-mode gre tunnel-dev eth0 + tunnel-ttl 255 address 203.0.113.10/30 gateway 203.0.113.9 diff --git a/tests/ifquery_test b/tests/ifquery_test index 79f9341..281f1e2 100755 --- a/tests/ifquery_test +++ b/tests/ifquery_test @@ -168,6 +168,7 @@ tunnel_legacy_rewrite_body() { -o match:"tunnel-local 203.0.113.2" \ -o match:"tunnel-remote 203.0.113.1" \ -o match:"tunnel-mode gre" \ + -o match:"tunnel-ttl 255" \ ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-legacy.interfaces tun0 } @@ -176,5 +177,6 @@ tunnel_ifupdown2_rewrite_body() { -o match:"tunnel-local 203.0.113.2" \ -o match:"tunnel-remote 203.0.113.1" \ -o match:"tunnel-mode gre" \ + -o match:"tunnel-ttl 255" \ ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-ifupdown2.interfaces tun0 }