mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make if_bridge complain if it can't disable some capabilities.
MFC after: 2 weeks Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
59150e9141
commit
ebe4288151
1 changed files with 6 additions and 2 deletions
|
|
@ -940,8 +940,12 @@ bridge_set_ifcap(struct bridge_softc *sc, struct bridge_iflist *bif, int set)
|
|||
error = (*ifp->if_ioctl)(ifp, SIOCSIFCAP, (caddr_t)&ifr);
|
||||
if (error)
|
||||
if_printf(sc->sc_ifp,
|
||||
"error setting interface capabilities on %s\n",
|
||||
ifp->if_xname);
|
||||
"error setting capabilities on %s: %d\n",
|
||||
ifp->if_xname, error);
|
||||
if ((ifp->if_capenable & ~set) != 0)
|
||||
if_printf(sc->sc_ifp,
|
||||
"can't disable some capabilities on %s: 0x%x\n",
|
||||
ifp->if_xname, ifp->if_capenable & ~set);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue