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

Function IsRFC3849

connectd/netaddress.c:115–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static bool IsRFC3849(const struct wireaddr *addr)
116{
117 return IsIPv6(addr) && GetByte(addr, 15) == 0x20 && GetByte(addr, 14) == 0x01 && GetByte(addr, 13) == 0x0D && GetByte(addr, 12) == 0xB8;
118}
119
120static bool IsRFC4862(const struct wireaddr *addr)
121{

Callers 1

IsValidFunction · 0.85

Calls 2

IsIPv6Function · 0.85
GetByteFunction · 0.85

Tested by

no test coverage detected