Move consts to Linux-specific file

Fixes #243
This commit is contained in:
Trevor Rosen 2017-09-15 15:12:01 -05:00 committed by Vish (Ishaya) Abrams
parent 619f36a9ae
commit 177f1ceba5
2 changed files with 8 additions and 10 deletions

View File

@ -2,8 +2,6 @@ package netlink
import ( import (
"fmt" "fmt"
"github.com/vishvananda/netlink/nl"
) )
type Filter interface { type Filter interface {
@ -184,14 +182,6 @@ func NewMirredAction(redirIndex int) *MirredAction {
} }
} }
// Constants used in TcU32Sel.Flags.
const (
TC_U32_TERMINAL = nl.TC_U32_TERMINAL
TC_U32_OFFSET = nl.TC_U32_OFFSET
TC_U32_VAROFFSET = nl.TC_U32_VAROFFSET
TC_U32_EAT = nl.TC_U32_EAT
)
// Sel of the U32 filters that contains multiple TcU32Key. This is the copy // Sel of the U32 filters that contains multiple TcU32Key. This is the copy
// and the frontend representation of nl.TcU32Sel. It is serialized into canonical // and the frontend representation of nl.TcU32Sel. It is serialized into canonical
// nl.TcU32Sel with the appropriate endianness. // nl.TcU32Sel with the appropriate endianness.

View File

@ -11,6 +11,14 @@ import (
"github.com/vishvananda/netlink/nl" "github.com/vishvananda/netlink/nl"
) )
// Constants used in TcU32Sel.Flags.
const (
TC_U32_TERMINAL = nl.TC_U32_TERMINAL
TC_U32_OFFSET = nl.TC_U32_OFFSET
TC_U32_VAROFFSET = nl.TC_U32_VAROFFSET
TC_U32_EAT = nl.TC_U32_EAT
)
// Fw filter filters on firewall marks // Fw filter filters on firewall marks
// NOTE: this is in filter_linux because it refers to nl.TcPolice which // NOTE: this is in filter_linux because it refers to nl.TcPolice which
// is defined in nl/tc_linux.go // is defined in nl/tc_linux.go