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 }