Lines Matching refs:wtail
144 char *wtail; in tftp_senderr() local
154 wtail = wbuf.t.th_msg; in tftp_senderr()
155 bcopy(msg, wtail, len); in tftp_senderr()
156 wtail[len] = '\0'; in tftp_senderr()
157 wtail += len + 1; in tftp_senderr()
159 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_senderr()
169 char *wtail; in tftp_sendack() local
172 wtail = (char *)&wbuf.t.th_block; in tftp_sendack()
174 wtail += 2; in tftp_sendack()
176 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_sendack()
296 char *wtail; in tftp_makereq() local
313 wtail = wbuf.t.th_stuff; in tftp_makereq()
318 bcopy(TFTP_PREPEND_PATH, wtail, sizeof (TFTP_PREPEND_PATH) - 1); in tftp_makereq()
319 wtail += sizeof (TFTP_PREPEND_PATH) - 1; in tftp_makereq()
324 bcopy(h->path, wtail, l + 1); in tftp_makereq()
325 wtail += l + 1; in tftp_makereq()
326 bcopy("octet", wtail, 6); in tftp_makereq()
327 wtail += 6; in tftp_makereq()
328 bcopy("blksize", wtail, 8); in tftp_makereq()
329 wtail += 8; in tftp_makereq()
330 blksize_l = sprintf(wtail, "%d", h->tftp_blksize); in tftp_makereq()
331 wtail += blksize_l + 1; in tftp_makereq()
332 bcopy("tsize", wtail, 6); in tftp_makereq()
333 wtail += 6; in tftp_makereq()
334 bcopy("0", wtail, 2); in tftp_makereq()
335 wtail += 2; in tftp_makereq()
347 res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_makereq()
391 char *wtail; in tftp_getnextblock() local
397 wtail = (char *)&wbuf.t.th_block; in tftp_getnextblock()
399 wtail += 2; in tftp_getnextblock()
405 res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_getnextblock()
424 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_getnextblock()