[Top][All Lists]

[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


                 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



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

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:
SNTP round-trip compensation, take 1


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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