| 848 | } |
| 849 | |
| 850 | static void handle_ping_in(struct peer *peer, const u8 *msg) |
| 851 | { |
| 852 | u8 *pong; |
| 853 | |
| 854 | if (!check_ping_make_pong(NULL, msg, &pong)) { |
| 855 | send_warning(peer, "Invalid ping %s", tal_hex(msg, msg)); |
| 856 | return; |
| 857 | } |
| 858 | |
| 859 | if (pong) |
| 860 | inject_peer_msg(peer, take(pong)); |
| 861 | } |
| 862 | |
| 863 | static void handle_ping_reply(struct peer *peer, const u8 *msg) |
| 864 | { |
no test coverage detected