Lines Matching refs:eh
294 struct ether_header *eh; in ether_input() local
378 eh = (struct ether_header *)mac_state.mac_buf; in ether_input()
379 if (eh->ether_type == ntohs(ETHERTYPE_IP) && in ether_input()
416 if (eh->ether_type == ntohs(ETHERTYPE_ARP) && in ether_input()
442 (caddr_t)&eh->ether_dhost, in ether_input()
445 (caddr_t)&eh->ether_shost, in ether_input()
494 struct ether_header eh; in ether_output() local
528 eh.ether_type = htons(ETHERTYPE_IP); in ether_output()
529 bcopy(mac_state.mac_addr_buf, (caddr_t)&eh.ether_shost, in ether_output()
558 result = mac_get_arp(&tmpip, (void *)&eh.ether_dhost, in ether_output()
571 (caddr_t)&eh.ether_dhost, sizeof (ether_addr_t)); in ether_output()
575 mp->b_rptr -= sizeof (eh); in ether_output()
576 bcopy((caddr_t)&eh, mp->b_rptr, sizeof (eh)); in ether_output()