Lines Matching refs:info_p
150 * info_p: pointer to data of multicast receiver information
157 parse_options(int argc, char *argv[], struct mcast_rcv_info *info_p, int *bg_p)
238 info_p->timeout = opt_d;
273 info_p->mainfo = get_maddrinfo(family, maddr, portnum);
274 info_p->greq = create_group_info(ifindex, info_p->mainfo);
280 info_p->gsf =
281 create_source_filter(ifindex, info_p->mainfo, fmode,
297 * info_p: pointer to data of multicast receiver information
302 int create_mcast_socket(struct mcast_rcv_info *info_p)
308 switch (info_p->mainfo->ai_family) {
323 sd = socket(info_p->mainfo->ai_family, info_p->mainfo->ai_socktype,
324 info_p->mainfo->ai_protocol);
329 if (bind(sd, info_p->mainfo->ai_addr, info_p->mainfo->ai_addrlen) < 0)
339 (sd, level, MCAST_JOIN_GROUP, info_p->greq,
344 if (info_p->gsf) {
346 (sd, level, MCAST_MSFILTER, info_p->gsf,
347 GROUP_FILTER_SIZE(info_p->gsf->gf_numsrc)))
362 * info_p: pointer to data of multicast receiver information
367 void receive_mcast(struct mcast_rcv_info *info_p)
377 sd = create_mcast_socket(info_p);
416 if (info_p->timeout)
417 if (info_p->timeout < difftime(time(NULL), start_time))