Add debug text when the New connection ID mismatch error happens.
@@ -916,6 +916,13 @@ int picoquic_enqueue_cnxid_stash(picoquic_cnx_t * cnx,
is_duplicate = 1;
}
else {
+ DBG_PRINTF("Path %d, Cnx_id: %02x%02x%02x%02x..., Reset = %02x%02x%02x%02x... vs %02x%02x%02x%02x...",
+ i,
+ cnx->path[i]->remote_cnxid.id[0], cnx->path[i]->remote_cnxid.id[1],
+ cnx->path[i]->remote_cnxid.id[2], cnx->path[i]->remote_cnxid.id[3],
+ secret_bytes[0], secret_bytes[1], secret_bytes[2], secret_bytes[3],
+ cnx->path[i]->reset_secret[0], cnx->path[i]->reset_secret[1],
+ cnx->path[i]->reset_secret[2], cnx->path[i]->reset_secret[3]);
ret = PICOQUIC_TRANSPORT_PROTOCOL_VIOLATION;
}
break;
