Lines Matching defs:evl
1019 struct ether_vlan_header evl;
1029 memcpy(&evl, mtod(m, char *), ETHER_HDR_LEN);
1030 evl.evl_proto = evl.evl_encap_proto;
1031 evl.evl_encap_proto = htons(ETHERTYPE_VLAN);
1032 evl.evl_tag = htons(vlan_get_tag(m));
1040 mh.mh_data = (char *)&evl;
1041 mh.mh_len = sizeof(evl);
1836 struct ether_vlan_header *evl;
1848 if (m->m_len < sizeof(*evl)) {
1849 m = m_pullup(m, sizeof(*evl));
1863 evl = mtod(m, struct ether_vlan_header *);
1864 evl->evl_proto = evl->evl_encap_proto;
1865 evl->evl_encap_proto = htons(etype);
1866 evl->evl_tag = htons(tag);
1894 struct ether_vlan_header *evl;
1896 if (m->m_len < sizeof(*evl) &&
1897 (m = m_pullup(m, sizeof(*evl))) == NULL) {
1901 if (m_makewritable(&m, 0, sizeof(*evl), M_DONTWAIT)) {
1906 evl = mtod(m, struct ether_vlan_header *);
1907 KASSERT(ntohs(evl->evl_encap_proto) == ETHERTYPE_VLAN);
1909 vlan_set_tag(m, ntohs(evl->evl_tag));
1916 evl->evl_encap_proto = evl->evl_proto;
1922 vlan_set_tag(m, ntohs(evl->evl_tag));
1923 memmove((char *)evl + ETHER_VLAN_ENCAP_LEN, evl,