Home | History | Annotate | Download | only in net

Lines Matching defs:evl

981 	struct ether_vlan_header evl;
991 memcpy(&evl, mtod(m, char *), ETHER_HDR_LEN);
992 evl.evl_proto = evl.evl_encap_proto;
993 evl.evl_encap_proto = htons(ETHERTYPE_VLAN);
994 evl.evl_tag = htons(vlan_get_tag(m));
1002 mh.mh_data = (char *)&evl;
1003 mh.mh_len = sizeof(evl);
1798 struct ether_vlan_header *evl;
1810 if (m->m_len < sizeof(*evl)) {
1811 m = m_pullup(m, sizeof(*evl));
1825 evl = mtod(m, struct ether_vlan_header *);
1826 evl->evl_proto = evl->evl_encap_proto;
1827 evl->evl_encap_proto = htons(etype);
1828 evl->evl_tag = htons(tag);
1856 struct ether_vlan_header *evl;
1858 if (m->m_len < sizeof(*evl) &&
1859 (m = m_pullup(m, sizeof(*evl))) == NULL) {
1863 if (m_makewritable(&m, 0, sizeof(*evl), M_DONTWAIT)) {
1868 evl = mtod(m, struct ether_vlan_header *);
1869 KASSERT(ntohs(evl->evl_encap_proto) == ETHERTYPE_VLAN);
1871 vlan_set_tag(m, ntohs(evl->evl_tag));
1878 evl->evl_encap_proto = evl->evl_proto;
1884 vlan_set_tag(m, ntohs(evl->evl_tag));
1885 memmove((char *)evl + ETHER_VLAN_ENCAP_LEN, evl,