Home
last modified time | relevance | path

Searched refs:th_opcode (Results 1 – 9 of 9) sorted by relevance

/freebsd-10-stable/libexec/tftpd/
Dtftp-io.c117 (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 …]
Dtftp-transfer.c112 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()
Dtftpd.c416 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()
/freebsd-10-stable/usr.bin/tftp/
Dtftp.c134 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()
/freebsd-10-stable/lib/libstand/
Dtftp.c155 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()
/freebsd-10-stable/contrib/tcpdump/
Dprint-tftp.c89 TCHECK(tp->th_opcode); in tftp_print()
90 opcode = EXTRACT_16BITS(&tp->th_opcode); in tftp_print()
Dtftp.h56 unsigned short th_opcode; /* packet type */ member
/freebsd-10-stable/contrib/pf/tftp-proxy/
Dtftp-proxy.c205 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) { in main()
269 opcode(ntohs(tp->th_opcode)), in main()
/freebsd-10-stable/include/arpa/
Dtftp.h54 unsigned short th_opcode; /* packet type */ member