From owner-svn-src-all@FreeBSD.ORG Sun Jun 16 04:40:03 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 44A358AA; Sun, 16 Jun 2013 04:40:03 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDFC1A24; Sun, 16 Jun 2013 04:40:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5G4e2fO066994; Sun, 16 Jun 2013 04:40:02 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5G4e2Gb066993; Sun, 16 Jun 2013 04:40:02 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201306160440.r5G4e2Gb066993@svn.freebsd.org> From: Hiroki Sato Date: Sun, 16 Jun 2013 04:40:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251799 - head/sys/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 04:40:03 -0000 Author: hrs Date: Sun Jun 16 04:40:02 2013 New Revision: 251799 URL: http://svnweb.freebsd.org/changeset/base/251799 Log: Return ENETDOWN when the parent interface is down. MFC after: 1 week Modified: head/sys/net/if_vlan.c Modified: head/sys/net/if_vlan.c ============================================================================== --- head/sys/net/if_vlan.c Sun Jun 16 00:59:24 2013 (r251798) +++ head/sys/net/if_vlan.c Sun Jun 16 04:40:02 2013 (r251799) @@ -1042,7 +1042,7 @@ vlan_transmit(struct ifnet *ifp, struct if (!UP_AND_RUNNING(p)) { m_freem(m); ifp->if_oerrors++; - return (0); + return (ENETDOWN); } /*