svn commit: r252104 - stable/9/sys/net

Hiroki Sato hrs at FreeBSD.org
Sun Jun 23 02:51:22 UTC 2013


Author: hrs
Date: Sun Jun 23 02:51:22 2013
New Revision: 252104
URL: http://svnweb.freebsd.org/changeset/base/252104

Log:
  MFC r251799:
  
  Return ENETDOWN when the parent interface is down.

Modified:
  stable/9/sys/net/if_vlan.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/net/if_vlan.c
==============================================================================
--- stable/9/sys/net/if_vlan.c	Sun Jun 23 02:44:42 2013	(r252103)
+++ stable/9/sys/net/if_vlan.c	Sun Jun 23 02:51:22 2013	(r252104)
@@ -1034,7 +1034,7 @@ vlan_transmit(struct ifnet *ifp, struct 
 	if (!UP_AND_RUNNING(p)) {
 		m_freem(m);
 		ifp->if_oerrors++;
-		return (0);
+		return (ENETDOWN);
 	}
 
 	/*


More information about the svn-src-all mailing list