ipv4: move unexposed error values into helper.go

Change-Id: I86f7d9e18f9d51f0a92ce32690a9c4aab1c79ab4
Reviewed-on: https://go-review.googlesource.com/16320
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Mikio Hara
2015-10-26 12:23:16 +09:00
parent 5627bad10b
commit cf6265fb6d
2 changed files with 5 additions and 9 deletions

View File

@@ -5,7 +5,6 @@
package ipv4
import (
"errors"
"fmt"
"net"
"runtime"
@@ -13,14 +12,6 @@ import (
"unsafe"
)
var (
errMissingAddress = errors.New("missing address")
errMissingHeader = errors.New("missing header")
errHeaderTooShort = errors.New("header too short")
errBufferTooShort = errors.New("buffer too short")
errInvalidConnType = errors.New("invalid conn type")
)
const (
Version = 4 // protocol version
HeaderLen = 20 // header length without extension headers

View File

@@ -10,6 +10,11 @@ import (
)
var (
errMissingAddress = errors.New("missing address")
errMissingHeader = errors.New("missing header")
errHeaderTooShort = errors.New("header too short")
errBufferTooShort = errors.New("buffer too short")
errInvalidConnType = errors.New("invalid conn type")
errOpNoSupport = errors.New("operation not supported")
errNoSuchInterface = errors.New("no such interface")
errNoSuchMulticastInterface = errors.New("no such multicast interface")