Bug 216472 - traceroute6 AS lookup sometimes reports [AS0]
Summary: traceroute6 AS lookup sometimes reports [AS0]
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 23:48 UTC by Mark Felder
Modified: 2020-10-11 20:12 UTC (History)
1 user (show)

See Also:


Attachments
Patch to address this bug in traceroute and traceroute6 (4.72 KB, patch)
2020-10-11 20:12 UTC, Archit Shah
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Felder freebsd_committer 2017-01-25 23:48:41 UTC
AS0 doesn't exist, of course

freefall% traceroute6 -a -w2 -n gw.feld.me
traceroute6 to gw.feld.me (2607:f4e0:901:fe1d::a) from
2610:1c1:1:6074::16:84, 64 hops max, 12 byte packets
 1  [AS11403] 2610:1c1::803  0.295 ms  0.354 ms  0.256 ms
 2  [AS11403] 2610:1c1::801  1.033 ms  0.993 ms  0.777 ms
 3  [AS11403] 2610:1c1::2401  0.722 ms  0.601 ms  0.462 ms
 4  [AS0] 2001:438:fffe::1b95  0.932 ms  0.688 ms  0.705 ms
 5  [AS0] 2001:438:ffff::407d:1fea  1.506 ms  1.503 ms  1.409 ms
 6  [AS0] 2001:438:ffff::407d:1445  1.765 ms  1.866 ms  1.843 ms
 7  [AS0] 2001:438:ffff::407d:1fd6  2.045 ms  1.844 ms  1.865 ms
 8  [AS0] 2001:438:ffff::407d:c06  4.699 ms  2.479 ms  2.911 ms
 9  [AS2914] 2001:418:0:2000::265  1.960 ms  2.032 ms  1.957 ms
10  [AS2914] 2001:418:0:2000::75  20.812 ms  22.830 ms  22.807 ms
11  [AS2914] 2001:418:0:2000::1c9  23.014 ms  21.071 ms  20.933 ms
12  [AS2914] 2001:418:0:5000::8fd  20.405 ms  18.382 ms  20.453 ms
13  [AS4150] 2607:f4e0:100:1ff::15  22.890 ms  23.335 ms  24.949 ms
14  [AS4150] 2607:f4e0:200:1ff::26  25.718 ms  29.043 ms  23.674 ms
15  * * *
16  * *^C
Comment 1 Archit Shah 2020-10-11 20:12:10 UTC
Created attachment 218670 [details]
Patch to address this bug in traceroute and traceroute6

The attached patch addresses this bug (for both traceroute and traceroute6) by not printing an AS number if one is not available (and as_lookup returns 0).  The assumption that AS=0 is not a valid ASN is consistent with RFC 7607. https://tools.ietf.org/html/rfc7607.

The patch incorporates the patch from bug #187526 which addresses AS lookup timeouts in traceroute.