| 1179 | } |
| 1180 | |
| 1181 | static struct io_plan *recv_req(struct io_conn *conn, |
| 1182 | const u8 *msg, |
| 1183 | struct info *info) |
| 1184 | { |
| 1185 | enum channeld_wire t = fromwire_peektype(msg); |
| 1186 | |
| 1187 | switch (t) { |
| 1188 | /* We ignore these */ |
| 1189 | case WIRE_CHANNELD_SEND_ERROR: |
| 1190 | case WIRE_CHANNELD_SENDING_COMMITSIG_REPLY: |
| 1191 | case WIRE_CHANNELD_GOT_REVOKE_REPLY: |
| 1192 | case WIRE_CHANNELD_GOT_COMMITSIG_REPLY: |
| 1193 | goto out; |
| 1194 | case WIRE_CHANNELD_INIT: |
| 1195 | info->channel = handle_init(info, msg); |
| 1196 | goto out; |
| 1197 | case WIRE_CHANNELD_BLOCKHEIGHT: |
| 1198 | handle_blockheight(info, msg); |
| 1199 | goto out; |
| 1200 | case WIRE_CHANNELD_OFFER_HTLC: |
| 1201 | handle_offer_htlc(info, msg); |
| 1202 | goto out; |
| 1203 | case WIRE_CHANNELD_FEERATES: |
| 1204 | handle_feerates(info, msg); |
| 1205 | goto out; |
| 1206 | case WIRE_CHANNELD_FUNDING_DEPTH: |
| 1207 | handle_funding_depth(info, msg); |
| 1208 | goto out; |
| 1209 | case WIRE_CHANNELD_DEV_MEMLEAK: |
| 1210 | handle_dev_memleak(info, msg); |
| 1211 | goto out; |
| 1212 | case WIRE_CHANNELD_DEV_PEER_SHACHAIN: |
| 1213 | handle_dev_peer_shachain(info, msg); |
| 1214 | goto out; |
| 1215 | /* No incoming HTLCs, these should not happen */ |
| 1216 | case WIRE_CHANNELD_FULFILL_HTLC: |
| 1217 | case WIRE_CHANNELD_FAIL_HTLC: |
| 1218 | /* Don't try closing this channel! */ |
| 1219 | case WIRE_CHANNELD_SEND_SHUTDOWN: |
| 1220 | /* Don't try to splice */ |
| 1221 | case WIRE_CHANNELD_SPLICE_INIT: |
| 1222 | case WIRE_CHANNELD_SPLICE_UPDATE: |
| 1223 | case WIRE_CHANNELD_SPLICE_SIGNED: |
| 1224 | case WIRE_CHANNELD_SPLICE_CONFIRMED_INIT: |
| 1225 | case WIRE_CHANNELD_SPLICE_CONFIRMED_SIGNED: |
| 1226 | case WIRE_CHANNELD_SPLICE_SENDING_SIGS: |
| 1227 | case WIRE_CHANNELD_SPLICE_CONFIRMED_UPDATE: |
| 1228 | case WIRE_CHANNELD_SPLICE_LOOKUP_TX: |
| 1229 | case WIRE_CHANNELD_SPLICE_LOOKUP_TX_RESULT: |
| 1230 | case WIRE_CHANNELD_SPLICE_FEERATE_ERROR: |
| 1231 | case WIRE_CHANNELD_SPLICE_FUNDING_ERROR: |
| 1232 | case WIRE_CHANNELD_SPLICE_ABORT: |
| 1233 | case WIRE_CHANNELD_STFU: |
| 1234 | case WIRE_CHANNELD_CONFIRMED_STFU: |
| 1235 | case WIRE_CHANNELD_ABORT: |
| 1236 | /* Not supported */ |
| 1237 | case WIRE_CHANNELD_DEV_REENABLE_COMMIT: |
| 1238 | case WIRE_CHANNELD_DEV_QUIESCE: |
nothing calls this directly
no test coverage detected