Lines Matching defs:evl
982 struct ether_vlan_header evl;
992 memcpy(&evl, mtod(m, char *), ETHER_HDR_LEN);
993 evl.evl_proto = evl.evl_encap_proto;
994 evl.evl_encap_proto = htons(ETHERTYPE_VLAN);
995 evl.evl_tag = htons(vlan_get_tag(m));
1003 mh.mh_data = (char *)&evl;
1004 mh.mh_len = sizeof(evl);
1799 struct ether_vlan_header *evl;
1811 if (m->m_len < sizeof(*evl)) {
1812 m = m_pullup(m, sizeof(*evl));
1826 evl = mtod(m, struct ether_vlan_header *);
1827 evl->evl_proto = evl->evl_encap_proto;
1828 evl->evl_encap_proto = htons(etype);
1829 evl->evl_tag = htons(tag);
1857 struct ether_vlan_header *evl;
1859 if (m->m_len < sizeof(*evl) &&
1860 (m = m_pullup(m, sizeof(*evl))) == NULL) {
1864 if (m_makewritable(&m, 0, sizeof(*evl), M_DONTWAIT)) {
1869 evl = mtod(m, struct ether_vlan_header *);
1870 KASSERT(ntohs(evl->evl_encap_proto) == ETHERTYPE_VLAN);
1872 vlan_set_tag(m, ntohs(evl->evl_tag));
1879 evl->evl_encap_proto = evl->evl_proto;
1885 vlan_set_tag(m, ntohs(evl->evl_tag));
1886 memmove((char *)evl + ETHER_VLAN_ENCAP_LEN, evl,