MFC: if_bridge: use IF_MINMTU

Replace incorrect constant 576 with IF_MINMTU to check for minimum MTU.
This unbreaks bridging tap interfaces with small mtu.

MFC after:	1 week
This commit is contained in:
Eugene Grosbein 2024-04-01 10:31:51 +07:00
parent a7b2c45550
commit d3ce1a1b37

View file

@ -945,7 +945,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
case SIOCSIFMTU:
if (ifr->ifr_mtu < 576) {
if (ifr->ifr_mtu < IF_MINMTU) {
error = EINVAL;
break;
}