]>
Commit | Line | Data |
---|---|---|
ef66e3ea AM |
1 | diff -urN dsniff-2.4.org/sshow.c dsniff-2.4/sshow.c |
2 | --- dsniff-2.4.org/sshow.c 2003-11-08 22:37:23.000000000 +0100 | |
3 | +++ dsniff-2.4/sshow.c 2003-11-08 22:55:31.000000000 +0100 | |
4 | @@ -25,6 +25,7 @@ | |
5 | #include <stdio.h> | |
6 | #include <stdlib.h> | |
7 | #include <string.h> | |
8 | +#include <time.h> | |
9 | #include <ctype.h> | |
10 | #include <unistd.h> | |
11 | #include <signal.h> | |
12 | @@ -222,7 +223,7 @@ | |
13 | if (debug) | |
14 | printf("- %s -> %s: DATA (%s bytes, %.2f seconds)\n", | |
15 | s_saddr(ts), s_daddr(ts), s_range(plain_range), | |
16 | - (float)delay / CLK_TCK); | |
17 | + (float)delay / CLOCKS_PER_SEC); | |
18 | if (debug > 1) | |
19 | print_data(&ts->server, cipher_size); | |
20 | ||
21 | @@ -270,7 +271,7 @@ | |
22 | if (debug) | |
23 | printf("- %s <- %s: DATA (%s bytes, %.2f seconds)\n", | |
24 | s_saddr(ts), s_daddr(ts), s_range(plain_range), | |
25 | - (float)delay / CLK_TCK); | |
26 | + (float)delay / CLOCKS_PER_SEC); | |
27 | if (debug > 1) | |
28 | print_data(&ts->client, cipher_size); | |
29 | ||
30 | @@ -299,7 +300,7 @@ | |
31 | ||
32 | if (session->state == 1 && | |
33 | #ifdef USE_TIMING | |
34 | - now - get_history(session, 2)->timestamp >= CLK_TCK && | |
35 | + now - get_history(session, 2)->timestamp >= CLOCKS_PER_SEC && | |
36 | #endif | |
37 | session->protocol == 1 && | |
38 | (session->history.directions & 7) == 5 && |