mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
update mip test
This commit is contained in:
1 parent
02e97adbef
commit
666a3b68e9
1 file changed
+2
@@ -251,12 +251,14 @@ static void init_tests(struct mg_mgr *mgr, struct eth *e, struct ipp *ipp,
|
|||||||
#if MG_ENABLE_IPV6
|
#if MG_ENABLE_IPV6
|
||||||
if (ipp->ip6 != NULL) {
|
if (ipp->ip6 != NULL) {
|
||||||
mif->ip6[0] = 1;
|
mif->ip6[0] = 1;
|
||||||
|
mif->gw6[0] = 1;
|
||||||
mif->state = MG_TCPIP_STATE_READY; // so DHCP stops
|
mif->state = MG_TCPIP_STATE_READY; // so DHCP stops
|
||||||
mif->state6 = MG_TCPIP_STATE_READY; // so mg_send() works and RS stops
|
mif->state6 = MG_TCPIP_STATE_READY; // so mg_send() works and RS stops
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
mif->ip = 1;
|
mif->ip = 1;
|
||||||
|
mif->gw = 1;
|
||||||
mif->mask = 255; // use router, to avoid firing an ARP request
|
mif->mask = 255; // use router, to avoid firing an ARP request
|
||||||
mif->state = MG_TCPIP_STATE_READY; // so mg_send() works and DHCP stops
|
mif->state = MG_TCPIP_STATE_READY; // so mg_send() works and DHCP stops
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user