Skip to content

Commit

Permalink
fix: build failed on macos when use RT_FILTER_TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
xsnos-repo authored and vishvananda committed Mar 29, 2022
1 parent 8f52b0b commit 6bb6f8a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
18 changes: 18 additions & 0 deletions route.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ type Scope uint8

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 {
Family() int
Decode([]byte) error
Expand Down
17 changes: 0 additions & 17 deletions route_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
FLAG_ONLINK NextHopFlag = unix.RTNH_F_ONLINK
Expand Down

0 comments on commit 6bb6f8a

Please sign in to comment.