summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-05-22 15:25:25 +0000
committerpatrick <patrick@openbsd.org>2019-05-22 15:25:25 +0000
commit3e99d2271b1c09c8e6d645f4d046174c5170e96f (patch)
tree54575392ae58df524833e793d5c85960ca3b1abc
parentmention that using vi command line editing mode requires enabling it; (diff)
downloadwireguard-openbsd-3e99d2271b1c09c8e6d645f4d046174c5170e96f.tar.xz
wireguard-openbsd-3e99d2271b1c09c8e6d645f4d046174c5170e96f.zip
Print the bwfm(4)'s ethernet address on attach.
-rw-r--r--sys/dev/ic/bwfm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c
index 6b8abba7eb1..622a4ffb751 100644
--- a/sys/dev/ic/bwfm.c
+++ b/sys/dev/ic/bwfm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwfm.c,v 1.61 2019/05/22 15:23:01 patrick Exp $ */
+/* $OpenBSD: bwfm.c,v 1.62 2019/05/22 15:25:25 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
@@ -251,6 +251,8 @@ bwfm_preinit(struct bwfm_softc *sc)
return 1;
}
+ printf("%s: address %s\n", DEVNAME(sc), ether_sprintf(ic->ic_myaddr));
+
if (bwfm_fwvar_var_get_int(sc, "nmode", &nmode))
nmode = 0;
if (bwfm_fwvar_var_get_int(sc, "vhtmode", &vhtmode))