Lines Matching refs:tftphdr
73 static int makerequest(int, char *, struct tftphdr *, char *);
74 static void tpacket(char *, struct tftphdr *, int);
116 struct tftphdr *ap; /* data and ack packets */ in tftp_sendfile()
117 struct tftphdr *dp; in tftp_sendfile()
183 } while (n < offsetof(struct tftphdr, th_data)); in tftp_sendfile()
194 if (n > offsetof(struct tftphdr, th_data)) in tftp_sendfile()
196 offsetof(struct tftphdr, th_data), in tftp_sendfile()
243 struct tftphdr *ap; in tftp_recvfile()
244 struct tftphdr *dp; in tftp_recvfile()
310 } while (n < offsetof(struct tftphdr, th_data)); in tftp_recvfile()
321 if (n > offsetof(struct tftphdr, th_data)) in tftp_recvfile()
323 offsetof(struct tftphdr, th_data), in tftp_recvfile()
408 makerequest(int request, char *name, struct tftphdr *tp, char *mode) in makerequest()
587 struct tftphdr *oackp; in process_oack()
622 struct tftphdr *tp; in nak()
637 sizeof (ackbuf) - sizeof (struct tftphdr)); in nak()
647 tpacket(char *s, struct tftphdr *tp, int n) in tpacket()