| 21 | } |
| 22 | |
| 23 | bool wireaddr_eq_without_port(const struct wireaddr *a, const struct wireaddr *b) |
| 24 | { |
| 25 | if (a->type != b->type) |
| 26 | return false; |
| 27 | return memeq(a->addr, a->addrlen, b->addr, b->addrlen); |
| 28 | } |
| 29 | |
| 30 | /* Returns false if we didn't parse it, and *cursor == NULL if malformed. */ |
| 31 | bool fromwire_wireaddr(const u8 **cursor, size_t *max, struct wireaddr *addr) |
no test coverage detected