MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / SetStatusV6

Method SetStatusV6

libi2pd/RouterContext.cpp:372–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370 }
371
372 void RouterContext::SetStatusV6 (RouterStatus status)
373 {
374 SetTestingV6 (false);
375 if (status != m_StatusV6)
376 {
377 LogPrint(eLogInfo, "Router: network status v6 changed ",
378 ROUTER_STATUS_NAMES[m_StatusV6], " -> ", ROUTER_STATUS_NAMES[status]);
379 m_StatusV6 = status;
380 switch (m_StatusV6)
381 {
382 case eRouterStatusOK:
383 SetReachable (false, true); // ipv6
384 break;
385 case eRouterStatusFirewalled:
386 SetUnreachable (false, true); // ipv6
387 break;
388 default:
389 ;
390 }
391 }
392 }
393
394 void RouterContext::UpdatePort (int port)
395 {

Callers 3

StartMethod · 0.80
HandleAddressMethod · 0.80
SetRouterStatusMethod · 0.80

Calls 1

LogPrintFunction · 0.85

Tested by

no test coverage detected