mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Make mcast/bcast consistent across stacks
Fix net_builtin inconsistency
This commit is contained in:
1 parent
f70647e28e
commit
73bec74380
7 files changed
+127
-111
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user