Lines Matching refs:htons
153 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr()
154 wbuf.t.th_code = htons(errcode); in tftp_senderr()
173 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack()
175 wbuf.t.th_block = htons(block); in tftp_sendack()
207 if (htons(t->th_block) < (u_short)d->xid) { in recvtftp()
211 tftp_sendack(h, htons(t->th_block)); in recvtftp()
215 if (htons(t->th_block) != (u_short)d->xid) { in recvtftp()
314 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()
339 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
340 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
398 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_getnextblock()
400 wbuf.t.th_block = htons((u_short)h->currblock); in tftp_getnextblock()
425 wbuf.t.th_block = htons((u_short)h->currblock); in tftp_getnextblock()