Date: Thu, 5 Nov 2015 17:23:02 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290403 - head/sys/netinet Message-ID: <201511051723.tA5HN24j065530@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Thu Nov 5 17:23:02 2015 New Revision: 290403 URL: https://svnweb.freebsd.org/changeset/base/290403 Log: Add MTU support to carp interfaces MFC after: 2 weeks Sponsored by: Multiplay Modified: head/sys/netinet/ip_carp.c Modified: head/sys/netinet/ip_carp.c ============================================================================== --- head/sys/netinet/ip_carp.c Thu Nov 5 17:19:08 2015 (r290402) +++ head/sys/netinet/ip_carp.c Thu Nov 5 17:23:02 2015 (r290403) @@ -1769,6 +1769,13 @@ carp_ioctl(struct ifreq *ifr, u_long cmd } break; } + case SIOCSIFMTU: + if (ifr->ifr_mtu > ETHERMTU_JUMBO) { + error = EINVAL; + } else { + ifp->if_mtu = ifr->ifr_mtu; + } + break; default: error = EINVAL; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511051723.tA5HN24j065530>