mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
if_bridge: use IF_MINMTU
Replace incorrect constant 576 with IF_MINMTU to check for minumum MTU. This unbreaks bridging tap interfaces with small mtu. MFC after: 1 week
This commit is contained in:
parent
ee36e7face
commit
319a5d086b
|
@ -960,7 +960,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
case SIOCSIFMTU:
|
||||
oldmtu = sc->sc_ifp->if_mtu;
|
||||
|
||||
if (ifr->ifr_mtu < 576) {
|
||||
if (ifr->ifr_mtu < IF_MINMTU) {
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue