summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2016-11-02 01:29:43 +0000
committervisa <visa@openbsd.org>2016-11-02 01:29:43 +0000
commit7e14a1ee0de79cbf979ff3eee6f9af1e4bfc9835 (patch)
tree061a43111897876f3c84d5710ce444f573b1885b
parentadd per cpu caches for free pool items. (diff)
downloadwireguard-openbsd-7e14a1ee0de79cbf979ff3eee6f9af1e4bfc9835.tar.xz
wireguard-openbsd-7e14a1ee0de79cbf979ff3eee6f9af1e4bfc9835.zip
Make possible to change the link layer address of a cnmac(4) interface.
Asked by and ok stsp@, ok jasper@
-rw-r--r--sys/arch/octeon/dev/if_cnmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c
index 769f94ecf2c..fe2b61e93b7 100644
--- a/sys/arch/octeon/dev/if_cnmac.c
+++ b/sys/arch/octeon/dev/if_cnmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cnmac.c,v 1.58 2016/08/14 08:49:37 visa Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.59 2016/11/02 01:29:43 visa Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -1025,6 +1025,7 @@ octeon_eth_init(struct ifnet *ifp)
}
octeon_eth_mediachange(ifp);
+ cn30xxgmx_set_mac_addr(sc->sc_gmx_port, sc->sc_arpcom.ac_enaddr);
cn30xxgmx_set_filter(sc->sc_gmx_port);
timeout_add_sec(&sc->sc_tick_misc_ch, 1);