/specs/dsniff/dsniff-2.4-sysconf_clocks.patch

http://github.com/repoforge/rpms · Patch · 26 lines · 21 code · 5 blank · 0 comment · 0 complexity · 594db7a260982d54556c041160e9478c MD5 · raw file

  1. Patch by <kees@ubuntu.com> for dsniff >= 2.4b1, which adds a clock fix. It
  2. was improved by Robert Scheck <robert@fedoraproject.org> to work with older
  3. Linux kernel versions, too.
  4. --- dsniff-2.4b1/sshow.c 2007-12-03 23:50:12.000000000 +0100
  5. +++ dsniff-2.4b1/sshow.c.sysconf_clocks 2007-12-03 23:53:12.000000000 +0100
  6. @@ -217,6 +217,9 @@
  7. {
  8. clock_t delay;
  9. int payload;
  10. +#if defined(_SC_CLK_TCK)
  11. + long CLK_TCK = sysconf(_SC_CLK_TCK);
  12. +#endif
  13. delay = add_history(session, 0, cipher_size, plain_range);
  14. @@ -265,6 +268,9 @@
  15. clock_t delay;
  16. int skip;
  17. range string_range;
  18. +#if defined(_SC_CLK_TCK)
  19. + long CLK_TCK = sysconf(_SC_CLK_TCK);
  20. +#endif
  21. delay = add_history(session, 1, cipher_size, plain_range);