Return true if it's an unknown ODD message. cursor is a tal ptr. */
| 109 | |
| 110 | /* Return true if it's an unknown ODD message. cursor is a tal ptr. */ |
| 111 | bool is_unknown_msg_discardable(const u8 *cursor) |
| 112 | { |
| 113 | enum peer_wire t = fromwire_peektype(cursor); |
| 114 | return unknown_type(t) && (t & 1); |
| 115 | } |
| 116 | |
| 117 | /* Extract channel_id from various packets, return true if possible. */ |
| 118 | bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id) |
no test coverage detected