Filling in information about the server in the tap listener

This commit is contained in:
HOMEPC\eaosk 2022-11-01 10:04:25 +03:00 committed by Alexis La Goutte
parent 212c90f6d5
commit cabe0e0239
1 changed files with 2 additions and 0 deletions

View File

@ -429,6 +429,8 @@ ssl_follow_tap_listener(void *tapdata, packet_info *pinfo, epan_dissect_t *edt _
if (follow_info->client_port == 0) {
follow_info->client_port = pinfo->srcport;
copy_address(&follow_info->client_ip, &pinfo->src);
follow_info->server_port = pinfo->destport;
copy_address(&follow_info->server_ip, &pinfo->dst);
}
if (addresses_equal(&follow_info->client_ip, &pinfo->src) &&
follow_info->client_port == pinfo->srcport) {