Searched refs:th_code (Results 1 – 6 of 6) sorted by relevance
133 if ((unsigned int)ntohs(t->th_code) >= 8) { in recvtftp()134 printf("illegal tftp error %d\n", ntohs(t->th_code)); in recvtftp()138 printf("tftp-error %d\n", ntohs(t->th_code)); in recvtftp()140 errno = tftperrors[ntohs(t->th_code)]; in recvtftp()243 wbuf.t.th_code = htons((u_short)ENOSPACE); /* ??? */ in tftp_terminate()
86 #define th_code th_u.tu_code macro
314 ntohs(ap->th_code), ap->th_msg); in sendfile()459 ntohs(dp->th_code), dp->th_msg); in recvfile()618 tp->th_code = EUNDEF; in nak()621 tp->th_code = htons((u_short)error); in nak()688 (void)printf("<code=%d, msg=%s>\n", ntohs(tp->th_code), in tpacket()
67 #define th_code th_u.tu_code macro
93 #define th_code th_u.tu_code macro410 ntohs(tftp->th_code), errbuf); in tftproot_recv()
1207 tp->th_code = EUNDEF; /* set 'undef' errorcode */ in nak()1210 tp->th_code = htons((u_short)error); in nak()