Home
last modified time | relevance | path

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

/netbsd-src/libexec/tftpd/
H A Dtftpd.c441 tp->th_opcode = ntohs(tp->th_opcode); in main()
442 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) in main()
465 tp->th_opcode == WRQ ? "write" : "read", in blk_handler()
474 tp->th_opcode == WRQ ? "write" : "read", in blk_handler()
506 tp->th_opcode == WRQ ? "write" : "read", in timeout_handler()
515 tp->th_opcode == WRQ ? "write" : "read", in timeout_handler()
560 tp->th_opcode == WRQ ? "write" : "read", in tsize_handler()
569 tp->th_opcode == WRQ ? "write" : "read", in tsize_handler()
720 ecode = (*pf->f_validate)(&filename, tp->th_opcode); in tftp()
724 tp->th_opcode == WRQ ? "write" : "read", in tftp()
[all …]
/netbsd-src/usr.bin/tftp/
H A Dtftp.c267 dp->th_opcode = htons((u_short)DATA); in sendfile()
311 ap->th_opcode = ntohs(ap->th_opcode); in sendfile()
312 if (ap->th_opcode == ERROR) { in sendfile()
317 if (ap->th_opcode == ACK) { in sendfile()
347 if (ap->th_opcode == OACK) { in sendfile()
407 ap->th_opcode = htons((u_short)ACK); in recvfile()
456 dp->th_opcode = ntohs(dp->th_opcode); in recvfile()
457 if (dp->th_opcode == ERROR) { in recvfile()
462 if (dp->th_opcode == DATA) { in recvfile()
485 if (dp->th_opcode == OACK) { in recvfile()
[all …]
/netbsd-src/sys/lib/libsa/
H A Dtftp.c115 switch (ntohs(t->th_opcode)) { in recvtftp()
145 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()
165 wbuf.t.th_opcode = htons((u_short)RRQ); in tftp_makereq()
206 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_getnextblock()
239 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_terminate()
242 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_terminate()
H A Dtftp.h76 short th_opcode; /* packet type */ member
/netbsd-src/sys/kern/
H A Dsubr_tftproot.c83 short th_opcode; /* packet type */ member
244 packetlen = sizeof(tftp->th_opcode) + namelen + sizeof(octetstr); in tftproot_getfile()
261 tftp->th_opcode = htons((short)RRQ); in tftproot_getfile()
301 tftp->th_opcode = htons((short)ACK); in tftproot_getfile()
391 switch(ntohs(tftp->th_opcode)) { in tftproot_recv()
418 __func__, __LINE__, ntohs(tftp->th_opcode))); in tftproot_recv()
/netbsd-src/dist/pf/libexec/tftp-proxy/
H A Dtftp-proxy.c232 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) { in main()
296 opcode(ntohs(tp->th_opcode)), in main()
/netbsd-src/include/arpa/
H A Dtftp.h57 short th_opcode; /* packet type */ member