diff options
author | joerg <joerg@FreeBSD.org> | 2004-06-24 12:32:41 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2004-06-24 12:32:41 +0000 |
commit | 9b721035eab6f424210a6eb2d282c9e1f7d22425 (patch) | |
tree | 11a7c15b2bbff671567e3e33249ab06a2f638c37 /sys/net/if_vlan.c | |
parent | f7a4300d05c1c525586e63fe8474f5d0d4ecfe64 (diff) | |
download | FreeBSD-src-9b721035eab6f424210a6eb2d282c9e1f7d22425.zip FreeBSD-src-9b721035eab6f424210a6eb2d282c9e1f7d22425.tar.gz |
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).
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { /* |