Add MTU support to carp interfaces

MFC after:	2 weeks
Sponsored by:	Multiplay
This commit is contained in:
Steven Hartland 2015-11-05 17:23:02 +00:00
parent d0d400133f
commit ac19560a34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290403

View File

@ -1769,6 +1769,13 @@ carp_ioctl(struct ifreq *ifr, u_long cmd, struct thread *td)
}
break;
}
case SIOCSIFMTU:
if (ifr->ifr_mtu > ETHERMTU_JUMBO) {
error = EINVAL;
} else {
ifp->if_mtu = ifr->ifr_mtu;
}
break;
default:
error = EINVAL;
}