Home
last modified time | relevance | path

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

/dragonfly/libexec/tftpd/
HDtftpd.c301 tp->th_opcode = ntohs(tp->th_opcode); in main()
302 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) in main()
427 ecode = (*pf->f_validate)(&filename, tp->th_opcode); in tftp()
437 tp->th_opcode == WRQ ? "write" : "read", in tftp()
450 if (tp->th_opcode == WRQ) in tftp()
596 dp->th_opcode = htons((u_short)DATA); in xmitfile()
625 ap->th_opcode = ntohs((u_short)ap->th_opcode); in xmitfile()
628 if (ap->th_opcode == ERROR) in xmitfile()
631 if (ap->th_opcode == ACK) { in xmitfile()
671 ap->th_opcode = htons((u_short)ACK); in recvfile()
[all …]
/dragonfly/usr.bin/tftp/
HDtftp.c121 dp->th_opcode = htons((u_short)DATA); in xmitfile()
159 ap->th_opcode = ntohs(ap->th_opcode); in xmitfile()
161 if (ap->th_opcode == ERROR) { in xmitfile()
167 if (ap->th_opcode == ACK) { in xmitfile()
233 ap->th_opcode = htons((u_short)ACK); in recvfile()
273 dp->th_opcode = ntohs(dp->th_opcode); in recvfile()
275 if (dp->th_opcode == ERROR) { in recvfile()
281 if (dp->th_opcode == DATA) { in recvfile()
308 ap->th_opcode = htons((u_short)ACK); /* has seen err msg */ in recvfile()
324 tp->th_opcode = htons((u_short)request); in makerequest()
[all …]
/dragonfly/stand/lib/
HDtftp.c134 if (ntohs(t->th_opcode) == DATA) in recvtftp()
145 switch (ntohs(t->th_opcode)) { in recvtftp()
185 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()
205 wbuf.t.th_opcode = htons((u_short) RRQ); in tftp_makereq()
249 wbuf.t.th_opcode = htons((u_short) ACK); in tftp_getnextblock()
/dragonfly/include/arpa/
HDtftp.h53 unsigned short th_opcode; /* packet type */ member