MCPcopy Create free account
hub / github.com/ElementsProject/elements / NatpmpInit

Function NatpmpInit

src/mapport.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52#ifdef USE_NATPMP
53static uint16_t g_mapport_external_port = 0;
54static bool NatpmpInit(natpmp_t* natpmp)
55{
56 const int r_init = initnatpmp(natpmp, /* detect gateway automatically */ 0, /* forced gateway - NOT APPLIED*/ 0);
57 if (r_init == 0) return true;
58 LogPrintf("natpmp: initnatpmp() failed with %d error.\n", r_init);
59 return false;
60}
61
62static bool NatpmpDiscover(natpmp_t* natpmp, struct in_addr& external_ipv4_addr)
63{

Callers 1

ProcessNatpmpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected