Searched refs:th_code (Results 1 – 6 of 6) sorted by relevance
132 if ((unsigned) ntohs(t->th_code) >= 8) { in recvtftp()133 printf("illegal tftp error %d\n", ntohs(t->th_code)); in recvtftp()137 printf("tftp-error %d\n", ntohs(t->th_code)); in recvtftp()139 errno = tftperrors[ntohs(t->th_code)]; in recvtftp()248 wbuf.t.th_code = htons((u_short) ENOSPACE); /* ??? */ in tftp_terminate()
88 #define th_code th_u.tu_code macro
119 TCHECK(tp->th_code); in tftp_print()121 ntohs(tp->th_code))); in tftp_print()
234 ap->th_code, ap->th_msg); in sendfile()382 dp->th_code, dp->th_msg); in recvfile()489 tp->th_code = htons((u_short)error); in nak()495 tp->th_code = EUNDEF; in nak()539 printf("<code=%d, msg=%s>\n", ntohs(tp->th_code), tp->th_msg); in tpacket()
66 #define th_code th_u.tu_code macro
1478 tp->th_code = htons((u_short)error); in nak() 1486 tp->th_code = htons(EUNDEF); /* set 'undef' errorcode */ in nak()