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

Function IsRFC4843

connectd/netaddress.c:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131static bool IsRFC4843(const struct wireaddr *addr)
132{
133 return IsIPv6(addr) && (GetByte(addr, 15) == 0x20 && GetByte(addr, 14) == 0x01 && GetByte(addr, 13) == 0x00 && (GetByte(addr, 12) & 0xF0) == 0x10);
134}
135
136static bool IsTor(const struct wireaddr *addr)
137{

Callers 1

IsRoutableFunction · 0.85

Calls 2

IsIPv6Function · 0.85
GetByteFunction · 0.85

Tested by

no test coverage detected