Home | History | Annotate | Download | only in ntpd

Lines Matching refs:ips

718 	struct info_peer_summary *	ips;
724 ips = (struct info_peer_summary *)prepare_pkt(srcadr, inter, inpkt,
726 for (pp = peer_list; pp != NULL && ips != NULL; pp = pp->p_link) {
735 ips->srcadr6 = SOCK_ADDR6(&pp->srcadr);
736 ips->v6_flag = 1;
738 ips->dstadr6 = SOCK_ADDR6(&pp->dstadr->sin);
740 ZERO(ips->dstadr6);
742 ips->srcadr = NSRCADR(&pp->srcadr);
744 ips->v6_flag = 0;
748 ips->dstadr = NSRCADR(&pp->dstadr->sin);
751 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
753 ips->dstadr = NSRCADR(&pp->dstadr->sin);
754 if (!ips->dstadr)
755 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
759 ips->dstadr = 0;
763 ips->srcport = NSRCPORT(&pp->srcadr);
764 ips->stratum = pp->stratum;
765 ips->hpoll = pp->hpoll;
766 ips->ppoll = pp->ppoll;
767 ips->reach = pp->reach;
768 ips->flags = 0;
770 ips->flags |= INFO_FLAG_SYSPEER;
772 ips->flags |= INFO_FLAG_CONFIG;
774 ips->flags |= INFO_FLAG_REFCLOCK;
776 ips->flags |= INFO_FLAG_PREFER;
778 ips->flags |= INFO_FLAG_BURST;
780 ips->flags |= INFO_FLAG_SEL_CANDIDATE;
782 ips->flags |= INFO_FLAG_SHORTLIST;
783 ips->hmode = pp->hmode;
784 ips->delay = HTONS_FP(DTOFP(pp->delay));
786 HTONL_FP(&ltmp, &ips->offset);
787 ips->dispersion = HTONS_FP(DTOUFP(SQRT(pp->disp)));
789 ips = (struct info_peer_summary *)more_pkt();