]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
findbcastinter should be using INT_BCASTOPEN flag
authorDanny Mayer <mayer@ntp.org>
Tue, 16 Nov 2004 01:45:45 +0000 (20:45 -0500)
committerDanny Mayer <mayer@ntp.org>
Tue, 16 Nov 2004 01:45:45 +0000 (20:45 -0500)
bk: 41995bc9s5kdbAmidiVagt8UN5ZMEg

ntpd/ntp_io.c

index 6ea1faf385be7d0269c24942de39772a7eef54f0..374b67140c6d978d8118e452f3bc0674997b3625 100644 (file)
@@ -2213,7 +2213,7 @@ findbcastinter(
                   stoa(addr));
 #endif
 
-       i = find_addr_in_list(addr);
+       i = find_flagged_addr_in_list(addr, INT_BCASTOPEN|INT_MCASTOPEN);
        if(i >= 0)
             return (&inter_list[i]);
 
@@ -2229,7 +2229,7 @@ findbcastinter(
                 * address or the network portion of the IP address.
                 * Sloppy.
                 */
-               if (!(inter_list[i].flags & INT_BROADCAST))
+               if (!(inter_list[i].flags & INT_BCASTOPEN))
                        continue;
                if(addr->ss_family == AF_INET) {
                        if (SOCKCMP(&inter_list[i].bcast, addr))