Lines Matching refs:eh
67 struct ether_header *eh; local
74 eh = (struct ether_header *)pkt - 1;
75 len += sizeof(*eh);
77 MACPY(d->myea, eh->ether_shost); /* by byte */
78 MACPY(dea, eh->ether_dhost); /* by byte */
79 eh->ether_type = htons(etype);
81 n = netif_put(d, eh, len);
82 if (n < 0 || (size_t)n < sizeof(*eh))
85 n -= sizeof(*eh);
103 struct ether_header *eh; local
110 eh = (struct ether_header *)pkt - 1;
111 len += sizeof(*eh);
113 n = netif_get(d, eh, len, tleft);
114 if (n < 0 || (size_t)n < sizeof(*eh))
118 if (bcmp(d->myea, eh->ether_dhost, 6) != 0 &&
119 bcmp(bcea, eh->ether_dhost, 6) != 0) {
123 ether_sprintf(eh->ether_dhost));
127 *etype = ntohs(eh->ether_type);
129 n -= sizeof(*eh);