MCPcopy Create free account
hub / github.com/ElementsProject/lightning / IsRFC6052

Function IsRFC6052

connectd/netaddress.c:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static bool IsRFC6052(const struct wireaddr *addr)
30{
31 static const unsigned char pchRFC6052[] = {0,0x64,0xFF,0x9B,0,0,0,0,0,0,0,0};
32 return addr->type == ADDR_TYPE_IPV6
33 && memcmp(addr->addr, pchRFC6052, sizeof(pchRFC6052)) == 0;
34}
35
36static bool IsRFC3964(const struct wireaddr *addr)
37{

Callers 1

IPv4In6Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected