Lines Matching refs:eh
52 ether_header_t *eh; in send_ether() local
59 eh = (ether_header_t *)s; in send_ether()
61 bcopy((char *)buf, s + sizeof(*eh), len); in send_ether()
64 bcopy(last_arp, (char *) &eh->ether_dhost, 6); in send_ether()
66 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ether()
71 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
73 err = sendip(nfd, s, sizeof(*eh) + len); in send_ether()
87 ether_header_t *eh; in send_ip() local
101 eh = (ether_header_t *)ipbuf; in send_ip()
103 bzero((char *) &eh->ether_shost, sizeof(eh->ether_shost)); in send_ip()
106 bcopy(last_arp, (char *) &eh->ether_dhost, 6); in send_ip()
108 else if (arp((char *)&gwip, (char *) &eh->ether_dhost) == -1) in send_ip()
113 bcopy((char *) &eh->ether_dhost, last_arp, sizeof(last_arp)); in send_ip()
114 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
131 bcopy(local_arp, (char *) &eh->ether_shost,sizeof(last_arp)); in send_ip()
134 bcopy(local_arp, (char *) &eh->ether_shost, 6); in send_ip()
136 if (!frag || (sizeof(*eh) + iplen < mtu)) in send_ip()
141 bcopy((char *)ip, ipbuf + sizeof(*eh), iplen); in send_ip()
142 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen); in send_ip()
193 bcopy((char *)eh, (char *)ð, sizeof(eth)); in send_ip()
213 bcopy((char *)ip, ipbuf + sizeof(*eh), hlen); in send_ip()
214 bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen); in send_ip()
215 err = sendip(nfd, ipbuf, sizeof(*eh) + ts); in send_ip()