mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
7ecccd50b9
* Add port parsing support to parse_wireaddr. This is in preparation for storing addresses in the peers table. This also makes parse_wireaddr a proper inverse of fmt_wireaddr. * Move parse_wireaddr to common/wireaddr.c this seems like a better place for it. I bring along parse_ip_port with it for convenience. This also fixes some issues with the upcoming ip/port parsing tests. Signed-off-by: William Casarin <jb55@jb55.com>
12 lines
261 B
C
12 lines
261 B
C
#ifndef LIGHTNING_LIGHTNINGD_NETADDRESS_H
|
|
#define LIGHTNING_LIGHTNINGD_NETADDRESS_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
struct lightningd;
|
|
|
|
void guess_addresses(struct lightningd *ld);
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_NETADDRESS_H */
|