summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/header/gre.go2
-rw-r--r--pkg/tcpip/link/gre/gre.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/tcpip/header/gre.go b/pkg/tcpip/header/gre.go
index 6b85ecf6e..33d69c3bf 100644
--- a/pkg/tcpip/header/gre.go
+++ b/pkg/tcpip/header/gre.go
@@ -7,7 +7,7 @@ import (
)
const (
- greProtocolType = 2
+ greProtocolType = 2
)
// GRE represents a GRE header stored in a byte array.
diff --git a/pkg/tcpip/link/gre/gre.go b/pkg/tcpip/link/gre/gre.go
index d177c3648..bb3e69604 100644
--- a/pkg/tcpip/link/gre/gre.go
+++ b/pkg/tcpip/link/gre/gre.go
@@ -1,17 +1,17 @@
package gre
import (
+ "log"
"math"
"net"
- "log"
"os"
"gvisor.dev/gvisor/pkg/tcpip"
"gvisor.dev/gvisor/pkg/tcpip/header"
"gvisor.dev/gvisor/pkg/tcpip/link/channel"
"gvisor.dev/gvisor/pkg/tcpip/network/ipv4"
- "gvisor.dev/gvisor/pkg/tcpip/transport/raw"
"gvisor.dev/gvisor/pkg/tcpip/stack"
+ "gvisor.dev/gvisor/pkg/tcpip/transport/raw"
"gvisor.dev/gvisor/pkg/waiter"
)
@@ -23,7 +23,7 @@ type Endpoint struct {
type writer Endpoint
-func New(mtu uint32) *Endpoint{
+func New(mtu uint32) *Endpoint {
var linkAddress tcpip.LinkAddress
ch := channel.New(SIZE, mtu, linkAddress)