Lines Matching refs:ips
715 struct info_peer_summary * ips;
721 ips = (struct info_peer_summary *)prepare_pkt(srcadr, inter, inpkt,
723 for (pp = peer_list; pp != NULL && ips != NULL; pp = pp->p_link) {
732 ips->srcadr6 = SOCK_ADDR6(&pp->srcadr);
733 ips->v6_flag = 1;
735 ips->dstadr6 = SOCK_ADDR6(&pp->dstadr->sin);
737 ZERO(ips->dstadr6);
739 ips->srcadr = NSRCADR(&pp->srcadr);
741 ips->v6_flag = 0;
745 ips->dstadr = NSRCADR(&pp->dstadr->sin);
748 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
750 ips->dstadr = NSRCADR(&pp->dstadr->sin);
751 if (!ips->dstadr)
752 ips->dstadr = NSRCADR(&pp->dstadr->bcast);
756 ips->dstadr = 0;
760 ips->srcport = NSRCPORT(&pp->srcadr);
761 ips->stratum = pp->stratum;
762 ips->hpoll = pp->hpoll;
763 ips->ppoll = pp->ppoll;
764 ips->reach = pp->reach;
765 ips->flags = 0;
767 ips->flags |= INFO_FLAG_SYSPEER;
769 ips->flags |= INFO_FLAG_CONFIG;
771 ips->flags |= INFO_FLAG_REFCLOCK;
773 ips->flags |= INFO_FLAG_PREFER;
775 ips->flags |= INFO_FLAG_BURST;
777 ips->flags |= INFO_FLAG_SEL_CANDIDATE;
779 ips->flags |= INFO_FLAG_SHORTLIST;
780 ips->hmode = pp->hmode;
781 ips->delay = HTONS_FP(DTOFP(pp->delay));
783 HTONL_FP(<mp, &ips->offset);
784 ips->dispersion = HTONS_FP(DTOUFP(SQRT(pp->disp)));
786 ips = (struct info_peer_summary *)more_pkt();