Lines Matching defs:ethh
385 struct ethhdr *ethh;
423 ethh = (struct ethhdr *)buf;
434 ether_addr_copy(ethh->h_dest, cm_node->rem_mac);
435 ether_addr_copy(ethh->h_source, cm_node->loc_mac);
437 ((struct vlan_ethhdr *)ethh)->h_vlan_proto = htons(ETH_P_8021Q);
439 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag);
441 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = htons(ETH_P_IP);
443 ethh->h_proto = htons(ETH_P_IP);
464 ether_addr_copy(ethh->h_dest, cm_node->rem_mac);
465 ether_addr_copy(ethh->h_source, cm_node->loc_mac);
467 ((struct vlan_ethhdr *)ethh)->h_vlan_proto = htons(ETH_P_8021Q);
469 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag);
470 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = htons(ETH_P_IPV6);
472 ethh->h_proto = htons(ETH_P_IPV6);
3134 struct vlan_ethhdr *ethh;
3146 ethh = (struct vlan_ethhdr *)rbuf->mem.va;
3148 if (ethh->h_vlan_proto == htons(ETH_P_8021Q)) {
3149 vtag = ntohs(ethh->h_vlan_TCI);