lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9299] SNTP round-trip delay compensation


From: Daniel Elstner
Subject: [lwip-devel] [patch #9299] SNTP round-trip delay compensation
Date: Fri, 24 Mar 2017 08:05:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9299>

                 Summary: SNTP round-trip delay compensation
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: danielk
            Submitted on: Fri 24 Mar 2017 01:05:07 PM CET
                Category: apps
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The attached patch implements the calculation for SNTP round-trip delay
compensation as defined in RFC 4330. It would be great if this could go into
lwIP proper. I also refactored the NTP timestamp handling a bit to keep things
manageable.

One little catch: The compensation requires compiler support for 64-bit
arithmetic. Since round-trip compensation is disabled by default, I hope this
is acceptable. However, 64 bit integers are not covered by arch.h, so I
defined these types locally for now. But it might be better to put the
typedefs into arch.h as optional feature.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 24 Mar 2017 01:05:07 PM CET  Name:
0001-SNTP-Implement-round-trip-delay-compensation.patch  Size: 14kB   By:
danielk
SNTP round-trip compensation, take 1
<http://savannah.nongnu.org/patch/download.php?file_id=40113>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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