Searched refs:th_opcode (Results 1 – 9 of 9) sorted by relevance
117 (pkt))->th_opcode)), block, i); in send_packet()122 packettype(ntohs(((struct tftphdr *)(pkt))->th_opcode)), in send_packet()152 tp->th_opcode = htons((u_short)ERROR); in send_error()194 tp->th_opcode = htons((u_short)WRQ); in send_wrq()242 tp->th_opcode = htons((u_short)RRQ); in send_rrq()295 tp->th_opcode = htons((u_short)OACK); in send_oack()336 tp->th_opcode = htons((u_short)ACK); in send_ack()367 pkt->th_opcode = htons((u_short)DATA); in send_data()440 pkt->th_opcode = ntohs((u_short)pkt->th_opcode); in receive_packet()441 if (pkt->th_opcode == DATA || in receive_packet()[all …]
112 if (rp->th_opcode == ACK) { in tftp_send()242 if (rp->th_opcode == DATA) { in tftp_receive()264 packettype(rp->th_opcode)); in tftp_receive()317 rp->th_opcode == DATA && /* and got a data block */ in tftp_receive()
416 tp->th_opcode = ntohs(tp->th_opcode); in main()417 if (tp->th_opcode == RRQ) { in main()425 } else if (tp->th_opcode == WRQ) { in main()598 if (rp->th_opcode != ACK) { in tftp_rrq()602 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()198 *rtype = ntohs(t->th_opcode); in recvtftp()199 switch (ntohs(t->th_opcode)) { in recvtftp()251 tftp_oack_len = len - sizeof(t->th_opcode); in recvtftp()261 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()292 wbuf.t.th_opcode = htons((u_short) RRQ); in tftp_makereq()367 wbuf.t.th_opcode = htons((u_short) ACK); in tftp_getnextblock()
89 TCHECK(tp->th_opcode); in tftp_print()90 opcode = EXTRACT_16BITS(&tp->th_opcode); in tftp_print()
56 unsigned short th_opcode; /* packet type */ member
205 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) { in main()269 opcode(ntohs(tp->th_opcode)), in main()
54 unsigned short th_opcode; /* packet type */ member