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

Function wireaddr_from_ipv6

common/wireaddr.c:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void wireaddr_from_ipv6(struct wireaddr *addr,
199 const struct in6_addr *ip6,
200 const u16 port)
201{
202 addr->type = ADDR_TYPE_IPV6;
203 addr->addrlen = sizeof(*ip6);
204 addr->port = port;
205 memset(addr->addr, 0, sizeof(addr->addr));
206 memcpy(&addr->addr, ip6, addr->addrlen);
207}
208
209bool wireaddr_to_ipv4(const struct wireaddr *addr, struct sockaddr_in *s4)
210{

Callers 4

get_remote_addressFunction · 0.85
dns_parse_resultsFunction · 0.85
wireaddr_from_hostnameFunction · 0.85
parse_wireaddrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected