netlink/xfrm_unspecified.go
Tobias Klauser 77df5d35f7 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.
2023-10-24 10:58:52 -07:00

8 lines
102 B
Go

//go:build !linux
// +build !linux
package netlink
type XfrmPolicy struct{}
type XfrmState struct{}