diff --git a/address.go b/address.go index d64b6f9..b938029 100644 --- a/address.go +++ b/address.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/address_test.go b/address_test.go index 7dec1de..7b1244a 100644 --- a/address_test.go +++ b/address_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink/nlenc" ) diff --git a/conn.go b/conn.go index 048a624..7bde518 100644 --- a/conn.go +++ b/conn.go @@ -4,7 +4,7 @@ import ( "encoding" "time" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/driver/bond.go b/driver/bond.go index f952153..d612541 100644 --- a/driver/bond.go +++ b/driver/bond.go @@ -4,8 +4,8 @@ import ( "fmt" "net" - "github.com/jsimonetti/rtnetlink" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/driver/bond_live_test.go b/driver/bond_live_test.go index d6b853b..ffd8d8b 100644 --- a/driver/bond_live_test.go +++ b/driver/bond_live_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "github.com/mdlayher/netlink" ) diff --git a/driver/driver.go b/driver/driver.go index 0566274..0693463 100644 --- a/driver/driver.go +++ b/driver/driver.go @@ -1,7 +1,7 @@ package driver import ( - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // init registers predefined drivers with the rtnetlink package. diff --git a/driver/driver_test.go b/driver/driver_test.go index d918e2c..054571d 100644 --- a/driver/driver_test.go +++ b/driver/driver_test.go @@ -9,7 +9,7 @@ import ( "os/exec" "testing" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/driver/netkit.go b/driver/netkit.go index 1323257..8e12b8b 100644 --- a/driver/netkit.go +++ b/driver/netkit.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/jsimonetti/rtnetlink" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/driver/netkit_live_test.go b/driver/netkit_live_test.go index fcdc8e4..9b67a9a 100644 --- a/driver/netkit_live_test.go +++ b/driver/netkit_live_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "github.com/mdlayher/netlink" ) diff --git a/driver/veth.go b/driver/veth.go index 5d58643..a3c3801 100644 --- a/driver/veth.go +++ b/driver/veth.go @@ -3,7 +3,7 @@ package driver import ( "fmt" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "github.com/mdlayher/netlink" ) diff --git a/driver/veth_live_test.go b/driver/veth_live_test.go index 09dbb61..92e00be 100644 --- a/driver/veth_live_test.go +++ b/driver/veth_live_test.go @@ -6,7 +6,7 @@ package driver import ( "testing" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "github.com/mdlayher/netlink" ) diff --git a/example_address_add_test.go b/example_address_add_test.go index 6891271..99f315d 100644 --- a/example_address_add_test.go +++ b/example_address_add_test.go @@ -8,7 +8,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_address_del_test.go b/example_address_del_test.go index 4fe3ad9..159acba 100644 --- a/example_address_del_test.go +++ b/example_address_del_test.go @@ -8,7 +8,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_address_list_test.go b/example_address_list_test.go index 7cf4a46..2abad7d 100644 --- a/example_address_list_test.go +++ b/example_address_list_test.go @@ -7,7 +7,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_link_list_test.go b/example_link_list_test.go index 1b5fd92..e7a6463 100644 --- a/example_link_list_test.go +++ b/example_link_list_test.go @@ -3,7 +3,7 @@ package rtnetlink_test import ( "log" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // List all interfaces diff --git a/example_link_setdown_test.go b/example_link_setdown_test.go index e5bc0b6..d5e3cc2 100644 --- a/example_link_setdown_test.go +++ b/example_link_setdown_test.go @@ -4,7 +4,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // Set the operational state an interface to Down diff --git a/example_link_sethwaddr_test.go b/example_link_sethwaddr_test.go index acc25b9..c3a33f1 100644 --- a/example_link_sethwaddr_test.go +++ b/example_link_sethwaddr_test.go @@ -4,7 +4,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // Set the hw address of an interface diff --git a/example_link_setup_test.go b/example_link_setup_test.go index acb99cc..745c9e3 100644 --- a/example_link_setup_test.go +++ b/example_link_setup_test.go @@ -7,7 +7,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_neigh_list_test.go b/example_neigh_list_test.go index 2d3620d..7ac8a4d 100644 --- a/example_neigh_list_test.go +++ b/example_neigh_list_test.go @@ -7,7 +7,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_route_add_test.go b/example_route_add_test.go index 717c274..5548c9a 100644 --- a/example_route_add_test.go +++ b/example_route_add_test.go @@ -7,7 +7,7 @@ import ( "log" "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "golang.org/x/sys/unix" ) diff --git a/example_rule_list_test.go b/example_rule_list_test.go index 02647ce..0d7dae4 100644 --- a/example_rule_list_test.go +++ b/example_rule_list_test.go @@ -3,7 +3,7 @@ package rtnetlink_test import ( "log" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // List all rules diff --git a/go.mod b/go.mod index e048cc0..b5f55e3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/jsimonetti/rtnetlink +module github.com/jsimonetti/rtnetlink/v2 go 1.20 diff --git a/link.go b/link.go index dd95cee..634d8ef 100644 --- a/link.go +++ b/link.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/neigh.go b/neigh.go index 543889c..1394b38 100644 --- a/neigh.go +++ b/neigh.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/neigh_test.go b/neigh_test.go index 8f5b22b..25c69ff 100644 --- a/neigh_test.go +++ b/neigh_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" ) // Tests will only pass on little endian machines diff --git a/netns.go b/netns.go index 0f2fb3c..1e9a8d8 100644 --- a/netns.go +++ b/netns.go @@ -4,7 +4,7 @@ import ( "os" "path/filepath" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" ) // NetNS represents a Linux network namespace diff --git a/route.go b/route.go index 28a6f16..5b70c68 100644 --- a/route.go +++ b/route.go @@ -7,7 +7,7 @@ import ( "net" "unsafe" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" ) diff --git a/route_test.go b/route_test.go index 620f7ee..af5cf32 100644 --- a/route_test.go +++ b/route_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" ) // Tests will only pass on little endian machines diff --git a/rtnl/addr.go b/rtnl/addr.go index 29f921d..c6a912a 100644 --- a/rtnl/addr.go +++ b/rtnl/addr.go @@ -3,9 +3,9 @@ package rtnl import ( "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // AddrAdd associates an IP-address with an interface. diff --git a/rtnl/conn.go b/rtnl/conn.go index 60d0ab4..93d1936 100644 --- a/rtnl/conn.go +++ b/rtnl/conn.go @@ -2,7 +2,7 @@ package rtnl import ( - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" "github.com/mdlayher/netlink" ) diff --git a/rtnl/link.go b/rtnl/link.go index 1b96feb..8e6b32f 100644 --- a/rtnl/link.go +++ b/rtnl/link.go @@ -3,9 +3,9 @@ package rtnl import ( "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // Links return the list of interfaces available on the system. diff --git a/rtnl/neigh.go b/rtnl/neigh.go index f43ba92..8705bba 100644 --- a/rtnl/neigh.go +++ b/rtnl/neigh.go @@ -3,7 +3,7 @@ package rtnl import ( "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // Neigh represents a neighbour table entry (e.g. an entry in the ARP table) diff --git a/rtnl/route.go b/rtnl/route.go index e785141..c543264 100644 --- a/rtnl/route.go +++ b/rtnl/route.go @@ -5,9 +5,9 @@ import ( "fmt" "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // Route represents a route table entry diff --git a/rtnl/route_options.go b/rtnl/route_options.go index 26ddf59..637fac7 100644 --- a/rtnl/route_options.go +++ b/rtnl/route_options.go @@ -3,7 +3,7 @@ package rtnl import ( "net" - "github.com/jsimonetti/rtnetlink" + "github.com/jsimonetti/rtnetlink/v2" ) // RouteOptions is the functional options struct diff --git a/rule.go b/rule.go index 9d62b4f..6e35d8a 100644 --- a/rule.go +++ b/rule.go @@ -6,7 +6,7 @@ import ( "errors" "net" - "github.com/jsimonetti/rtnetlink/internal/unix" + "github.com/jsimonetti/rtnetlink/v2/internal/unix" "github.com/mdlayher/netlink" )