[Top][All Lists]
[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/
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, (continued)
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/07
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Kieran Mansley, 2007/03/07
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/07
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Kieran Mansley, 2007/03/07
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/07
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/11
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Simon Goldschmidt, 2007/03/11
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/11
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Simon Goldschmidt, 2007/03/11
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/11
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c,
Dmitry Potapov <=
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Simon Goldschmidt, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Kieran Mansley, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Dmitry Potapov, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Dmitry Potapov, 2007/03/12
- [lwip-devel] [patch #5785] Integrate SNMP initialization in tcpip.c, Frédéric Bernon, 2007/03/12