Make mcast/bcast consistent across stacks

Fix net_builtin inconsistency
This commit is contained in:
Sergio R. Caprile committed 2025-12-29 14:22:59 -03:00
1 parent f70647e28e
commit 73bec74380
7 files changed
+127 -111

No files matched your search

+10
View File
@@ -306,3 +306,13 @@ void mg_mgr_init(struct mg_mgr *mgr) {
: MG_TLS == MG_TLS_WOLFSSL ? "WolfSSL"
: "custom"));
}
#if MG_ENABLE_TCPIP
void mg_tcpip_mapip(struct mg_connection *, struct mg_addr *);
#endif
void mg_multicast_restore(struct mg_connection *c, uint8_t *from) {
memcpy(&c->rem, from, sizeof(c->rem));
#if MG_ENABLE_TCPIP
mg_tcpip_mapip(c, &c->rem);
#endif
}