Searched refs:th_opcode (Results 1 – 4 of 4) sorted by relevance
155 dp->th_opcode = htons((ushort_t)DATA); in tftp_sendfile()189 ap->th_opcode = ntohs(ap->th_opcode); in tftp_sendfile()190 if (ap->th_opcode == ERROR) { in tftp_sendfile()201 if ((count == 0) && (ap->th_opcode == OACK)) { in tftp_sendfile()211 if (ap->th_opcode == ACK) { in tftp_sendfile()277 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile()316 dp->th_opcode = ntohs(dp->th_opcode); in tftp_recvfile()317 if (dp->th_opcode == ERROR) { in tftp_recvfile()328 if ((block == 1) && (dp->th_opcode == OACK)) { in tftp_recvfile()338 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile()[all …]
448 tp->th_opcode = ntohs((ushort_t)tp->th_opcode); in main()449 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) in main()682 oackp->th_opcode = htons((ushort_t)OACK); in process_options()782 readmode = (tp->th_opcode == RRQ); in tftp()849 ecode = (*pf->f_validate)(tp->th_opcode); in tftp()880 oacklen = process_options(tp->th_opcode, cp, buf.data + size); in tftp()882 if (tp->th_opcode == WRQ) in tftp()1053 ackbuf.tb_hdr.th_opcode = in tftpd_sendfile()1054 ntohs((ushort_t)ackbuf.tb_hdr.th_opcode); in tftpd_sendfile()1058 if (ackbuf.tb_hdr.th_opcode == ERROR) { in tftpd_sendfile()[all …]
44 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()55 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()92 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_opcode - in interpret_tftp()95 ntohs(tftp->th_opcode), in interpret_tftp()96 show_type(ntohs(tftp->th_opcode))); in interpret_tftp()98 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
60 short th_opcode; /* packet type */ member