mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
fa3826a1d3
magic_init() is first time called from ppp_init(), which is called from lwip_init(). If system has no RTC, sys_jiffies() returns same value in this moment after every power-up or system reset. This value used in LCP magic number generation after ppp_connect(), which leads to same magic number after every restart. Subsequent magic_randomize() calls takes place in ppp_input(), after magic number generation. Call magic_randomize() somewhere near start of ppp_connect() (and ppp_listen()) as it might be called later at a random time. Signed-off-by: Sylvain Rochet <gradator@gradator.net> |
||
---|---|---|
.. | ||
api | ||
apps | ||
core | ||
include | ||
netif | ||
Filelists.cmake | ||
Filelists.mk | ||
FILES |