insomniacslk / dublin-traceroute

Dublin Traceroute is a NAT-aware multipath tracerouting tool
https://dublin-traceroute.net
BSD 2-Clause "Simplified" License
254 stars 56 forks source link

Add IPv6 support #5

Open insomniacslk opened 8 years ago

insomniacslk commented 8 years ago

Dublin Traceroute is only able to work on IPv4 networks. IPv6 support is required, as IPv4 is a legacy protocol.

insomniacslk commented 4 years ago

current status: IPv6 support is present in the Go implementation but not yet in the C++ one

marek22k commented 7 months ago

Are there any news in the meantime?

insomniacslk commented 7 months ago

@marek22k no one has worked on IPv6 support in the C++ implementation. Meanwhile, if you need that, please use the Go implementation

marek22k commented 7 months ago

I apologize if my question came across as rude - that was not my intention.

How do I install or build the Go version?

$ go version
go version go1.19.8 linux/amd64
$ go install github.com/insomniacslk/dublin-traceroute@latest
go: github.com/insomniacslk/dublin-traceroute@latest: module github.com/insomniacslk/dublin-traceroute@latest found (v0.4.2), but does not contain package github.com/insomniacslk/dublin-traceroute
$ git clone https://github.com/insomniacslk/dublin-traceroute.git
Cloning into 'dublin-traceroute'...
remote: Enumerating objects: 1899, done.
remote: Counting objects: 100% (220/220), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 1899 (delta 173), reused 186 (delta 160), pack-reused 1679
Receiving objects: 100% (1899/1899), 9.27 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (974/974), done.
$ cd dublin-traceroute/
$ go build
go: errors parsing go.mod:
/home/marek/dublin-traceroute/go.mod:5: unknown directive: toolchain
$ go build .
go: errors parsing go.mod:
/home/marek/dublin-traceroute/go.mod:5: unknown directive: toolchain
insomniacslk commented 7 months ago

Oh no worries, I didn't perceive it as rude.

go: errors parsing go.mod: /home/marek/dublin-traceroute/go.mod:5: unknown directive: toolchain

This is due to the new directive toolchain introduced in Go 1.21.

You can either update your Go version to 1.21 or above, or try removing that line manually from go.mod in the root of the repository before you build. Let me know if that works

marek22k commented 7 months ago

I have now tried it with a higher Go version:

$ go install github.com/insomniacslk/dublin-traceroute@latest
go: downloading github.com/insomniacslk/dublin-traceroute v0.4.2
go: github.com/insomniacslk/dublin-traceroute@latest: module github.com/insomniacslk/dublin-traceroute@latest found (v0.4.2), but does not contain package github.com/insomniacslk/dublin-traceroute
$ go version
go version go1.22.2 linux/amd64
insomniacslk commented 7 months ago

Oh, I'll have to fix that, I rarely use the go install route. Meanwhile can you try the following?

cd go/dublintraceroute/cmd/dublin-traceroute
go build
./dublin-traceroute --help

and let me know if that works for you?