From owner-svn-src-head@FreeBSD.ORG Mon Nov 7 22:58:49 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E47ED1065670; Mon, 7 Nov 2011 22:58:49 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D50A38FC1A; Mon, 7 Nov 2011 22:58:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA7MwnnG000436; Mon, 7 Nov 2011 22:58:49 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA7MwnTp000434; Mon, 7 Nov 2011 22:58:49 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <201111072258.pA7MwnTp000434@svn.freebsd.org> From: Pyun YongHyeon Date: Mon, 7 Nov 2011 22:58:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227324 - head/sys/dev/ti X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 22:58:50 -0000 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;