th_code
tp->th_code = EUNDEF; /* set 'undef' errorcode */
tp->th_code = htons((u_short)error);
ntohs(tftp->th_code), errbuf);
if ((unsigned int)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); /* ??? */
ntohs(ap->th_code), ap->th_msg);
ntohs(dp->th_code), dp->th_msg);
tp->th_code = EUNDEF;
tp->th_code = htons((u_short)error);
(void)printf("<code=%d, msg=%s>\n", ntohs(tp->th_code),