Lines Matching refs:igmps_source
92 if (sr->igmps_source.s_addr == src.s_addr)
234 if (check_src(src->igmps_source,sources,numsrc) == TRUE){
238 set_src[num].s_addr = src->igmps_source.s_addr;
272 if ((check_src_set(sr->igmps_source,old_src_set) == TRUE)&& (check_src(sr->igmps_source,sources,numsrc) == TRUE)){
273 set_src[num].s_addr = sr->igmps_source.s_addr;
283 if (check_src_set(sr->igmps_source,old_src_set) == TRUE) {
284 set_src[num].s_addr=sr->igmps_source.s_addr;
300 if ((check_src_set(sr->igmps_source,old_src_set) == FALSE) && (check_src(sr->igmps_source,sources,numsrc) == TRUE)){
309 if ((check_src(sr->igmps_source,sources,numsrc) == TRUE) && (sr->igmps_timer == 0)){
310 set_src[num].s_addr=sr->igmps_source.s_addr;
320 if (check_src_set(sr->igmps_source,old_src_set) == TRUE) {
321 set_src[num].s_addr=sr->igmps_source.s_addr;
377 if ((check_src_set(src->igmps_source,old_src_set) == FALSE) && check_src(src->igmps_source,sources,numsrc) == TRUE) {
381 if ((check_src_set(src->igmps_source,old_src_set) == TRUE) && check_src(src->igmps_source,sources,numsrc) == FALSE){
384 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
392 if ((check_src_set(src->igmps_source,old_src_set) == FALSE) && (check_src(src->igmps_source,sources,numsrc) == TRUE)){
398 if ((check_src(src->igmps_source,sources,numsrc) == FALSE) && (check_src_set(src->igmps_source,old_src_set) == TRUE)){
401 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
414 set_src[num].s_addr=sr->igmps_source.s_addr;
508 if ((check_src(src->igmps_source,sources,numsrc) == TRUE) && (check_src_set(src->igmps_source,old_src_set) == FALSE)){
531 if ((check_src(sr->igmps_source,sources,numsrc) == FALSE) && (check_src_set(sr->igmps_source,old_src_set) == TRUE )){
533 set_src[num].s_addr=sr->igmps_source.s_addr;
546 set_src[num].s_addr=sr->igmps_source.s_addr;
565 if ((check_src(sr->igmps_source,sources,numsrc) == FALSE) && (check_src_set(sr->igmps_source,old_src_set) == TRUE ) && (sr->igmps_timer > 0)){
567 set_src[num].s_addr=sr->igmps_source.s_addr;
582 set_src[num].s_addr=sr->igmps_source.s_addr;
640 if ((check_src_set(src->igmps_source,old_src_set) == FALSE) && (check_src(src->igmps_source,sources,numsrc) == TRUE)){
646 if ((check_src(src->igmps_source,sources,numsrc) == FALSE) && (check_src_set(src->igmps_source,old_src_set) == TRUE)){
649 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
658 if ((check_src_set(src->igmps_source,old_src_set) == FALSE) && (check_src(src->igmps_source,sources,numsrc) == TRUE)){
662 if ((check_src(src->igmps_source,sources,numsrc) == FALSE) && (check_src_set(src->igmps_source,old_src_set) == TRUE)){
665 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
705 if (check_src(src->igmps_source,sources,numsrc) == TRUE){
717 set_src[num].s_addr=sr->igmps_source.s_addr;
802 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
881 //printf("forward traffic from source: %s\n",inet_ntoa(src->igmps_source));
883 k_proxy_chg_mfc(router,router->igmprt_socket,src->igmps_source.s_addr,gp->igmpg_addr.s_addr,ifp->igmpi_index,1);
890 //printf("stop forwarding traffic from source, timer = 0: %s\n",inet_ntoa(src->igmps_source));
892 k_proxy_chg_mfc(router,router->igmprt_socket,src->igmps_source.s_addr,gp->igmpg_addr.s_addr,ifp->igmpi_index,0);
895 k_proxy_del_mfc (router->igmprt_socket, src->igmps_source.s_addr, gp->igmpg_addr.s_addr);
931 printf("suggest to forward traffic from src: %s\n",inet_ntoa(src->igmps_source));
933 k_proxy_chg_mfc(router,router->igmprt_socket,src->igmps_source.s_addr,gp->igmpg_addr.s_addr,ifp->igmpi_index,1);
940 printf("not forward traffic from src: %s\n",inet_ntoa(src->igmps_source));
942 k_proxy_chg_mfc(router,router->igmprt_socket,src->igmps_source.s_addr,gp->igmpg_addr.s_addr,ifp->igmpi_index,0);
1196 src_sup_lmqi[numsr1].s_addr=src->igmps_source.s_addr;
1199 src_inf_lmqi[numsr2].s_addr=src->igmps_source.s_addr;