patch-sshow_c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $Id$
  2. --- dsniff-2.4.orig/sshow.c 2001-03-19 07:52:15.000000000 +0100
  3. +++ dsniff-2.4/sshow.c 2008-10-10 14:53:48.000000000 +0200
  4. @@ -15,6 +15,7 @@
  5. #include <sys/types.h>
  6. #include <sys/times.h>
  7. +#include <time.h>
  8. #include <netinet/in_systm.h>
  9. #include <netinet/in.h>
  10. @@ -222,7 +223,7 @@ client_to_server(struct tcp_stream *ts,
  11. if (debug)
  12. printf("- %s -> %s: DATA (%s bytes, %.2f seconds)\n",
  13. s_saddr(ts), s_daddr(ts), s_range(plain_range),
  14. - (float)delay / CLK_TCK);
  15. + (float)delay / CLOCKS_PER_SEC);
  16. if (debug > 1)
  17. print_data(&ts->server, cipher_size);
  18. @@ -270,7 +271,7 @@ server_to_client(struct tcp_stream *ts,
  19. if (debug)
  20. printf("- %s <- %s: DATA (%s bytes, %.2f seconds)\n",
  21. s_saddr(ts), s_daddr(ts), s_range(plain_range),
  22. - (float)delay / CLK_TCK);
  23. + (float)delay / CLOCKS_PER_SEC);
  24. if (debug > 1)
  25. print_data(&ts->client, cipher_size);
  26. @@ -299,7 +300,7 @@ server_to_client(struct tcp_stream *ts,
  27. if (session->state == 1 &&
  28. #ifdef USE_TIMING
  29. - now - get_history(session, 2)->timestamp >= CLK_TCK &&
  30. + now - get_history(session, 2)->timestamp >= CLOCKS_PER_SEC &&
  31. #endif
  32. session->protocol == 1 &&
  33. (session->history.directions & 7) == 5 &&