Add MTU support to carp interfaces
MFC after: 2 weeks Sponsored by: Multiplay
This commit is contained in:
parent
d0d400133f
commit
ac19560a34
@ -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…
x
Reference in New Issue
Block a user