Searched refs:tftphdr (Results 1 – 6 of 6) sorted by relevance
| /dragonfly/usr.bin/tftp/ |
| HD | tftpsubs.c | 75 static struct tftphdr *rw_init(int); 77 struct tftphdr *w_init(void) { return rw_init(0); } /* write-behind */ in w_init() 78 struct tftphdr *r_init(void) { return rw_init(1); } /* read-ahead */ in r_init() 80 static struct tftphdr * 90 return (struct tftphdr *)bfs[0].buf; in rw_init() 99 struct tftphdr **dpp, in readit() 112 *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() 168 writeit(FILE *file, struct tftphdr **dpp, int ct, int convert) in writeit() [all …]
|
| HD | tftp.c | 74 static int makerequest(int, const char *, struct tftphdr *, const char *); 79 static void tpacket(const char *, struct tftphdr *, int); 88 struct tftphdr *ap; /* data and ack packets */ in xmitfile() 89 struct tftphdr *dp; in xmitfile() 102 ap = (struct tftphdr *)ackbuf; in xmitfile() 203 struct tftphdr *ap; in recvfile() 204 struct tftphdr *dp; in recvfile() 218 ap = (struct tftphdr *)ackbuf; in recvfile() 320 makerequest(int request, const char *name, struct tftphdr *tp, const char *mode) in makerequest() 360 struct tftphdr *tp; in nak() [all …]
|
| HD | tftpsubs.h | 37 struct tftphdr *r_init(void); 39 int readit(FILE *, struct tftphdr **, int); 43 struct tftphdr *w_init(void); 45 int writeit(FILE *, struct tftphdr **, int, int);
|
| /dragonfly/libexec/tftpd/ |
| HD | tftpd.c | 80 static void tftp(struct tftphdr *, int) __dead2; 109 struct tftphdr *tp; in main() 300 tp = (struct tftphdr *)buf; in main() 346 tftp(struct tftphdr *tp, int size) in tftp() 581 struct tftphdr *dp; in xmitfile() 582 struct tftphdr *ap; /* ack packet */ in xmitfile() 588 ap = (struct tftphdr *)ackbuf; in xmitfile() 660 struct tftphdr *dp; in recvfile() 661 struct tftphdr *ap; /* ack buffer */ in recvfile() 667 ap = (struct tftphdr *)ackbuf; in recvfile() [all …]
|
| /dragonfly/stand/lib/ |
| HD | tftp.c | 96 struct tftphdr t; 115 struct tftphdr *t; in recvtftp() 133 t = (struct tftphdr *)pkt; in recvtftp() 142 t = (struct tftphdr *)pkt; in recvtftp() 197 struct tftphdr t; in tftp_makereq() 203 struct tftphdr *t; in tftp_makereq() 240 struct tftphdr t; in tftp_getnextblock() 244 struct tftphdr *t; in tftp_getnextblock()
|
| /dragonfly/include/arpa/ |
| HD | tftp.h | 52 struct tftphdr { struct
|