Align socket monitoring with compact address profiles
This commit is contained in:
1 parent
77aab42980
commit
9f3dca53d6
2 files changed
+1
-2
No files matched your search
@@ -1004,7 +1004,6 @@ static void send_socket_list(struct control_server* server, struct control_clien
|
||||
info[i].mapping = sock->address_profile.mapping; info[i].inbound = sock->address_profile.inbound;
|
||||
info[i].source = sock->address_profile.source;
|
||||
info[i].is_tcp = sock->is_tcp; info[i].generation = sock->generation;
|
||||
info[i].evidence_id = sock->address_profile.evidence_id; info[i].checked_at = sock->address_profile.checked_at;
|
||||
|
||||
/* Общий внешний адрес подтверждён измерениями владельца. */
|
||||
info[i].nat_ip[0] = '\0';
|
||||
|
||||
@@ -128,7 +128,7 @@ struct etcpmon_socket_info {
|
||||
uint8_t config_type; /* CFG_SERVER_TYPE_PUBLIC/NAT/PRIVATE */
|
||||
uint8_t mapping, inbound, source; /* ADDRESS_MAP_* / ADDRESS_IN_* / ADDRESS_SOURCE_* */
|
||||
uint8_t is_tcp;
|
||||
uint64_t generation, evidence_id, checked_at;
|
||||
uint64_t generation;
|
||||
char nat_ip[46]; /* Null-terminated NAT IP address string */
|
||||
uint16_t nat_port; /* NAT port (host byte order) */
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user