Add support for prefix, link local and global in same net

This commit is contained in:
Sergio R. Caprile committed 2025-12-08 16:05:32 -03:00
1 parent a42271a088
commit b0109c3319
5 files changed
+82 -40

No files matched your search

+2
View File
@@ -251,6 +251,8 @@ static void init_tests(struct mg_mgr *mgr, struct eth *e, struct ipp *ipp,
#if MG_ENABLE_IPV6
if (ipp->ip6 != NULL) {
mif->ip6[0] = 1;
mif->prefix[0] = 1;
mif->prefix_len = 64;
mif->gw6[0] = 1;
mif->gw6_ready = true;
mif->state = MG_TCPIP_STATE_READY; // so DHCP stops