From bba6e363a0856c844835f1aef57b2c49841e344b Mon Sep 17 00:00:00 2001 From: hrs Date: Sun, 16 Jun 2013 04:40:02 +0000 Subject: Return ENETDOWN when the parent interface is down. MFC after: 1 week --- sys/net/if_vlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 9623e4b..b7f1197 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1042,7 +1042,7 @@ vlan_transmit(struct ifnet *ifp, struct mbuf *m) if (!UP_AND_RUNNING(p)) { m_freem(m); ifp->if_oerrors++; - return (0); + return (ENETDOWN); } /* -- cgit v1.1