Add MTU support to carp interfaces
MFC after: 2 weeks Sponsored by: Multiplay
This commit is contained in:
parent
d0d400133f
commit
ac19560a34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290403
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user