Skip to content

Commit

Permalink
Always send both 'remote_time' and 'drift' fields, why not.
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed May 17, 2012
1 parent 20f8ba0 commit 87629a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fp_ssl.c
Expand Up @@ -777,7 +777,7 @@ static void fingerprint_ssl(u8 to_srv, struct packet_flow* f,

struct ssl_sig_record* m = sig->matched;

start_observation("ssl request", 4, to_srv, f);
start_observation("ssl request", 5, to_srv, f);

if (m) {

Expand All @@ -799,15 +799,16 @@ static void fingerprint_ssl(u8 to_srv, struct packet_flow* f,
if ((sig->flags & (SSL_FLAG_RTIME | SSL_FLAG_STIME)) == 0) {

s64 drift = ((s64)sig->recv_time) - sig->remote_time;

OBSERVF("drift", "%lld", drift);

} else {

OBSERVF("remote_time", "%u", sig->remote_time);
add_observation_field("drift", NULL);

}

OBSERVF("remote_time", "%u", sig->remote_time);

add_observation_field("raw_sig", dump_sig(sig));

score_nat(to_srv, f, sig);
Expand Down

0 comments on commit 87629a1

Please sign in to comment.