Lines Matching defs:ips
726 register struct info_peer_summary *ips;
736 ips = (struct info_peer_summary *)prepare_pkt(srcadr, inter, inpkt,
738 for (i = 0; i < NTP_HASH_SIZE && ips != 0; i++) {
740 while (pp != 0 && ips != 0) {
751 ips->srcadr6 = SOCK_ADDR6(&pp->srcadr);
752 ips->v6_flag = 1;
754 ips->dstadr6 = SOCK_ADDR6(&pp->dstadr->sin);
756 memset(&ips->dstadr6, 0, sizeof(ips->dstadr6));
763 ips->srcadr = NSRCADR(&pp->srcadr);
765 ips->v6_flag = 0;
769 ips->dstadr = NSRCADR(&pp->dstadr->sin);
772 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
774 ips->dstadr = NSRCADR(&pp->dstadr->sin);
775 if (!ips->dstadr)
776 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
780 ips->dstadr = 0;
786 ips->srcport = NSRCPORT(&pp->srcadr);
787 ips->stratum = pp->stratum;
788 ips->hpoll = pp->hpoll;
789 ips->ppoll = pp->ppoll;
790 ips->reach = pp->reach;
791 ips->flags = 0;
793 ips->flags |= INFO_FLAG_SYSPEER;
795 ips->flags |= INFO_FLAG_CONFIG;
797 ips->flags |= INFO_FLAG_REFCLOCK;
799 ips->flags |= INFO_FLAG_PREFER;
801 ips->flags |= INFO_FLAG_BURST;
803 ips->flags |= INFO_FLAG_SEL_CANDIDATE;
805 ips->flags |= INFO_FLAG_SHORTLIST;
806 ips->hmode = pp->hmode;
807 ips->delay = HTONS_FP(DTOFP(pp->delay));
809 HTONL_FP(<mp, &ips->offset);
810 ips->dispersion = HTONS_FP(DTOUFP(SQRT(pp->disp)));
813 ips = (struct info_peer_summary *)more_pkt();