Skip to content

Commit

Permalink
Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jun 14, 2024
1 parent 3c36d30 commit 3db7a34
Show file tree
Hide file tree
Showing 57 changed files with 76 additions and 79 deletions.
2 changes: 1 addition & 1 deletion alignedbuff/alignedbuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"unsafe"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
)

// ErrEOF signals trying to read beyond the available payload information.
Expand Down
2 changes: 1 addition & 1 deletion chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"math"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion compat_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nftables
import (
"fmt"

"github.com/google/nftables/expr"
"github.com/sagernet/nftables/expr"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions compat_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package nftables
import (
"testing"

"github.com/google/nftables/expr"
"github.com/google/nftables/xt"
"github.com/sagernet/nftables/expr"
"github.com/sagernet/nftables/xt"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"os"
"sync"

"github.com/google/nftables/binaryutil"
"github.com/google/nftables/expr"
"github.com/sagernet/nftables/binaryutil"
"github.com/sagernet/nftables/expr"
"github.com/mdlayher/netlink"
"github.com/mdlayher/netlink/nltest"
E "github.com/sagernet/sing/common/exceptions"
Expand Down
2 changes: 1 addition & 1 deletion counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package nftables

import (
"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/bitwise.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/byteorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/connlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/ct.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/dup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
4 changes: 2 additions & 2 deletions expr/dynset.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"encoding/binary"
"time"

"github.com/google/nftables/binaryutil"
"github.com/google/nftables/internal/parseexprfunc"
"github.com/sagernet/nftables/binaryutil"
"github.com/sagernet/nftables/internal/parseexprfunc"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
4 changes: 2 additions & 2 deletions expr/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/google/nftables/internal/parseexprfunc"
"github.com/sagernet/nftables/binaryutil"
"github.com/sagernet/nftables/internal/parseexprfunc"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/exthdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/fib.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/immediate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"errors"
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
4 changes: 2 additions & 2 deletions expr/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/google/nftables/xt"
"github.com/sagernet/nftables/binaryutil"
"github.com/sagernet/nftables/xt"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/google/nftables/xt"
"github.com/sagernet/nftables/xt"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/numgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/objref.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/reject.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/rt.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
4 changes: 2 additions & 2 deletions expr/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/google/nftables/xt"
"github.com/sagernet/nftables/binaryutil"
"github.com/sagernet/nftables/xt"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/google/nftables/xt"
"github.com/sagernet/nftables/xt"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/tproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package expr
import (
"encoding/binary"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion expr/verdict.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion flowtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/nftables/binaryutil"
"github.com/sagernet/nftables/binaryutil"
"github.com/mdlayher/netlink"
"golang.org/x/sys/unix"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/google/nftables
module github.com/sagernet/nftables

go 1.18

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

"github.com/google/nftables"
"github.com/sagernet/nftables"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/nftest/system_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"runtime"
"testing"

"github.com/google/nftables"
"github.com/sagernet/nftables"
"github.com/vishvananda/netns"
)

Expand Down
6 changes: 3 additions & 3 deletions monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"sync/atomic"
"testing"

"github.com/google/nftables"
"github.com/google/nftables/expr"
"github.com/google/nftables/internal/nftest"
"github.com/sagernet/nftables"
"github.com/sagernet/nftables/expr"
"github.com/sagernet/nftables/internal/nftest"
)

func ExampleNewMonitor() {
Expand Down
Loading

0 comments on commit 3db7a34

Please sign in to comment.