svn commit: r251799 - head/sys/net
Hiroki Sato
hrs at FreeBSD.org
Sun Jun 16 04:40:03 UTC 2013
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);
}
/*
More information about the svn-src-all
mailing list