]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Change to put address in result rather than 5.
authorDanny Mayer <mayer@ntp.org>
Sun, 27 Apr 2003 03:04:38 +0000 (23:04 -0400)
committerDanny Mayer <mayer@ntp.org>
Sun, 27 Apr 2003 03:04:38 +0000 (23:04 -0400)
bk: 3eab48c67iMMRaE2sc_qxKvsA3IKxg

ntpd/ntp_request.c

index 73f9e372ade7285173cbae69a39e845d8095054c..e1f46176c13a6e13d278eec66e3f90e6a3b1fad4 100644 (file)
@@ -728,7 +728,7 @@ peer_list_sum(
                                ips->srcadr = GET_INADDR(pp->srcadr);
                                if (client_v6_capable)
                                        ips->v6_flag = 0;
-/* XXX This code is buggy. Replaced with a straightforward assignment
+/* XXX PDM This code is buggy. Need to replace with a straightforward assignment */
                                ips->dstadr = (pp->processed) ?
                                        pp->cast_flags == MDF_BCAST ?
                                        GET_INADDR(pp->dstadr->bcast):
@@ -736,9 +736,8 @@ peer_list_sum(
                                        GET_INADDR(pp->dstadr->sin) ?
                                        GET_INADDR(pp->dstadr->sin):
                                        GET_INADDR(pp->dstadr->bcast):
-                                       1 : 5;
-*/
-                               ips->dstadr = GET_INADDR(pp->dstadr->sin);
+                                       1 : GET_INADDR(pp->dstadr->sin);
+
                                skip = 0;
                        }
                        if (!skip){ 
@@ -831,7 +830,7 @@ peer_info (
                        ip->srcadr6 = GET_INADDR6(pp->srcadr);
                        ip->v6_flag = 1;
                } else {
-/* XXX This code is buggy. Replaced with a straightforward assignment
+/* XXX PDM This code is buggy. Need to replace with a straightforward assignment */
                        ip->dstadr = (pp->processed) ?
                                pp->cast_flags == MDF_BCAST ?
                                GET_INADDR(pp->dstadr->bcast):
@@ -839,9 +838,8 @@ peer_info (
                                GET_INADDR(pp->dstadr->sin) ?
                                GET_INADDR(pp->dstadr->sin):
                                GET_INADDR(pp->dstadr->bcast):
-                               2 : 6;
-*/
-                       ip->dstadr = GET_INADDR(pp->dstadr->sin);
+                               2 : GET_INADDR(pp->dstadr->sin);
+
                        ip->srcadr = GET_INADDR(pp->srcadr);
                        if (client_v6_capable)
                                ip->v6_flag = 0;