1 /* SPDX-License-Identifier: BSD-3-Clause */
7 #define TFTP_SESSIONS_MAX 20
18 #define TFTP_FILENAME_MAX 512
19 #define TFTP_BLOCKSIZE_MAX 1428
27 uint8_t tp_buf[TFTP_BLOCKSIZE_MAX];
30 uint16_t tp_error_code;
31 uint8_t tp_msg[TFTP_BLOCKSIZE_MAX];
33 char tp_buf[TFTP_BLOCKSIZE_MAX + 2];
35 } __attribute__((packed));
43 struct sockaddr_storage client_addr;
50 void tftp_input(struct sockaddr_storage *srcsas, struct mbuf *m);