Annotation of qemu/slirp/tftp.h, revision 1.1.1.5
1.1 root 1: /* tftp defines */
2:
3: #define TFTP_SESSIONS_MAX 3
4:
5: #define TFTP_SERVER 69
6:
7: #define TFTP_RRQ 1
8: #define TFTP_WRQ 2
9: #define TFTP_DATA 3
10: #define TFTP_ACK 4
11: #define TFTP_ERROR 5
1.1.1.2 root 12: #define TFTP_OACK 6
1.1 root 13:
14: #define TFTP_FILENAME_MAX 512
15:
16: struct tftp_t {
17: struct ip ip;
18: struct udphdr udp;
1.1.1.4 root 19: uint16_t tp_op;
1.1 root 20: union {
1.1.1.2 root 21: struct {
1.1.1.4 root 22: uint16_t tp_block_nr;
23: uint8_t tp_buf[512];
1.1 root 24: } tp_data;
1.1.1.2 root 25: struct {
1.1.1.4 root 26: uint16_t tp_error_code;
27: uint8_t tp_msg[512];
1.1 root 28: } tp_error;
1.1.1.5 ! root 29: char tp_buf[512 + 2];
1.1 root 30: } x;
31: };
32:
1.1.1.3 root 33: struct tftp_session {
34: Slirp *slirp;
35: char *filename;
36:
37: struct in_addr client_ip;
1.1.1.4 root 38: uint16_t client_port;
1.1.1.3 root 39:
40: int timestamp;
41: };
42:
1.1 root 43: void tftp_input(struct mbuf *m);
unix.superglobalmegacorp.com