added TCP/UDP packet splitting to fit within MTU

This commit is contained in:
robert committed 2023-09-12 07:05:13 -04:00
1 parent a1e316ddcf
commit 264026acde
5 files changed
+380 -280

No files matched your search

+2
View File
@@ -27,6 +27,8 @@ struct mg_tcpip_if {
void *driver_data; // Driver-specific data
struct mg_mgr *mgr; // Mongoose event manager
struct mg_queue recv_queue; // Receive queue
uint16_t mtu; // Interface MTU
#define MG_TCPIP_MTU_DEFAULT 1500
// Internal state, user can use it but should not change it
uint8_t gwmac[6]; // Router's MAC