Subject: Re: 802.1q hardware support
To: None <thorpej@zembu.com>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-net
Date: 11/16/2000 05:45:22
> > - vlan_input_tag(eh, m, vlan_tag);
> > + struct mbuf *n;
> > + n = m_aux_add(m, AF_LINK, ETHERTYPE_VLAN);
> > + if (n) {
> > + *mtod(n, int *) = vlan_tag;
> > + n->m_len = sizeof(int);
> > + } else
> > + printf("%s: no mbuf for tag\n", ifp->if_xname);
> > + m->m_flags |= M_VLAN1Q;
I believe you no longer need M_VLAN1Q. you just need to check
if m_aux_find(m, AF_LINK, ETHERTYPE_VLAN) returns NULL or not.
itojun