mirror of
https://github.com/vishvananda/netlink
synced 2024-12-27 09:02:16 +00:00
77df5d35f7
The xfrm framework is linux-only. Only implement the respective types for GOOS=linux to avoid dependencies to x/sys/unix on non-linux or non-unix platforms. Provide dummy XfrmPolicy and XfrmState types for the globally defined XfrmPolicy* and XfrmState* functions.
8 lines
102 B
Go
8 lines
102 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package netlink
|
|
|
|
type XfrmPolicy struct{}
|
|
type XfrmState struct{}
|