Skip to content

Commits on Source 4

  • Hal Murray's avatar
    0ab49c87
  • Hal Murray's avatar
    Remove USE_PACKET_TIMESTAMP · a893edc7
    Hal Murray authored
    It stopped working when ntp_packetstamp.c was split out
    of ntp_io.c.  USE_PACKET_TIMESTAMP was defined in ntp_packetstamp.c
    but referenced in ntp_io.c.
    
    All modern systems support some form of capturing recv
    time stamps via recvmsg.  The current code is using a time
    stamp from shortly after the select returns.  We can restore
    that action if necessary.  It seems to work OK on lightly
    loaded systems.  (Very old code used SIGIO to capture
    time stamps.)
    a893edc7
  • Hal Murray's avatar
    Fix for Issue #335 (-Wsign-conversion) · c4dad229
    Hal Murray authored
    c4dad229
  • Hal Murray's avatar
    General cleanup of ntpd/ntp_packetstamp.c · 7bb7a656
    Hal Murray authored
    It will crash if it can't use one of:
      SO_BINTIME, SO_TIMESTAMPNS,or SO_TIMESTAMP
    It will crash if recvmsg doesn't get the expected timestamp data.
    Hack around SO_BINTIME on FreeBSD not working with IPv6.
    7bb7a656
Loading