2007-12-07 23:43:11 +00:00
|
|
|
Patch by <kees@ubuntu.com> for dsniff >= 2.4b1, which adds a clock fix. It
|
|
|
|
was improved by Robert Scheck <robert@fedoraproject.org> to work with older
|
|
|
|
Linux kernel versions, too.
|
2007-12-03 22:18:54 +00:00
|
|
|
|
2007-12-07 23:43:11 +00:00
|
|
|
--- dsniff-2.4b1/sshow.c 2007-12-03 23:50:12.000000000 +0100
|
|
|
|
+++ dsniff-2.4b1/sshow.c.sysconf_clocks 2007-12-03 23:53:12.000000000 +0100
|
|
|
|
@@ -217,6 +217,9 @@
|
2007-12-03 22:18:54 +00:00
|
|
|
{
|
|
|
|
clock_t delay;
|
|
|
|
int payload;
|
2007-12-07 23:43:11 +00:00
|
|
|
+#if defined(_SC_CLK_TCK)
|
|
|
|
+ long CLK_TCK = sysconf(_SC_CLK_TCK);
|
|
|
|
+#endif
|
2007-12-03 22:18:54 +00:00
|
|
|
|
|
|
|
delay = add_history(session, 0, cipher_size, plain_range);
|
|
|
|
|
2007-12-07 23:43:11 +00:00
|
|
|
@@ -265,6 +268,9 @@
|
2007-12-03 22:18:54 +00:00
|
|
|
clock_t delay;
|
|
|
|
int skip;
|
|
|
|
range string_range;
|
2007-12-07 23:43:11 +00:00
|
|
|
+#if defined(_SC_CLK_TCK)
|
|
|
|
+ long CLK_TCK = sysconf(_SC_CLK_TCK);
|
|
|
|
+#endif
|
2007-12-03 22:18:54 +00:00
|
|
|
|
|
|
|
delay = add_history(session, 1, cipher_size, plain_range);
|
|
|
|
|