| 762 | } |
| 763 | |
| 764 | static void handle_ping_in(struct peer *peer, const u8 *msg) |
| 765 | { |
| 766 | u8 *pong; |
| 767 | |
| 768 | if (!check_ping_make_pong(NULL, msg, &pong)) { |
| 769 | send_warning(peer, "Invalid ping %s", tal_hex(msg, msg)); |
| 770 | return; |
| 771 | } |
| 772 | |
| 773 | if (pong) |
| 774 | inject_peer_msg(peer, take(pong)); |
| 775 | } |
| 776 | |
| 777 | static void handle_ping_reply(struct peer *peer, const u8 *msg) |
| 778 | { |
no test coverage detected