From 9b721035eab6f424210a6eb2d282c9e1f7d22425 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 24 Jun 2004 12:32:41 +0000 Subject: Add a couple of #ifdef DEBUG printf()s in vlan_input() I found to be useful when debugging the ether_demux() problem (when bridging over VLANs). --- sys/net/if_vlan.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/net/if_vlan.c') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 9449dec..98961e7 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -591,9 +591,15 @@ vlan_input(struct ifnet *ifp, struct mbuf *m) VLAN_UNLOCK(); m_freem(m); ifp->if_noproto++; +#ifdef DEBUG + printf("vlan_input: tag %d, no interface\n", tag); +#endif return; } VLAN_UNLOCK(); /* XXX extend below? */ +#ifdef DEBUG + printf("vlan_input: tag %d, parent %s\n", tag, ifv->ifv_p->if_xname); +#endif if (mtag == NULL) { /* -- cgit v1.1