Log fragment bytes and session epochs on normalizer desync

This commit is contained in:
evgeny committed 2026-10-23 18:15:17 +02:00
1 parent 1b7d314d85
commit 8c3fcfd1c8
1 file changed
+4 -1
+4 -1
View File
@@ -357,7 +357,10 @@ static void pn_unpacker_cb(struct ll_queue* q, void* arg) {
uint16_t size = payload[ptr] | (payload[ptr + 1] << 8);
if (!size || size > PKTNORM_MAX_DGRAM_SIZE) {
pn->logic_errors++;
DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "[%s] invalid normalizer size=%u seq=%u", conn->log_name, size, frag->seq);
DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "[%s] invalid normalizer size=%u seq=%u offset=%u fragment_len=%u "
"reset=%u epochs=%016llx/%016llx", conn->log_name, size, frag->seq, ptr, len, conn->reset_count,
(unsigned long long)conn->reset_id, (unsigned long long)conn->peer_reset_id);
log_dump(DEBUG_LEVEL_ERROR, DEBUG_CATEGORY_ETCP, "Invalid normalizer fragment", payload, len < 64 ? len : 64);
etcp_conn_fatal_reinit(conn, "bad fragment size"); break;
}
pn->recvpart = ll_alloc_lldgram(size);