aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-04-18 18:15:49 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-18 18:29:39 -0600
commit5d51892f7be55f94b91cfa631293fac08a612d78 (patch)
tree12f7c277692c75edb5b07f272b00a2e9c167f477
parentif_wg: rewrite and clarify socket binding (diff)
downloadwireguard-freebsd-5d51892f7be55f94b91cfa631293fac08a612d78.tar.xz
wireguard-freebsd-5d51892f7be55f94b91cfa631293fac08a612d78.zip
if_wg: warn when we can't bind to sockets
This currently happens when there's no configured address in that family inside of the jail. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/if_wg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 9e3e95c..6f4d225 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -2969,6 +2969,7 @@ wg_up(struct wg_softc *sc)
if_link_state_change(sc->sc_ifp, LINK_STATE_UP);
} else {
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
+ DPRINTF(sc, "Unable to initialize sockets: %d\n", rc);
}
out:
sx_xunlock(&sc->sc_lock);