Home
last modified time | relevance | path

Searched refs:tftphdr (Results 1 – 5 of 5) sorted by relevance

/external/iputils/
Dtftpsubs.c78 struct tftphdr *rw_init(int);
80 struct tftphdr *w_init() { return rw_init(0); } /* write-behind */ in w_init()
81 struct tftphdr *r_init() { return rw_init(1); } /* read-ahead */ in r_init()
85 struct tftphdr *rw_init(int x) in rw_init()
93 return (struct tftphdr *)bfs[0].buf; in rw_init()
100 int readit(FILE * file, struct tftphdr **dpp, int convert) in readit()
113 *dpp = (struct tftphdr *)b->buf; /* set caller's ptr */ in readit()
127 struct tftphdr *dp; in read_ahead()
134 dp = (struct tftphdr *)b->buf; in read_ahead()
167 int writeit(FILE *file, struct tftphdr **dpp, int ct, int convert) in writeit()
[all …]
Dtftp.h52 struct tftphdr { struct
80 extern int readit(FILE * file, struct tftphdr **dpp, int convert); argument
82 extern int writeit(FILE *file, struct tftphdr **dpp, int ct, int convert);
85 extern struct tftphdr *w_init(void);
86 extern struct tftphdr *r_init(void);
Dtftpd.c96 void tftp(struct tftphdr *tp, int size) __attribute__((noreturn));
108 register struct tftphdr *tp; in main()
198 tp = (struct tftphdr *)buf; in main()
223 void tftp(struct tftphdr *tp, int size) in tftp()
351 struct tftphdr *dp; in sendfile()
352 register struct tftphdr *ap; /* ack packet */ in sendfile()
359 ap = (struct tftphdr *)ackbuf; in sendfile()
422 struct tftphdr *dp; in recvfile()
423 register struct tftphdr *ap; /* ack buffer */ in recvfile()
429 ap = (struct tftphdr *)ackbuf; in recvfile()
[all …]
/external/curl/tests/server/
Dtftpd.c127 struct tftphdr hdr;
265 static struct tftphdr *rw_init(int);
267 static struct tftphdr *w_init(void);
269 static struct tftphdr *r_init(void);
277 static int do_tftp(struct testcase *test, struct tftphdr *tp, ssize_t size);
434 static struct tftphdr *rw_init(int x) in rw_init()
445 static struct tftphdr *w_init(void) in w_init()
450 static struct tftphdr *r_init(void) in r_init()
458 static int readit(struct testcase *test, struct tftphdr **dpp, in readit()
485 struct tftphdr *dp; in read_ahead()
[all …]
Dtftp.h42 struct tftphdr { struct