Subject: | traceroute6 output from OSX says "traceroute6" not "traceroute" |
Date: | Thu, 5 Nov 2015 15:24:21 +0000 |
To: | bug-Net-Traceroute [...] rt.cpan.org |
From: | Brian Candler <b.candler [...] pobox.com> |
Net::Traceroute is unable to parse traceroute6 output from OSX, because
the informational line starts
"traceroute6 to ..."
rather than
"traceroute to ..."
The following patch fixes it:
--- /usr/share/perl5/vendor_perl/Net/Traceroute.pm.orig 2014-03-24
20:45:12.000000000 +0000
+++ /usr/share/perl5/vendor_perl/Net/Traceroute.pm 2015-11-05
15:23:20.747811118 +0000
@@ -574,7 +574,7 @@
# Some traceroutes appear to print informational line to stdout,
# and we don't care.
- /^traceroute to / && next;
+ /^traceroute6? to / && next;
# AIX 5L has to be different.
/^trying to get / && next;
Thanks
Brian Candler.