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

Function IsRFC6145

connectd/netaddress.c:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static const unsigned char pchIPv4[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff };
21
22static bool IsRFC6145(const struct wireaddr *addr)
23{
24 static const unsigned char pchRFC6145[] = {0,0,0,0,0,0,0,0,0xFF,0xFF,0,0};
25 return addr->type == ADDR_TYPE_IPV6
26 && memcmp(addr->addr, pchRFC6145, sizeof(pchRFC6145)) == 0;
27}
28
29static bool IsRFC6052(const struct wireaddr *addr)
30{

Callers 1

IPv4In6Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected