Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change import paths to github.com/tailscale/netlink #2

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ before_script:
- sudo modprobe sch_sfq
install:
- go get -v -t ./...
go_import_path: github.com/vishvananda/netlink
go_import_path: github.com/tailscale/netlink
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $(call goroot,$(DEPS)):

.PHONY: $(call testdirs,$(DIRS))
$(call testdirs,$(DIRS)):
go test -test.exec sudo -test.parallel 4 -timeout 60s -test.v github.com/vishvananda/netlink/$@
go test -test.exec sudo -test.parallel 4 -timeout 60s -test.v github.com/tailscale/netlink/$@

$(call fmt,$(call testdirs,$(DIRS))):
! gofmt -l $(subst fmt-,,$@)/*.go | grep -q .
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netlink - netlink library for go #

[![Build Status](https://app.travis-ci.com/vishvananda/netlink.svg?branch=master)](https://app.travis-ci.com/github/vishvananda/netlink) [![GoDoc](https://godoc.org/github.com/vishvananda/netlink?status.svg)](https://godoc.org/github.com/vishvananda/netlink)
[![Build Status](https://app.travis-ci.com/vishvananda/netlink.svg?branch=master)](https://app.travis-ci.com/github/vishvananda/netlink) [![GoDoc](https://godoc.org/github.com/tailscale/netlink?status.svg)](https://godoc.org/github.com/tailscale/netlink)

The netlink package provides a simple netlink library for go. Netlink
is the interface a user-space program in linux uses to communicate with
Expand All @@ -20,15 +20,15 @@ functionality like ipsec xfrm handling.

You can use go get command:

go get github.com/vishvananda/netlink
go get github.com/tailscale/netlink

Testing dependencies:

go get github.com/vishvananda/netns

Testing (requires root):

sudo -E go test github.com/vishvananda/netlink
sudo -E go test github.com/tailscale/netlink

## Examples ##

Expand All @@ -39,7 +39,7 @@ package main

import (
"fmt"
"github.com/vishvananda/netlink"
"github.com/tailscale/netlink"
)

func main() {
Expand All @@ -66,7 +66,7 @@ Add a new ip address to loopback:
package main

import (
"github.com/vishvananda/netlink"
"github.com/tailscale/netlink"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion addr_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion bridge_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package netlink
import (
"fmt"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion class_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/ipset-test/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package main
Expand All @@ -10,7 +11,7 @@ import (
"os"
"sort"

"github.com/vishvananda/netlink"
"github.com/tailscale/netlink"
)

type command struct {
Expand Down
2 changes: 1 addition & 1 deletion conntrack_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net"
"time"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
3 changes: 2 additions & 1 deletion conntrack_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand All @@ -11,7 +12,7 @@ import (
"testing"
"time"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion devlink_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
5 changes: 3 additions & 2 deletions filter_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -53,7 +53,8 @@ func (filter *U32) Type() string {

// Fw filter filters on firewall marks
// NOTE: this is in filter_linux because it refers to nl.TcPolice which
// is defined in nl/tc_linux.go
//
// is defined in nl/tc_linux.go
type Fw struct {
FilterAttrs
ClassId uint32
Expand Down
3 changes: 2 additions & 1 deletion fou_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand All @@ -6,7 +7,7 @@ import (
"encoding/binary"
"errors"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion genetlink_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion gtp_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion handle_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
3 changes: 2 additions & 1 deletion handle_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand All @@ -14,7 +15,7 @@ import (
"time"
"unsafe"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion ipset_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion ipset_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"testing"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion link_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"syscall"
"unsafe"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
3 changes: 2 additions & 1 deletion link_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand All @@ -12,7 +13,7 @@ import (
"testing"
"time"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion neigh_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"syscall"
"unsafe"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion netlink_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package netlink

import "github.com/vishvananda/netlink/nl"
import "github.com/tailscale/netlink/nl"

// Family type definitions
const (
Expand Down
2 changes: 1 addition & 1 deletion netns_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package netlink
import (
"fmt"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion order.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package netlink
import (
"encoding/binary"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion protinfo_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion qdisc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
3 changes: 2 additions & 1 deletion rdma_link_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -307,6 +307,7 @@ func (h *Handle) RdmaLinkDel(name string) error {

// RdmaLinkAdd adds an rdma link for the specified type to the network device.
// Similar to: rdma link add NAME type TYPE netdev NETDEV
//
// NAME - specifies the new name of the rdma link to add
// TYPE - specifies which rdma type to use. Link types:
// rxe - Soft RoCE driver
Expand Down
2 changes: 1 addition & 1 deletion route_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
3 changes: 2 additions & 1 deletion route_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand All @@ -8,7 +9,7 @@ import (
"testing"
"time"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion rule_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion socket_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"syscall"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion xfrm_monitor_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package netlink
import (
"fmt"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
Expand Down
3 changes: 2 additions & 1 deletion xfrm_monitor_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
//go:build linux
// +build linux

package netlink

import (
"testing"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
)

func TestXfrmMonitorExpire(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion xfrm_policy_linux.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package netlink

import (
"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion xfrm_state_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"unsafe"

"github.com/vishvananda/netlink/nl"
"github.com/tailscale/netlink/nl"
"golang.org/x/sys/unix"
)

Expand Down