From 6f528b08883822d2a2f9da8b84fb26de0fb59516 Mon Sep 17 00:00:00 2001
From: Erik Auerswald <auerswal@unix-ag.uni-kl.de>
Date: Sun, 1 May 2022 17:42:35 +0200
Subject: [PATCH 7/8] Allow error messages when sending to fe80:0:0:1::

Linux installs fe80::/64 routes when an interface has an IPv6
link-local address.  It does not install a route for the whole
IPv6 link-local prefix fe80::/10.  Thus on systems without an
IPv6 default route, sending a packet to fe80:0:0:1::, which is
outside of fe80::/64, results in an error message.

Since this test is intended to verify generator operation when
crossing the 64-bit boundary inside an IPv6 address, but not
necessarily that the system can send a packet to that destination,
a non-empty `stderr` can be accepted.

Additionally, other tests generated addresses inside fe80::/64
and those tests still require an empty `stderr`.
---
 ci/test-06-options-f-h.pl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ci/test-06-options-f-h.pl b/ci/test-06-options-f-h.pl
index 529a33e..2fcc8b8 100755
--- a/ci/test-06-options-f-h.pl
+++ b/ci/test-06-options-f-h.pl
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
-use Test::Command tests => 136;
+use Test::Command tests => 135;
 use Test::More;
 use File::Temp;
 
@@ -177,7 +177,6 @@ SKIP: {
     my $cmd = Test::Command->new(cmd => "fping -t 100 -r 0 -g fe80::ffff:ffff:ffff:ffff fe80:0:0:1::");
     $cmd->stdout_like(qr{fe80::ffff:ffff:ffff:ffff is (alive|unreachable)\n});
     $cmd->stdout_like(qr{fe80:0:0:1:: is (alive|unreachable)\n});
-    $cmd->stderr_is_eq("");
 }
 
 # fping -g (empty IPv6 range)
-- 
2.25.1

