Lines Matching refs:htons
151 wbuf.t.th_opcode = htons((ushort_t)ERROR); in tftp_senderr()
152 wbuf.t.th_code = htons(errcode); in tftp_senderr()
171 wbuf.t.th_opcode = htons((ushort_t)ACK); in tftp_sendack()
173 wbuf.t.th_block = htons(block); in tftp_sendack()
205 if (htons(t->th_block) < (ushort_t)d->xid) { in recvtftp()
209 tftp_sendack(h, htons(t->th_block)); in recvtftp()
213 if (htons(t->th_block) != (ushort_t)d->xid) { in recvtftp()
312 wbuf.t.th_opcode = htons((ushort_t)RRQ); in tftp_makereq()
337 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
338 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
396 wbuf.t.th_opcode = htons((ushort_t)ACK); in tftp_getnextblock()
398 wbuf.t.th_block = htons((ushort_t)h->currblock); in tftp_getnextblock()
423 wbuf.t.th_block = htons((ushort_t)h->currblock); in tftp_getnextblock()