| 15 | } |
| 16 | |
| 17 | static struct ping *decode(const tal_t *ctx, const void *p) |
| 18 | { |
| 19 | struct ping *s = tal(ctx, struct ping); |
| 20 | |
| 21 | if (fromwire_ping(s, p, &s->num_pong_bytes, &s->ignored)) |
| 22 | return s; |
| 23 | return tal_free(s); |
| 24 | } |
| 25 | |
| 26 | static bool equal(const struct ping *x, const struct ping *y) |
| 27 | { |