Searched refs:th_code (Results 1 – 4 of 4) sorted by relevance
154 wbuf.t.th_code = htons(errcode); in tftp_senderr()236 if ((unsigned)ntohs(t->th_code) > TFTP_MAX_ERRCODE) { in recvtftp()237 printf("illegal tftp error %d\n", ntohs(t->th_code)); in recvtftp()241 printf("tftp-error %d\n", ntohs(t->th_code)); in recvtftp()243 errno = tftperrors[ntohs(t->th_code)]; in recvtftp()
155 tp->th_code = htons((u_short)error); in send_error()161 tp->th_code = EUNDEF; /* set 'undef' errorcode */ in send_error()460 tftp_log(pkt->th_code == EUNDEF ? LOG_DEBUG : LOG_ERR, in receive_packet()
66 #define th_code th_u.tu_code macro
237 tftp_log(LOG_ERR, "Error code %d: %s", rp->th_code, rp->th_msg); in recvfile()