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);
        }
 
        /*
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to