Lines Matching refs:eh
59 struct ether_header *eh; in sendether() local
66 eh = (struct ether_header *)pkt - 1; in sendether()
67 len += sizeof (*eh); in sendether()
69 MACPY(d->myea, eh->ether_shost); /* by byte */ in sendether()
70 MACPY(dea, eh->ether_dhost); /* by byte */ in sendether()
71 eh->ether_type = htons(etype); in sendether()
73 n = netif_put(d, eh, len); in sendether()
74 if (n == -1 || n < sizeof (*eh)) in sendether()
77 n -= sizeof (*eh); in sendether()
92 struct ether_header *eh; in readether() local
102 if (n == -1 || n < sizeof (*eh)) { in readether()
107 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
109 if (bcmp(d->myea, eh->ether_dhost, 6) != 0 && in readether()
110 bcmp(bcea, eh->ether_dhost, 6) != 0) { in readether()
114 ether_sprintf(eh->ether_dhost)); in readether()
121 *payload = (void *)((uintptr_t)eh + sizeof (*eh)); in readether()
122 *etype = ntohs(eh->ether_type); in readether()
124 n -= sizeof (*eh); in readether()