Searched refs:th_code (Results 1 – 5 of 5) sorted by relevance
61 #define th_code th_u.tu_code macro166 ND_TCHECK(tp->th_code); in tftp_print()168 EXTRACT_16BITS(&tp->th_code)))); in tftp_print()
156 wbuf.t.th_code = htons(errcode); in tftp_senderr()221 if ((unsigned) ntohs(t->th_code) > TFTP_MAX_ERRCODE) { in recvtftp()222 printf("illegal tftp error %d\n", ntohs(t->th_code)); in recvtftp()226 printf("tftp-error %d\n", ntohs(t->th_code)); in recvtftp()228 errno = tftperrors[ntohs(t->th_code)]; in recvtftp()
151 tp->th_code = htons((u_short)error); in send_error()157 tp->th_code = EUNDEF; /* set 'undef' errorcode */ in send_error()465 tftp_log(pkt->th_code == EUNDEF ? LOG_DEBUG : LOG_ERR, in receive_packet()
64 #define th_code th_u.tu_code macro
232 tftp_log(LOG_ERR, "Error code %d: %s", rp->th_code, rp->th_msg); in recvfile()