th_code
if ((unsigned) ntohs(t->th_code) >= 8) {
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)];
wbuf.t.th_code = htons((u_short) ENOSPACE); /* ??? */
ap->th_code, ap->th_msg);
dp->th_code, dp->th_msg);
tp->th_code = htons((u_short)error);
tp->th_code = EUNDEF;
printf("<code=%d, msg=%s>\n", ntohs(tp->th_code), tp->th_msg);
TCHECK(tp->th_code);
ntohs(tp->th_code)));
tp->th_code = htons((u_short)error);
tp->th_code = htons(EUNDEF); /* set 'undef' errorcode */