mirror of
https://github.com/vishvananda/netlink.git
synced 2025-10-05 07:46:51 +08:00
Make xfrm linux-only
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.
This commit is contained in:

committed by
Alessandro Boch

parent
ccef072df0
commit
77df5d35f7
7
xfrm_unspecified.go
Normal file
7
xfrm_unspecified.go
Normal file
@@ -0,0 +1,7 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package netlink
|
||||
|
||||
type XfrmPolicy struct{}
|
||||
type XfrmState struct{}
|
Reference in New Issue
Block a user