diff options
author | smh <smh@FreeBSD.org> | 2015-11-05 17:23:02 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2015-11-05 17:23:02 +0000 |
commit | e03a66bab54b2fa727b3419f7b90f3b0f4f160e0 (patch) | |
tree | dc7d7ecf60bdda9cb977a3f65a25b5183fef5451 | |
parent | 357c5a95401459aa8af4dc417eb6e73394c7e254 (diff) | |
download | FreeBSD-src-e03a66bab54b2fa727b3419f7b90f3b0f4f160e0.zip FreeBSD-src-e03a66bab54b2fa727b3419f7b90f3b0f4f160e0.tar.gz |
Add MTU support to carp interfaces
MFC after: 2 weeks
Sponsored by: Multiplay
-rw-r--r-- | sys/netinet/ip_carp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 7e45069..c09d895 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -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; } |