Lines Matching defs:ethh
466 struct ether_header *ethh;
506 ethh = (struct ether_header *)buf;
520 ether_addr_copy(ethh->ether_dhost, cm_node->rem_mac);
521 ether_addr_copy(ethh->ether_shost, cm_node->loc_mac);
523 ((struct ether_vlan_header *)ethh)->evl_proto =
527 ((struct ether_vlan_header *)ethh)->evl_tag = htons(vtag);
529 ((struct ether_vlan_header *)ethh)->evl_encap_proto =
532 ethh->ether_type = htons(ETH_P_IP);
553 ether_addr_copy(ethh->ether_dhost, cm_node->rem_mac);
554 ether_addr_copy(ethh->ether_shost, cm_node->loc_mac);
556 ((struct ether_vlan_header *)ethh)->evl_proto =
560 ((struct ether_vlan_header *)ethh)->evl_tag = htons(vtag);
561 ((struct ether_vlan_header *)ethh)->evl_encap_proto =
564 ethh->ether_type = htons(ETH_P_IPV6);
3015 struct ether_vlan_header *ethh;
3032 ethh = rbuf->mem.va;
3034 if (ethh->evl_proto == htons(ETH_P_8021Q)) {
3035 vtag = ntohs(ethh->evl_tag);