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

Function IsRFC3964

connectd/netaddress.c:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static bool IsRFC3964(const struct wireaddr *addr)
37{
38 return addr->type == ADDR_TYPE_IPV6
39 && addr->addr[0] == 0x20 && addr->addr[1] == 0x02;
40}
41
42/* Return offset of IPv4 address, or 0 == not an IPv4 */
43static size_t IPv4In6(const struct wireaddr *addr)

Callers 1

IPv4In6Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected