mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Copy the link-layer address from our ifnet pointer at reset time
so that the mac address can be overridden.
This commit is contained in:
parent
fac8eae5bc
commit
7d542e2d80
1 changed files with 3 additions and 0 deletions
|
|
@ -2079,6 +2079,9 @@ mxge_open(mxge_softc_t *sc)
|
|||
bus_dmamap_t map;
|
||||
|
||||
|
||||
/* Copy the MAC address in case it was overridden */
|
||||
bcopy(IF_LLADDR(sc->ifp), sc->mac_addr, ETHER_ADDR_LEN);
|
||||
|
||||
err = mxge_reset(sc);
|
||||
if (err != 0) {
|
||||
device_printf(sc->dev, "failed to reset\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue