Lines Matching refs:eh
48 ether_header_t *eh;
55 eh = (ether_header_t *)s;
57 bcopy((char *)buf, s + sizeof(*eh), len);
60 bcopy(last_arp, (char *) &eh->ether_dhost, 6);
62 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1)
67 eh->ether_type = htons(ETHERTYPE_IP);
69 err = sendip(nfd, s, sizeof(*eh) + len);
83 ether_header_t *eh;
97 eh = (ether_header_t *)ipbuf;
99 bzero((char *) &eh->ether_shost, sizeof(eh->ether_shost));
102 bcopy(last_arp, (char *) &eh->ether_dhost, 6);
104 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1)
109 bcopy((char *) &eh->ether_dhost, last_arp, sizeof(last_arp));
110 eh->ether_type = htons(ETHERTYPE_IP);
127 bcopy(local_arp, (char *) &eh->ether_shost,sizeof(last_arp));
130 bcopy(local_arp, (char *) &eh->ether_shost, 6);
132 if (!frag || (sizeof(*eh) + iplen < mtu))
137 bcopy((char *)ip, ipbuf + sizeof(*eh), iplen);
138 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen);
189 bcopy((char *)eh, (char *)ð, sizeof(eth));
209 bcopy((char *)ip, ipbuf + sizeof(*eh), hlen);
210 bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen);
211 err = sendip(nfd, ipbuf, sizeof(*eh) + ts);