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

Function wireaddr_from_ipv4

common/wireaddr.c:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void wireaddr_from_ipv4(struct wireaddr *addr,
188 const struct in_addr *ip4,
189 const u16 port)
190{
191 addr->type = ADDR_TYPE_IPV4;
192 addr->addrlen = sizeof(*ip4);
193 addr->port = port;
194 memset(addr->addr, 0, sizeof(addr->addr));
195 memcpy(addr->addr, ip4, addr->addrlen);
196}
197
198void wireaddr_from_ipv6(struct wireaddr *addr,
199 const struct in6_addr *ip6,

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