Lines Matching refs:iodesc
64 static ssize_t recvtftp(struct iodesc *, void **, void **, time_t, void *);
104 struct iodesc *iodesc; member
163 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_senderr()
180 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_sendack()
184 recvtftp(struct iodesc *d, void **pkt, void **payload, time_t tleft, in recvtftp()
346 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
347 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
348 h->iodesc->xid = 1; /* expected block */ in tftp_makereq()
356 res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_makereq()
411 h->iodesc->xid = h->currblock + 1; /* expected block */ 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()
445 struct iodesc *io; in tftp_open()
465 tftpfile->iodesc = io = socktodesc(*(int *)(dev->d_opendata)); in tftp_open()