]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit - contrib/ntp/ntpd/ntp_io.c
MRC r223626:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2012 07:27:59 +0000 (07:27 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2012 07:27:59 +0000 (07:27 +0000)
commite3a7015b09a55cecddd07f4ee5c2ece09f29b1b1
tree052f9f08e68013602f42f25254f5943dd7985654
parent4cb8d9156eb21ffebf631319d13f1f741da4f4f3
MRC r223626:

 Compare port numbers correctly.  They are stored by SRCPORT()
 in host byte order, so we need to compare them as such.
 Properly compare IPv6 addresses as well.

 This allows the, by default, 8 badaddrs slots per address
 family to work correctly and only print sendto() errors once.

 The change is no longer applicable to any latest upstream versions.

 Approved by: roberto
 Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@231249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/ntp/ntpd/ntp_io.c