On 8/16/2010 1:06 AM, John Warburton wrote:
> Hello All
> 
> I seem to be having a problem with NTP broadcastclient on Solaris 10.
> It seems to be ignoring any packets that get sent to the UDP broadcast
> interface.
> 
> I have tried this with the following versions of NTP:
> ntp-4.1.1 (yes, really)
> ntp-4.2.6p2
> ntp-dev-4.2.7p41
> SUNWntp4u (4.2.5p...@1.1845-o)
> 
> # cat /etc/inet/ntp.conf
> disable auth
> driftfile /var/ntp/ntp.drift
> broadcastclient
> 
> I see the packets on the network:
>   45.3.255.2 -> BROADCAST    NTP  broadcast [st=5] (2010-08-16
> 01:01:24.08884)
>   45.3.255.3 -> BROADCAST    NTP  broadcast [st=5] (2010-08-16
> 01:02:21.70679)
>   45.3.255.2 -> BROADCAST    NTP  broadcast [st=5] (2010-08-16
> 01:02:28.08907)
>   45.3.255.3 -> BROADCAST    NTP  broadcast [st=5] (2010-08-16
> 01:03:25.70711)
> 
> NTPd sets up the broadcast interface on fd 20, then at the last
> moment, says it will drop them
> 
> bind(20) AF_INET, addr 0.0.0.0%0#123, flags 0x89
> flags for fd 20: 0x1082
> Searching for addr 0.0.0.0 in list of addresses - NOT FOUND
> Added addr 0.0.0.0 to list of addresses
> addto_syslog: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
> created interface #0: fd=20, bfd=-1, name=v4wildcard, flags=0x89,
> scope=0, sin=0.0.0.0, bcast=0.0.0.0, mask=255.255.255.255, Disabled:
> Dumping interface: 1030e0
> fd = 20
> ...
> interface_action: interface wildcard default wildcard drop
> 
> 
> Then we see the daemon ignore the packets:
> ignore on (10) fd=20 from 45.3.255.2
> ignore on (10) fd=20 from 45.3.255.2
> 
> Full debug details below
> 
> Note that Sun's NTP3 implementation works fine - SUNWntp (xntpd 3-5.93e
> +sun), and so do RHEL 5.1 clients (ntp-4.2.2p1-7.el5.x86_64) on the
> same subnet & config
> 
> Any ideas what I am doing wrong?
> 
> Thanks
> 
> John

fd=20 is the IPv4 wildcard interface and should not be receiving any
packets. The real broadcast client is fd=25 and it appears not to be
receiving the packets. Assuming that 45.3.255.2 is the broadcast server
then it should be received on fd=25. Your trace (above) does not show
the IP addresses so it makes it useless. This has nothing to do with
auth being disabled, it just doesn't get that far. This shows the
broadcast client being set up:

> Broadcast enabled on socket 25 for address 45.3.255.127
> bind(25) AF_INET, addr 45.3.255.127%0#123, flags 0x39
> flags for fd 25: 0x1082
> addto_syslog: io_setbclient: Opened broadcast client on interface #3
> bge0
> setting SO_REUSEADDR on l...@127.0.0.1 to off
> setting SO_REUSEADDR on b...@45.3.255.68 to off
> io_setbclient: Opened broadcast clients

and this is what should be receiving the broadcast packets. You shut off
the log too early to see if it was seeing the broadcast packets to
45.3.255.127. You should also send us your ntp.conf. I don't know what's
wrong here on the basis of what you sent. Try using -D4 when you run
this and let it run longer.

Danny
_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions

Reply via email to