lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c


From: Dmitry Potapov
Subject: [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c
Date: Sun, 11 Mar 2007 22:37:20 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070216 Firefox/1.5.0.10

Follow-up Comment #12, patch #5785 (project lwip):

I think there are two alternatives:
1. to add get_arch_time_now() as described in #19167:
2. to add sys_arch_get_tickcount() and two functions (or macros) for
conversation ticks to or from milliseconds.

The problem with the first approach is implementation of get_arch_time_now(),
which should wrap correctly over its maximum value (as I decribed in #19167).

In the second case, we store timestamps in ticks, so converation ticks to
milliseconds is performed only for timeout values (which are relatively
small), so there is no problem with overflow when you calculate milliseconds
by formula (ticks*M/N). And the tick counter wraps naturally without any
effort (you just increment it by one in the timer interrupt). So for those
who makes a port, #2 is simpler and more straightforward.



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5785>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]