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

Function RawEq

connectd/netaddress.c:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static bool RawEq(const struct wireaddr *addr, const void *cmp, size_t len)
70{
71 size_t off = IPv4In6(addr);
72
73 assert(off + len <= addr->addrlen);
74 return memcmp(addr->addr + off, cmp, len) == 0;
75}
76
77/* The bitcoin code packs addresses backwards, so we map it here. */
78static unsigned int GetByte(const struct wireaddr *addr, int n)

Callers 3

IsRFC4862Function · 0.85
IsLocalFunction · 0.85
IsValidFunction · 0.85

Calls 1

IPv4In6Function · 0.85

Tested by

no test coverage detected