From 01bd14fc90856cfbcf79268210a3426ef7747ba4 Mon Sep 17 00:00:00 2001 From: Alexandre Yang Date: Wed, 6 Nov 2024 18:40:48 +0100 Subject: [PATCH] [network path] Avoid reporting unknown_hop_X for successful hops (#30823) (cherry picked from commit 8de1e6b942bae9ea1f59d403e0fa92cbbd7b1074) --- pkg/networkpath/traceroute/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/networkpath/traceroute/runner.go b/pkg/networkpath/traceroute/runner.go index 316f2daa5a852..ef211ef98610c 100644 --- a/pkg/networkpath/traceroute/runner.go +++ b/pkg/networkpath/traceroute/runner.go @@ -266,6 +266,7 @@ func (r *Runner) processTCPResults(res *tcp.Results, hname string, destinationHo if !hop.IP.Equal(net.IP{}) { isReachable = true hopname = hop.IP.String() + hostname = hopname // setting to ip address for now, reverse DNS lookup will override hostname field later } npHop := payload.NetworkPathHop{