Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 04:40:02 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251799 - head/sys/net
Message-ID:  <201306160440.r5G4e2Gb066993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306160440.r5G4e2Gb066993>