diff --git a/netlink_android.go b/netlink_android.go deleted file mode 100644 index 0762526..0000000 --- a/netlink_android.go +++ /dev/null @@ -1,8 +0,0 @@ -// +build android - -package libp2pquic - -import "golang.org/x/sys/unix" - -// Android doesn't allow netlink_xfrm and netlink_netfilter in his base policy -var SupportedNlFamilies = []int{unix.NETLINK_ROUTE} diff --git a/netlink_linux.go b/netlink_linux.go new file mode 100644 index 0000000..a5f6ffe --- /dev/null +++ b/netlink_linux.go @@ -0,0 +1,10 @@ +// +build linux + +package libp2pquic + +import "golang.org/x/sys/unix" + +// We just need netlink_route here. +// note: We should avoid the use of netlink_xfrm or netlink_netfilter has it is +// not allowed by Android in his base policy. +var SupportedNlFamilies = []int{unix.NETLINK_ROUTE} diff --git a/netlink_other.go b/netlink_other.go index 47cc9d6..58ad3ca 100644 --- a/netlink_other.go +++ b/netlink_other.go @@ -1,4 +1,4 @@ -// +build !android +// +build !linux package libp2pquic