Lines Matching refs:ipbuf
30 static char *ipbuf = NULL, *ethbuf = NULL; variable
91 if (!ipbuf) in send_ip()
93 ipbuf = (char *)malloc(65536); in send_ip()
94 if (!ipbuf) in send_ip()
101 eh = (ether_header_t *)ipbuf; 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()
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()
217 bcopy((char *)ð, ipbuf, sizeof(eth)); in send_ip()