6 #define TFTP_SESSIONS_MAX 20
17 #define TFTP_FILENAME_MAX 512
18 #define TFTP_BLOCKSIZE_MAX 1428
26 uint8_t tp_buf
[TFTP_BLOCKSIZE_MAX
];
29 uint16_t tp_error_code
;
30 uint8_t tp_msg
[TFTP_BLOCKSIZE_MAX
];
32 char tp_buf
[TFTP_BLOCKSIZE_MAX
+ 2];
34 } __attribute__((packed
));
42 struct sockaddr_storage client_addr
;
49 void tftp_input(struct sockaddr_storage
*srcsas
, struct mbuf
*m
);