Cristian Maglie
a33c93b194
Ethernet: fixed wrong handling of timeouts in DHCP
...
The signed math doesn't handle correctly cases where the lease
time is set to infinity (0xFFFFFFFF).
Fixes #2571
Fixes #2601
Fixes #2642
Fixes #985
2015-07-14 09:57:01 +02:00
Cristian Maglie
50dff341f2
Ethernet: fix calculation of T2 in DHCP
2015-07-14 09:57:01 +02:00
Cristian Maglie
2b089e6b58
Ehternet: removed useless _lastCheck field in DHCP
...
it seems that _lastCheck, besides the name, was simply used as flag
to detect if _secTimeout is initialized. Now the check is removed
and _secTimeout is initalized in the proper place.
2015-07-14 09:57:01 +02:00
Cristian Maglie
79fde3a636
Ethernet: fixed upcast of byte-pointer
2014-10-28 17:55:52 +01:00
Cristian Maglie
618f537691
Ethernet library refactoring
...
- removed arch folder
- merged socket.c and w5100.c for SAM and AVR, this is preparatory
to make library vanilla
2014-01-05 08:50:52 +01:00
Fede85
9454816162
Ethernet, SD and LiquidCrystal to the new library format
2013-06-26 19:13:04 +02:00