[ntp:questions] 1 Machine, 2 NICs, 2 Instances of ntpd; Possible?

Danny Mayer mayer at ntp.isc.org
Fri Mar 14 04:19:13 UTC 2008


Johnson, John-P63914 wrote:
>> One instance of ntpd is all that is necessary to perform both of these
> 
>> tasks at the same time.
> 
> 
> I realize that what I am trying to do is very easily accomplished with
> one
> instance of ntpd.  However, I assure you that the manner in which I am
> trying to accomplish it is absolutely necessary for my particular
> application.
> 

There is something here that you are not telling us.

> I found a definitive answer in the code.
> 
> ntp_io.c, line 1232
> 
> /*
>  * Check to see if we are going to use the interface
>  * If we don't use it we mark it to drop any packet
>  * received but we still must create the socket and
>  * bind to it. This prevents other apps binding to it
>  * and potentially causing problems with more than one
>  * process fiddling with the clock
>  */
> 
> This explains why an instance was still receiving packets from an
> interface
> that was not specified with '-I'.
> 

Not quite. It's more complicated than that. There are other addresses 
involved like the wildcard addresses and the loopback addresses.

Danny



More information about the questions mailing list