Searched refs:th_opcode (Results 1 – 7 of 7) sorted by relevance
115 (pkt))->th_opcode)), block, i); in send_packet()120 packettype(ntohs(((struct tftphdr *)(pkt))->th_opcode)), in send_packet()150 tp->th_opcode = htons((u_short)ERROR); in send_error()190 tp->th_opcode = htons((u_short)WRQ); in send_wrq()238 tp->th_opcode = htons((u_short)RRQ); in send_rrq()291 tp->th_opcode = htons((u_short)OACK); in send_oack()331 tp->th_opcode = htons((u_short)ACK); in send_ack()362 pkt->th_opcode = htons((u_short)DATA); in send_data()418 pkt->th_opcode = ntohs((u_short)pkt->th_opcode); in receive_packet()419 if (pkt->th_opcode == DATA || in receive_packet()[all …]
143 if (rp->th_opcode == ACK) { in tftp_send()335 if (rp->th_opcode == DATA) { in tftp_receive()380 packettype(rp->th_opcode)); in tftp_receive()440 rp->th_opcode == DATA && /* and got a data block */ in tftp_receive()
400 tp->th_opcode = ntohs(tp->th_opcode); in main()401 if (tp->th_opcode == RRQ) { in main()409 } else if (tp->th_opcode == WRQ) { in main()581 if (rp->th_opcode != ACK) { in tftp_rrq()585 packettype(rp->th_opcode)); in tftp_rrq()
128 if (rp->th_opcode == ERROR) { in xmitfile()137 if (rp->th_opcode == OACK) { in xmitfile()228 if (rp->th_opcode == ERROR) { in recvfile()242 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()
53 unsigned short th_opcode; /* packet type */ member