This repository has been archived by the owner on May 26, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there !
I work at Berty and actually use this lib along with libp2p on mobile.
Since a recent change and more particularly since the introduction of netlink for the reuse port, we can't use this lib anymore on Android.
Android doesn't allow netlink_xfrm & netlink_nflog in his base policy in enforce mode (see here).
this cause a permission denied when NewTransport method is called on android:
However it's look like that only netlink route is needed, so we tried to limit netlink
families support on android build to NETLINK_ROUTE only when netlink.NewHandle is called, it seems good enough in our case and don’t cause any error anymore! 😄
I know you have no need to support android, but this change should not impact you since it will only build on android. Also, to be honnest, i'm not sure I understand all the implication of this change, it’s maybe not the good way to go, I’d like your advice on the subject.