Page MenuHomeFreeBSD

D61607.1794885847.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61607.1794885847.diff

diff --git a/usr.sbin/traceroute6/traceroute6.8 b/usr.sbin/traceroute6/traceroute6.8
--- a/usr.sbin/traceroute6/traceroute6.8
+++ b/usr.sbin/traceroute6/traceroute6.8
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd August 16, 2026
+.Dd November 15, 2026
.Dt TRACEROUTE6 8
.Os
.\"
@@ -109,6 +109,9 @@
them, or if it is experiencing congestion
.Pq Dv 11 .
Otherwise, report that it passed the bits appropriately.
+The report is taken from the probe header quoted in the ICMPv6 error message
+sent by the hop, so there is none for a destination which answers an ICMPv6
+probe with an echo reply.
If
.Fl t
is also specified, the corresponding ECN bits will be replaced.
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -975,7 +975,9 @@
lastaddr = Rcv.sin6_addr;
}
printf(" %.3f ms", deltaT(&t1, &t2));
- if (ecnflag) {
+ /* An echo reply quotes no header. */
+ if (ecnflag &&
+ type != ICMP6_ECHO_REPLY) {
switch (ecn) {
case IPTOS_ECN_ECT1:
printf(" (ecn=passed)");

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 17, 3:24 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41792154
Default Alt Text
D61607.1794885847.diff (1 KB)

Event Timeline