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

/illumos-gate/usr/src/head/arpa/
H A Dtftp.h60 short th_opcode; /* packet type */ member in struct:tftphdr
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c44 switch (ntohs(tftp->th_opcode)) {
55 switch (ntohs(tftp->th_opcode)) {
92 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_opcode -
95 ntohs(tftp->th_opcode),
96 show_type(ntohs(tftp->th_opcode)));
98 switch (ntohs(tftp->th_opcode)) {
/illumos-gate/usr/src/boot/include/arpa/
H A Dtftp.h54 unsigned short th_opcode; /* packet type */ member in struct:tftphdr
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c155 dp->th_opcode = htons((ushort_t)DATA);
189 ap->th_opcode = ntohs(ap->th_opcode);
190 if (ap->th_opcode == ERROR) {
201 if ((count == 0) && (ap->th_opcode == OACK)) {
211 if (ap->th_opcode == ACK) {
277 ap->th_opcode = htons((ushort_t)ACK);
316 dp->th_opcode = ntohs(dp->th_opcode);
317 if (dp->th_opcode
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c448 tp->th_opcode = ntohs((ushort_t)tp->th_opcode);
449 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ)
682 oackp->th_opcode = htons((ushort_t)OACK);
782 readmode = (tp->th_opcode == RRQ);
849 ecode = (*pf->f_validate)(tp->th_opcode);
880 oacklen = process_options(tp->th_opcode, cp, buf.data + size);
882 if (tp->th_opcode == WRQ)
1053 ackbuf.tb_hdr.th_opcode
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dtftp.c155 wbuf.t.th_opcode = htons((u_short) ERROR);
175 wbuf.t.th_opcode = htons((u_short) ACK);
198 *rtype = ntohs(t->th_opcode);
199 switch (ntohs(t->th_opcode)) {
251 tftp_oack_len = len - sizeof(t->th_opcode);
261 printf("tftp type %d not handled\n", ntohs(t->th_opcode));
292 wbuf.t.th_opcode = htons((u_short) RRQ);
367 wbuf.t.th_opcode = htons((u_short) ACK);

Completed in 686 milliseconds