Registry / networking / libp2p-go-netroute

libp2p-go-netroute

JSON →
library0.4.0gogounverified

A Go library for network routing table lookups, originally derived from Google's gopacket.

go get github.com/libp2p/go-netroute
INSTALL
IMPORT
SIG · LIBP2P-GO-NETROUTE
L
libp2p-go-netroute
networkinggov0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

netroute
github.com/libp2p/go-netroute

Creates a new router and looks up the route for an IP address.

package main import ( "fmt" "net" "github.com/libp2p/go-netroute" ) func main() { r, err := netroute.New() if err != nil { panic(err) } _, _, _, err = r.Route(net.IPv4(8, 8, 8, 8)) if err != nil { panic(err) } fmt.Println("Route found") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
libp2p-go-netroute — go get libp2p-go-netroute · libregistry