mirror of https://github.com/vishvananda/netlink
parent
619f36a9ae
commit
177f1ceba5
10
filter.go
10
filter.go
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue