Date: Mon, 7 Nov 2011 22:58:49 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227324 - head/sys/dev/ti Message-ID: <201111072258.pA7MwnTp000434@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Nov 7 22:58:49 2011 New Revision: 227324 URL: http://svn.freebsd.org/changeset/base/227324 Log: Do not allow changing MTU to be less than the minimum. Modified: head/sys/dev/ti/if_ti.c Modified: head/sys/dev/ti/if_ti.c ============================================================================== --- head/sys/dev/ti/if_ti.c Mon Nov 7 22:53:06 2011 (r227323) +++ head/sys/dev/ti/if_ti.c Mon Nov 7 22:58:49 2011 (r227324) @@ -3396,7 +3396,7 @@ ti_ioctl(struct ifnet *ifp, u_long comma switch (command) { case SIOCSIFMTU: TI_LOCK(sc); - if (ifr->ifr_mtu > TI_JUMBO_MTU) + if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > TI_JUMBO_MTU) error = EINVAL; else { ifp->if_mtu = ifr->ifr_mtu;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111072258.pA7MwnTp000434>