Searched refs:th_opcode (Results 1 – 7 of 7) sorted by relevance
119 (pkt))->th_opcode)), block, i); in send_packet()154 tp->th_opcode = htons((u_short)ERROR); in send_error()196 tp->th_opcode = htons((u_short)WRQ); in send_wrq()244 tp->th_opcode = htons((u_short)RRQ); in send_rrq()297 tp->th_opcode = htons((u_short)OACK); in send_oack()338 tp->th_opcode = htons((u_short)ACK); in send_ack()442 pkt->th_opcode = ntohs((u_short)pkt->th_opcode); in receive_packet()443 if (pkt->th_opcode == DATA || in receive_packet()444 pkt->th_opcode == ACK) in receive_packet()459 if (pkt->th_opcode == ERROR) { in receive_packet()[all …]
114 if (rp->th_opcode == ACK) { in tftp_send()244 if (rp->th_opcode == DATA) { in tftp_receive()266 packettype(rp->th_opcode)); in tftp_receive()319 rp->th_opcode == DATA && /* and got a data block */ in tftp_receive()
418 tp->th_opcode = ntohs(tp->th_opcode); in main()419 if (tp->th_opcode == RRQ) { in main()427 } else if (tp->th_opcode == WRQ) { in main()600 if (rp->th_opcode != ACK) { in tftp_rrq()604 packettype(rp->th_opcode)); in tftp_rrq()
136 if (rp->th_opcode == ERROR) { in xmitfile()145 if (rp->th_opcode == OACK) { in xmitfile()236 if (rp->th_opcode == ERROR) { in recvfile()250 if (rp->th_opcode == OACK) { in recvfile()
153 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr()173 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack()202 extra->rtype = ntohs(t->th_opcode); in recvtftp()203 switch (ntohs(t->th_opcode)) { in recvtftp()268 tftp_oack_len = len - sizeof(t->th_opcode); in recvtftp()281 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()314 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()398 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_getnextblock()
205 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) { in main()269 opcode(ntohs(tp->th_opcode)), in main()
56 unsigned short th_opcode; /* packet type */ member