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 …]
146 if (rp->th_opcode == ACK) { in tftp_send()339 if (rp->th_opcode == DATA) { in tftp_receive()384 packettype(rp->th_opcode)); in tftp_receive()444 rp->th_opcode == DATA && /* and got a data block */ in tftp_receive()
421 tp->th_opcode = ntohs(tp->th_opcode); in main()422 if (tp->th_opcode == RRQ) { in main()430 } else if (tp->th_opcode == WRQ) { in main()603 if (rp->th_opcode != ACK) { in tftp_rrq()607 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()
158 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr()178 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack()208 extra->rtype = ntohs(t->th_opcode); in recvtftp()209 switch (ntohs(t->th_opcode)) { in recvtftp()278 tftp_oack_len = len - sizeof(t->th_opcode); in recvtftp()291 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()324 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()409 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