summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-16 17:46:37 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-16 17:46:37 +0000
commit057e6febbc5e894781252947c0d4085c15fc5383 (patch)
tree75c425bb99d0851f9dc1f6b6d283ebe37dea0e82 /pkg/tcpip/tcpip.go
parent0be02c43788aa16ed22b2cd5094ec21272849e28 (diff)
parentfbfcf8144c1f3deafe13dd3ed6afdb4de0b7c1fd (diff)
Merge release-20201005.0-89-gfbfcf8144 (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index c42bb0991..d77848d61 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -111,6 +111,7 @@ var (
ErrBroadcastDisabled = &Error{msg: "broadcast socket option disabled"}
ErrNotPermitted = &Error{msg: "operation not permitted"}
ErrAddressFamilyNotSupported = &Error{msg: "address family not supported by protocol"}
+ ErrMalformedHeader = &Error{msg: "header is malformed"}
)
var messageToError map[string]*Error
@@ -159,6 +160,7 @@ func StringToError(s string) *Error {
ErrBroadcastDisabled,
ErrNotPermitted,
ErrAddressFamilyNotSupported,
+ ErrMalformedHeader,
}
messageToError = make(map[string]*Error)