Scenario:
mtr some-address
now our machine gets kicked out out wifi AP or network is restarted. mtr will, in such case (kicked out of AP; so for some short time it has no ip address assigned), exit with "Address not available" error.
But IMO if it mtr was started and was working for some time and only then "Address not available" happened then it shouldn't stop but instead just report failed packets.
Failure was introduced by @matt-kimball in commit 4149c2c
Maybe just revert that part:
diff --git a/ui/cmdpipe.c b/ui/cmdpipe.c
index 81acb9c..10de21d 100644
--- a/ui/cmdpipe.c
+++ b/ui/cmdpipe.c
@@ -663,11 +663,6 @@ void handle_reply_errors(
error(EXIT_FAILURE, 0, "Address in use");
}
- if (!strcmp(reply_name, "address-not-available")) {
- display_close(ctl);
- error(EXIT_FAILURE, 0, "Address not available");
- }
-
if (!strcmp(reply_name, "unexpected-error")) {
display_close(ctl);
error(EXIT_FAILURE, 0, "Unexpected mtr-packet error");
or add some if (only if this error comes up for first packet) then fail?
Scenario:
mtr some-address
now our machine gets kicked out out wifi AP or network is restarted. mtr will, in such case (kicked out of AP; so for some short time it has no ip address assigned), exit with "Address not available" error.
But IMO if it mtr was started and was working for some time and only then "Address not available" happened then it shouldn't stop but instead just report failed packets.
Failure was introduced by @matt-kimball in commit 4149c2c
Maybe just revert that part:
or add some if (only if this error comes up for first packet) then fail?