scion-utils: fix traceroute output for intermediate hops
Output the `IA,IP_hop` of the intermediate hops, not `IA,IP_local`
Output the IP address of the hop that is replying to the traceroute, not
the local IP on which the reply was received.
Fixes
Closes
@@ -289,7 +289,7 @@ func (h scmpHandler) Handle(pkt *snet.Packet) error {
Reply: r,
Remote: &snet.UDPAddr{
IA: pkt.Source.IA,
- Host: &net.UDPAddr{IP: pkt.Destination.Host.IP()},
+ Host: &net.UDPAddr{IP: pkt.Source.Host.IP()},
Path: pkt.Path.Copy(),
},
Error: err,
