Lines Matching refs:htons
155 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr()
156 wbuf.t.th_code = htons(errcode); in tftp_senderr()
175 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack()
177 wbuf.t.th_block = htons(block); in tftp_sendack()
210 if (htons(t->th_block) < (u_short)d->xid) { in recvtftp()
214 tftp_sendack(h, htons(t->th_block)); in recvtftp()
218 if (htons(t->th_block) != (u_short)d->xid) { in recvtftp()
321 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()
346 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
347 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
406 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_getnextblock()
408 wbuf.t.th_block = htons((u_short)h->currblock); in tftp_getnextblock()
433 wbuf.t.th_block = htons((u_short)h->currblock); in tftp_getnextblock()