Searched refs:th_opcode (Results 1 – 7 of 7) sorted by relevance
116 (pkt))->th_opcode)), block, i); in send_packet()151 tp->th_opcode = htons((u_short)ERROR); in send_error()191 tp->th_opcode = htons((u_short)WRQ); in send_wrq()239 tp->th_opcode = htons((u_short)RRQ); in send_rrq()292 tp->th_opcode = htons((u_short)OACK); in send_oack()332 tp->th_opcode = htons((u_short)ACK); in send_ack()419 pkt->th_opcode = ntohs((u_short)pkt->th_opcode); in receive_packet()420 if (pkt->th_opcode == DATA || in receive_packet()421 pkt->th_opcode == ACK) in receive_packet()436 if (pkt->th_opcode == ERROR) { in receive_packet()[all …]
144 if (rp->th_opcode == ACK) { in tftp_send()336 if (rp->th_opcode == DATA) { in tftp_receive()381 packettype(rp->th_opcode)); in tftp_receive()441 rp->th_opcode == DATA && /* and got a data block */ in tftp_receive()
409 tp->th_opcode = ntohs(tp->th_opcode); in main()410 if (tp->th_opcode == RRQ) { in main()418 } else if (tp->th_opcode == WRQ) { in main()590 if (rp->th_opcode != ACK) { in tftp_rrq()594 packettype(rp->th_opcode)); in tftp_rrq()
134 if (rp->th_opcode == ERROR) { in xmitfile()143 if (rp->th_opcode == OACK) { in xmitfile()234 if (rp->th_opcode == ERROR) { in recvfile()248 if (rp->th_opcode == OACK) { in recvfile()
155 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr()175 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack()205 extra->rtype = ntohs(t->th_opcode); in recvtftp()206 switch (ntohs(t->th_opcode)) { in recvtftp()275 tftp_oack_len = len - sizeof(t->th_opcode); in recvtftp()288 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()321 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()406 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()
55 unsigned short th_opcode; /* packet type */ member