diff options
-rw-r--r-- | pkg/tcpip/link/tunnel/gre.go (renamed from pkg/tcpip/link/gre/gre.go) | 2 | ||||
-rw-r--r-- | pkg/tcpip/sample/tun_tcp_connect/main.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tcpip/link/gre/gre.go b/pkg/tcpip/link/tunnel/gre.go index 38d281e86..8f6f1649a 100644 --- a/pkg/tcpip/link/gre/gre.go +++ b/pkg/tcpip/link/tunnel/gre.go @@ -1,4 +1,4 @@ -package gre +package tunnel import ( "context" diff --git a/pkg/tcpip/sample/tun_tcp_connect/main.go b/pkg/tcpip/sample/tun_tcp_connect/main.go index 0ce9f49af..a1a818a6c 100644 --- a/pkg/tcpip/sample/tun_tcp_connect/main.go +++ b/pkg/tcpip/sample/tun_tcp_connect/main.go @@ -55,10 +55,10 @@ import ( "gvisor.dev/gvisor/pkg/tcpip/buffer" "gvisor.dev/gvisor/pkg/tcpip/header" "gvisor.dev/gvisor/pkg/tcpip/link/fdbased" - gretun "gvisor.dev/gvisor/pkg/tcpip/link/gre" "gvisor.dev/gvisor/pkg/tcpip/link/rawfile" "gvisor.dev/gvisor/pkg/tcpip/link/sniffer" "gvisor.dev/gvisor/pkg/tcpip/link/tun" + "gvisor.dev/gvisor/pkg/tcpip/link/tunnel" "gvisor.dev/gvisor/pkg/tcpip/network/ipv4" "gvisor.dev/gvisor/pkg/tcpip/stack" "gvisor.dev/gvisor/pkg/tcpip/transport/gre" @@ -162,7 +162,7 @@ func main() { log.Fatal(err) } - greEP := gretun.New(mtu - 24) + greEP := tunnel.New(mtu - 24) if err := s.CreateNIC(2, sniffer.New(greEP)); err != nil { log.Fatal(err) } |