th_code
wbuf.t.th_code = htons(errcode);
if ((unsigned)ntohs(t->th_code) > TFTP_MAX_ERRCODE) {
printf("illegal tftp error %d\n", ntohs(t->th_code));
printf("tftp-error %d\n", ntohs(t->th_code));
errno = tftperrors[ntohs(t->th_code)];
ap->th_code = ntohs(ap->th_code);
"Error code %d", ap->th_code);
dp->th_code = ntohs(dp->th_code);
dp->th_code);
tp->th_code = htons((ushort_t)error);
tp->th_code = EUNDEF;
(void) printf("<code=%d", ntohs(tp->th_code));
n = n - sizeof (tp->th_opcode) - sizeof (tp->th_code);
ackbuf.tb_hdr.th_code);
ackbuf.tb_hdr.th_code);
"received ERROR %d", dp->th_code);
tp->th_code = htons((ushort_t)error);
tp->th_code = EUNDEF; /* set 'undef' errorcode */
tftperror(ntohs(tftp->th_code)));
(char *)(uintptr_t)tftp->th_code - dlc_header, 2),
"Error = %d (%s)", ntohs(tftp->th_code),
tftperror(ntohs(tftp->th_code)));
(char *)(uintptr_t)tftp->th_code - dlc_header, 2),