mirror of
https://github.com/vishvananda/netlink
synced 2025-02-17 20:47:12 +00:00
fix: build failed on macos when use RT_FILTER_TABLE
This commit is contained in:
parent
8f52b0b093
commit
6bb6f8abbc
18
route.go
18
route.go
@ -11,6 +11,24 @@ type Scope uint8
|
|||||||
|
|
||||||
type NextHopFlag int
|
type NextHopFlag int
|
||||||
|
|
||||||
|
const (
|
||||||
|
RT_FILTER_PROTOCOL uint64 = 1 << (1 + iota)
|
||||||
|
RT_FILTER_SCOPE
|
||||||
|
RT_FILTER_TYPE
|
||||||
|
RT_FILTER_TOS
|
||||||
|
RT_FILTER_IIF
|
||||||
|
RT_FILTER_OIF
|
||||||
|
RT_FILTER_DST
|
||||||
|
RT_FILTER_SRC
|
||||||
|
RT_FILTER_GW
|
||||||
|
RT_FILTER_TABLE
|
||||||
|
RT_FILTER_HOPLIMIT
|
||||||
|
RT_FILTER_PRIORITY
|
||||||
|
RT_FILTER_MARK
|
||||||
|
RT_FILTER_MASK
|
||||||
|
RT_FILTER_REALM
|
||||||
|
)
|
||||||
|
|
||||||
type Destination interface {
|
type Destination interface {
|
||||||
Family() int
|
Family() int
|
||||||
Decode([]byte) error
|
Decode([]byte) error
|
||||||
|
@ -41,23 +41,6 @@ func (s Scope) String() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
|
||||||
RT_FILTER_PROTOCOL uint64 = 1 << (1 + iota)
|
|
||||||
RT_FILTER_SCOPE
|
|
||||||
RT_FILTER_TYPE
|
|
||||||
RT_FILTER_TOS
|
|
||||||
RT_FILTER_IIF
|
|
||||||
RT_FILTER_OIF
|
|
||||||
RT_FILTER_DST
|
|
||||||
RT_FILTER_SRC
|
|
||||||
RT_FILTER_GW
|
|
||||||
RT_FILTER_TABLE
|
|
||||||
RT_FILTER_HOPLIMIT
|
|
||||||
RT_FILTER_PRIORITY
|
|
||||||
RT_FILTER_MARK
|
|
||||||
RT_FILTER_MASK
|
|
||||||
RT_FILTER_REALM
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FLAG_ONLINK NextHopFlag = unix.RTNH_F_ONLINK
|
FLAG_ONLINK NextHopFlag = unix.RTNH_F_ONLINK
|
||||||
|
Loading…
Reference in New Issue
Block a user