From 56457bfaa49eb6fbb7a33d7092d9c636b9c85895 Mon Sep 17 00:00:00 2001 From: Tim Gossett Date: Fri, 9 Sep 2022 17:30:51 -0400 Subject: [PATCH] afpacket: fix NewPacketSource params GOOS!=linux (#120) fix NewPacketSource params GOOS!=linux --- pkg/packet/afpacket/readwriter_other.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/packet/afpacket/readwriter_other.go b/pkg/packet/afpacket/readwriter_other.go index 12c9c0d..301c4a9 100644 --- a/pkg/packet/afpacket/readwriter_other.go +++ b/pkg/packet/afpacket/readwriter_other.go @@ -1,3 +1,4 @@ +//go:build !linux // +build !linux package afpacket @@ -16,7 +17,7 @@ type Source struct{} // Assert that AfPacketSource conforms to the packet.ReadWriter interface var _ packet.ReadWriter = (*Source)(nil) -func NewPacketSource(iface string) (*Source, error) { +func NewPacketSource(iface string, vpnMode bool) (*Source, error) { return nil, ErrOS }