| 12 | #include <wire/wire.h> |
| 13 | |
| 14 | bool wireaddr_eq(const struct wireaddr *a, const struct wireaddr *b) |
| 15 | { |
| 16 | if (a->type != b->type) |
| 17 | return false; |
| 18 | if (a->port != b->port) |
| 19 | return false; |
| 20 | return memeq(a->addr, a->addrlen, b->addr, b->addrlen); |
| 21 | } |
| 22 | |
| 23 | bool wireaddr_eq_without_port(const struct wireaddr *a, const struct wireaddr *b) |
| 24 | { |