summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-01-23 17:55:21 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-01-23 21:43:01 +0100
commit25c126c907e589e2eddcee265eb0418b5b517c47 (patch)
treec20ee713a009cacb3d5abf81f228e4286cefebc6
parentdd357236f156b3be8cc8e4de2787e4ba08f3c68c (diff)
go fmt
-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)