Lines Matching refs:sources
39 struct in_addr *sources)
60 imsfp->imsf_slist[i] = sources[i].s_addr;
70 //printf("ioctl error, group: %s, source: %s\n",inet_ntoa(gp->igmpg_addr.s_addr),inet_ntoa(sources[0].s_addr));
200 create_membership(struct in_addr group,int fmode,int numsources,struct in_addr sources[MAX_ADDRS])
209 member->membership.sources[i].s_addr = sources[i].s_addr;
267 int find_source(struct in_addr sr,int nsources,struct in_addr *sources)
272 if (sources[i].s_addr == sr.s_addr)
281 update_multi(igmp_router_t *igmprt,struct in_addr group,int fmode,int nsources,struct in_addr sources[MAX_ADDRS])
296 if (find_source(sources[i],member->membership.numsources,member->membership.sources) == FALSE){
298 member->membership.sources[member->membership.numsources].s_addr = sources[i].s_addr;
304 if (find_source(sources[i],member->membership.numsources,member->membership.sources) == FALSE){
305 sr[k].s_addr = sources[i].s_addr;
310 member->membership.sources[i].s_addr = sr[i].s_addr;
317 if (find_source(member->membership.sources[i],nsources,sources) == FALSE){
318 sr[k].s_addr = member->membership.sources[i].s_addr;
323 member->membership.sources[i].s_addr = sr[i].s_addr;
328 if (find_source(member->membership.sources[i],nsources,sources) == TRUE){
329 sr[k].s_addr = member->membership.sources[i].s_addr;
334 member->membership.sources[i].s_addr = sr[i].s_addr;
337 //printf("update membership database group: %s, source: %s\n",inet_ntoa(group.s_addr),inet_ntoa(member->membership.sources[0]
341 member = create_membership(group,fmode,nsources,sources);