Refresh both AGENTS guides and clarify module purpose, usage, ownership, threading, return values and wire formats in headers. Remove the unused timeout_heap freed_count field and unimplemented getter.
25 lines
752 B
C
25 lines
752 B
C
/* etcp_debug — форматирование IPv4 в host order и диагностический разбор секций ETCP_DGRAM.
|
|
* ip_to_string возвращает строку по значению. dump_pkt_sections пишет DEBUG категории dump,
|
|
* не меняет пакет и не проверяет его криптографию; состояние pkt/link читается в uasync-потоке. */
|
|
#ifndef ETCP_DEBUG_H
|
|
#define ETCP_DEBUG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#include "etcp_connections.h"
|
|
|
|
typedef struct { char a[16]; } IP_STR;
|
|
|
|
IP_STR ip_to_string(uint32_t ip);
|
|
|
|
void etcp_dump_pkt_sections(struct ETCP_DGRAM* pkt, struct ETCP_LINK* link, int is_send);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|