Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c102 tftperror(ntohs(tftp->th_code))); in interpret_tftp()
153 (char *)(uintptr_t)tftp->th_code - dlc_header, 2), in interpret_tftp()
154 "Error = %d (%s)", ntohs(tftp->th_code), in interpret_tftp()
155 tftperror(ntohs(tftp->th_code))); in interpret_tftp()
163 (char *)(uintptr_t)tftp->th_code - dlc_header, 2), in interpret_tftp()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c191 ap->th_code = ntohs(ap->th_code); in tftp_sendfile()
193 "Error code %d", ap->th_code); in tftp_sendfile()
319 dp->th_code = ntohs(dp->th_code); in tftp_recvfile()
321 dp->th_code); in tftp_recvfile()
629 tp->th_code = htons((ushort_t)error); in nak()
635 tp->th_code = EUNDEF; in nak()
703 (void) printf("<code=%d", ntohs(tp->th_code)); in tpacket()
704 n = n - sizeof (tp->th_opcode) - sizeof (tp->th_code); in tpacket()
/illumos-gate/usr/src/boot/libsa/
H A Dtftp.c152 wbuf.t.th_code = htons(errcode); in tftp_senderr()
234 if ((unsigned)ntohs(t->th_code) > TFTP_MAX_ERRCODE) { in recvtftp()
235 printf("illegal tftp error %d\n", ntohs(t->th_code)); in recvtftp()
239 printf("tftp-error %d\n", ntohs(t->th_code)); in recvtftp()
241 errno = tftperrors[ntohs(t->th_code)]; in recvtftp()
/illumos-gate/usr/src/head/arpa/
H A Dtftp.h63 #define th_code th_block /* error code overlay on tu_block */ macro
/illumos-gate/usr/src/boot/include/arpa/
H A Dtftp.h64 #define th_code th_u.tu_code macro
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c1063 ackbuf.tb_hdr.th_code); in tftpd_sendfile()
1141 ackbuf.tb_hdr.th_code); in tftpd_sendfile()
1262 "received ERROR %d", dp->th_code); in tftpd_recvfile()
1360 tp->th_code = htons((ushort_t)error); in nak()
1366 tp->th_code = EUNDEF; /* set 'undef' errorcode */ in nak()