Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c155 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()
278 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile()
317 dp->th_opcode = ntohs(dp->th_opcode); in tftp_recvfile()
318 if (dp->th_opcode == ERROR) { in tftp_recvfile()
329 if ((block == 1) && (dp->th_opcode == OACK)) { in tftp_recvfile()
339 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c449 tp->th_opcode = ntohs((ushort_t)tp->th_opcode); in main()
450 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) in main()
683 oackp->th_opcode = htons((ushort_t)OACK); in process_options()
783 readmode = (tp->th_opcode == RRQ); in tftp()
850 ecode = (*pf->f_validate)(tp->th_opcode); in tftp()
881 oacklen = process_options(tp->th_opcode, cp, buf.data + size); in tftp()
883 if (tp->th_opcode == WRQ) in tftp()
1054 ackbuf.tb_hdr.th_opcode = in tftpd_sendfile()
1055 ntohs((ushort_t)ackbuf.tb_hdr.th_opcode); in tftpd_sendfile()
1059 if (ackbuf.tb_hdr.th_opcode == ERROR) { in tftpd_sendfile()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c54 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
77 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
107 fraglen - sizeof (tftp->th_opcode), &opts)); in interpret_tftp()
118 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_opcode - in interpret_tftp()
119 dlc_header, 2), "Opcode = %d (%s)", ntohs(tftp->th_opcode), in interpret_tftp()
120 show_type(ntohs(tftp->th_opcode))); in interpret_tftp()
122 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
166 fraglen - sizeof (tftp->th_opcode), &opts)); in interpret_tftp()
/illumos-gate/usr/src/boot/libsa/
H A Dtftp.c151 wbuf.t.th_opcode = htons((ushort_t)ERROR); in tftp_senderr()
171 wbuf.t.th_opcode = htons((ushort_t)ACK); in tftp_sendack()
200 extra->rtype = ntohs(t->th_opcode); in recvtftp()
201 switch (ntohs(t->th_opcode)) { in recvtftp()
266 tftp_oack_len = len - sizeof (t->th_opcode); in recvtftp()
279 printf("tftp type %d not handled\n", ntohs(t->th_opcode)); in recvtftp()
312 wbuf.t.th_opcode = htons((ushort_t)RRQ); in tftp_makereq()
396 wbuf.t.th_opcode = htons((ushort_t)ACK); in tftp_getnextblock()
/illumos-gate/usr/src/head/arpa/
H A Dtftp.h58 short th_opcode; /* packet type */ member
/illumos-gate/usr/src/boot/include/arpa/
H A Dtftp.h54 unsigned short th_opcode; /* packet type */ member