Lines Matching refs:ethh
423 struct ethhdr *ethh;
463 ethh = (struct ethhdr *)buf;
477 ether_addr_copy(ethh->h_dest, cm_node->rem_mac);
478 ether_addr_copy(ethh->h_source, cm_node->loc_mac);
480 ((struct vlan_ethhdr *)ethh)->h_vlan_proto =
484 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag);
486 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto =
489 ethh->h_proto = htons(ETH_P_IP);
510 ether_addr_copy(ethh->h_dest, cm_node->rem_mac);
511 ether_addr_copy(ethh->h_source, cm_node->loc_mac);
513 ((struct vlan_ethhdr *)ethh)->h_vlan_proto =
517 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag);
518 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto =
521 ethh->h_proto = htons(ETH_P_IPV6);
3146 struct vlan_ethhdr *ethh;
3163 ethh = rbuf->mem.va;
3165 if (ethh->h_vlan_proto == htons(ETH_P_8021Q)) {
3166 vtag = ntohs(ethh->h_vlan_TCI);