[ntp:hackers] ntp and signalled IO
Poul-Henning Kamp
phk at phk.freebsd.dk
Tue Apr 18 15:18:52 UTC 2006
In message <4445020B.4070102 at sun.com>, Brian Utterback writes:
>> This silliness in NTPD has to stop at some point soon anwyay.
>>
>> Doesn't Solaris have IP_RECVDSTADDR ?
>
>Shore do.
Then the multi-interface thing is not an issue.
>I am not sure that this is the only tricky part. My point with the
>recvbuffs is that ntpd currently tries to read messages as quickly
>as possible, and timestamps them as they are read [...]
Needless to say SO_TIMESTAMP is the right solution here.
I have not tried eventlib without SO_TIMESTAMP, but it needs to
be handled sensibly.
>So, is there a way in eventlib to prioritize the events in this
>manner?
Not that I know of.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the hackers
mailing list