| 468 | struct custommsg_payload *); |
| 469 | |
| 470 | static void handle_custommsg_in(struct lightningd *ld, const u8 *msg) |
| 471 | { |
| 472 | struct custommsg_payload *p = tal(NULL, struct custommsg_payload); |
| 473 | |
| 474 | if (!fromwire_connectd_custommsg_in(p, msg, &p->peer_id, &p->msg)) { |
| 475 | log_broken(ld->log, "Malformed custommsg: %s", |
| 476 | tal_hex(tmpctx, msg)); |
| 477 | tal_free(p); |
| 478 | return; |
| 479 | } |
| 480 | |
| 481 | plugin_hook_call_custommsg(ld, NULL, p); |
| 482 | } |
| 483 | |
| 484 | static unsigned connectd_msg(struct subd *connectd, const u8 *msg, const int *fds) |
| 485 | { |
no test coverage detected