Re: [ULOGD RFC 03/30] Replace timer code by working version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Holger Eitzenberger wrote:
Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> writes:

Replace existing timer code by simple and more importantly working
version.  Current resolution is one second, which may be easily
extended if need be.
You lose precision here using time(), I think the way to go are the
timeradd(), timercmp(), timersub(), etc. functions that lives in
sys/time.h. I have a patch for those here that I want to test.

Patches welcome :)

The inititial timer code was incomplete and IMO too complicated for what
it did.  AFAIRK at the time I started hacking on that there wasn't even
a single user of that API.

This patch turns the timers into simple and more importantly working
timers which with 1-sec resolution.  They might easily be adjusted or
improved later on.
+

Agreed, from what I remeber about ulogd2 and our discussions there
doesn't seem to be any need for higher precision. I'll look into
the details later.

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux