Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
fix(netlink): limit netlink families to NETLINK_ROUTE on linux
Browse files Browse the repository at this point in the history
instead of android only.
  • Loading branch information
gfanton committed Aug 30, 2019
1 parent 82673e2 commit 86748ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 0 additions & 8 deletions netlink_android.go

This file was deleted.

10 changes: 10 additions & 0 deletions netlink_linux.go
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion netlink_other.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !android
// +build !linux

package libp2pquic

Expand Down

0 comments on commit 86748ad

Please sign in to comment.