Lines Matching refs:tp
143 struct tftphdr *tp;
153 tp = (struct tftphdr *)buf;
154 tp->th_opcode = htons((u_short)ERROR);
155 tp->th_code = htons((u_short)error);
161 tp->th_code = EUNDEF; /* set 'undef' errorcode */
163 strcpy(tp->th_msg, pe->e_msg);
165 tp->th_msg[length] = '\0';
169 tftp_log(LOG_DEBUG, "Sending ERROR %d: %s", error, tp->th_msg);
183 struct tftphdr *tp;
195 tp = (struct tftphdr *)buf;
196 tp->th_opcode = htons((u_short)WRQ);
199 bp = tp->th_stuff;
231 struct tftphdr *tp;
243 tp = (struct tftphdr *)buf;
244 tp->th_opcode = htons((u_short)RRQ);
247 bp = tp->th_stuff;
280 struct tftphdr *tp;
294 tp = (struct tftphdr *)buf;
297 tp->th_opcode = htons((u_short)OACK);
327 struct tftphdr *tp;
336 tp = (struct tftphdr *)buf;
338 tp->th_opcode = htons((u_short)ACK);
339 tp->th_block = htons((u_short)block);