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

Function IsIPv4

connectd/netaddress.c:59–62  ·  view source on GitHub ↗

Is this an IPv4 address, or an IPv6-wrapped IPv4 */

Source from the content-addressed store, hash-verified

57
58/* Is this an IPv4 address, or an IPv6-wrapped IPv4 */
59static bool IsIPv4(const struct wireaddr *addr)
60{
61 return addr->type == ADDR_TYPE_IPV4 || IPv4In6(addr) != 0;
62}
63
64static bool IsIPv6(const struct wireaddr *addr)
65{

Callers 8

IsRFC1918Function · 0.85
IsRFC2544Function · 0.85
IsRFC3927Function · 0.85
IsRFC6598Function · 0.85
IsRFC5737Function · 0.85
IsLocalFunction · 0.85
IsValidFunction · 0.85
mainFunction · 0.85

Calls 1

IPv4In6Function · 0.85

Tested by 1

mainFunction · 0.68