Skip to content

Commit

Permalink
Pull in upstream kernel_setup_interface
Browse files Browse the repository at this point in the history
This pulls the latest version of the kernel_setup_interface function
in from upstream with the hope that it fixes some obscure issues we're
having.

setsockopt(IPV6_JOIN_GROUP): Out of memory
setsockopt(IPV6_LEAVE_GROUP): Address not available
Warning: cannot restore old configuration for wgA.
Warning: cannot save old configuration for wgB.

We keep seeing these sorts of error messages on long running production
nodes, presumably due to the race condition outlined here

sudomesh/bugs#24

Obviously it would be best if we could recover from these errors in
Babel rather than having to try and reduce them on the side of the
interfacing application.

That being said this isn't a well consdiered change, it may be that we
have to cleanup old_if in this error case in a way upstream has not
considered.
  • Loading branch information
jkilpatr authored and thosmos committed Aug 13, 2021
1 parent 55727ea commit a3b5a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ get_old_if(const char *ifname)
int
kernel_setup_interface(int setup, const char *ifname, int ifindex)
{

char buf[100];
int i, rc;

Expand Down

0 comments on commit a3b5a4b

Please sign in to comment.