[Top][All Lists]

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

[lwip-devel] [bug #54253] same LCP magic number after power-up.

From: Sergey A. Borshch
Subject: [lwip-devel] [bug #54253] same LCP magic number after power-up.
Date: Thu, 5 Jul 2018 17:23:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.183 Safari/537.36 Vivaldi/1.96.1147.47


                 Summary: same LCP magic number after power-up.
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: dushevny
            Submitted on: Thu 05 Jul 2018 09:23:13 PM UTC
                Category: PPP
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head



magic_init() 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.

 Suggestion: call magic_randomize() somewhere near start of ppp_connect() as
ppp_connect called after modem init which takes random time.


Reply to this item at:


  Message sent via Savannah

reply via email to

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