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

Function wireaddr_from_ipv6

common/wireaddr.c:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void wireaddr_from_ipv6(struct wireaddr *addr,
171 const struct in6_addr *ip6,
172 const u16 port)
173{
174 addr->type = ADDR_TYPE_IPV6;
175 addr->addrlen = sizeof(*ip6);
176 addr->port = port;
177 memset(addr->addr, 0, sizeof(addr->addr));
178 memcpy(&addr->addr, ip6, addr->addrlen);
179}
180
181void wireaddr_from_websocket(struct wireaddr *addr, const u16 port)
182{

Callers 4

get_remote_addressFunction · 0.85
try_connect_one_addrFunction · 0.85
wireaddr_from_hostnameFunction · 0.85
parse_wireaddrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected