Lines Matching refs:wtail

148 	char *wtail;  in tftp_senderr()  local
158 wtail = wbuf.t.th_msg; in tftp_senderr()
159 bcopy(msg, wtail, len); in tftp_senderr()
160 wtail[len] = '\0'; in tftp_senderr()
161 wtail += len + 1; in tftp_senderr()
163 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_senderr()
173 char *wtail; in tftp_sendack() local
176 wtail = (char *)&wbuf.t.th_block; in tftp_sendack()
178 wtail += 2; in tftp_sendack()
180 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_sendack()
305 char *wtail; in tftp_makereq() local
322 wtail = wbuf.t.th_stuff; in tftp_makereq()
327 bcopy(TFTP_PREPEND_PATH, wtail, sizeof(TFTP_PREPEND_PATH) - 1); in tftp_makereq()
328 wtail += sizeof(TFTP_PREPEND_PATH) - 1; in tftp_makereq()
333 bcopy(h->path, wtail, l + 1); in tftp_makereq()
334 wtail += l + 1; in tftp_makereq()
335 bcopy("octet", wtail, 6); in tftp_makereq()
336 wtail += 6; in tftp_makereq()
337 bcopy("blksize", wtail, 8); in tftp_makereq()
338 wtail += 8; in tftp_makereq()
339 blksize_l = sprintf(wtail, "%d", h->tftp_blksize); in tftp_makereq()
340 wtail += blksize_l + 1; in tftp_makereq()
341 bcopy("tsize", wtail, 6); in tftp_makereq()
342 wtail += 6; in tftp_makereq()
343 bcopy("0", wtail, 2); in tftp_makereq()
344 wtail += 2; in tftp_makereq()
356 res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_makereq()
401 char *wtail; in tftp_getnextblock() local
407 wtail = (char *)&wbuf.t.th_block; in tftp_getnextblock()
409 wtail += 2; in tftp_getnextblock()
415 res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_getnextblock()
434 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_getnextblock()