Home
last modified time | relevance | path

Searched refs:evh (Results 1 – 2 of 2) sorted by relevance

/xnu-11417.121.6/bsd/skywalk/nexus/netif/
H A Dnx_netif_flow.c154 struct ether_vlan_header *evh; in netif_flow_ethertype_info() local
161 if (mbuf_len(m) < sizeof(*evh)) { in netif_flow_ethertype_info()
167 if (len < sizeof(*evh)) { in netif_flow_ethertype_info()
174 evh = (struct ether_vlan_header *)eh; in netif_flow_ethertype_info()
175 if (__probable((((uintptr_t)evh) & 1) == 0)) { in netif_flow_ethertype_info()
176 tag = evh->evl_tag; in netif_flow_ethertype_info()
177 etype = evh->evl_proto; in netif_flow_ethertype_info()
179 bcopy(&evh->evl_tag, &tag, sizeof(tag)); in netif_flow_ethertype_info()
180 bcopy(&evh->evl_proto, &etype, sizeof(etype)); in netif_flow_ethertype_info()
/xnu-11417.121.6/tests/skywalk/
H A Dskt_filter.c254 struct ether_vlan_header *evh = buf; in custom_ether_build_packet() local
257 bcopy(dst_mac_addr.octet, evh->evl_dhost, sizeof(ether_addr_t)); in custom_ether_build_packet()
258 bcopy(src_mac_addr.octet, evh->evl_shost, sizeof(ether_addr_t)); in custom_ether_build_packet()
259 evh->evl_encap_proto = htons(ETHERTYPE_VLAN); in custom_ether_build_packet()
263 evh->evl_tag = htons(tag); in custom_ether_build_packet()
264 evh->evl_proto = htons(args->ethertype); in custom_ether_build_packet()
385 struct ether_vlan_header *evh = buf; in custom_ether_verify() local
390 etype = ntohs(evh->evl_encap_proto); in custom_ether_verify()
395 etype = ntohs(evh->evl_proto); in custom_ether_verify()
401 evl_tag = ntohs(evh->evl_tag); in custom_ether_verify()