Lines Matching refs:snooping_table
325 igmp_snooping_table_t snooping_table[2];
2236 memset(snooping_table,0,sizeof(snooping_table[2]));
2237 robo->ops->write_reg(robo, 0x4, (0x10), snooping_table[0].mh_mac, sizeof(snooping_table[0].mh_mac));
2238 robo->ops->write_reg(robo, 0x4, (0x18), &(snooping_table[0].port_mapping), sizeof(snooping_table[0].port_mapping));
2239 robo->ops->write_reg(robo, 0x4, (0x20), snooping_table[0].mh_mac, sizeof(snooping_table[0].mh_mac));
2240 robo->ops->write_reg(robo, 0x4, (0x28), &(snooping_table[0].port_mapping), sizeof(snooping_table[0].port_mapping));
2492 if(memcmp(snooping_table[0].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2494 if(*port_id&snooping_table[0].port_mapping)
2498 snooping_table[0].port_mapping|=*port_id;
2499 *port_id=snooping_table[0].port_mapping;
2503 else if(memcmp(snooping_table[1].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2505 if(*port_id&snooping_table[1].port_mapping)
2509 snooping_table[1].port_mapping|=*port_id;
2510 *port_id=snooping_table[1].port_mapping;
2516 if(0==snooping_table[0].mh_mac[0])
2518 memcpy(snooping_table[0].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac));
2519 snooping_table[0].port_mapping=*port_id;
2523 else if(0==snooping_table[1].mh_mac[0])
2525 memcpy(snooping_table[1].mh_mac,p_mh_mac,sizeof(snooping_table[1].mh_mac));
2526 snooping_table[1].port_mapping=*port_id;
2537 memcpy(snooping_table[MultiPortInuse].mh_mac,p_mh_mac,sizeof(snooping_table[MultiPortInuse].mh_mac));
2538 snooping_table[MultiPortInuse].port_mapping=*port_id;
2557 if(memcmp(snooping_table[0].mh_mac,mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2561 else if(memcmp(snooping_table[1].mh_mac,mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2569 if(memcmp(snooping_table[0].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2573 else if(memcmp(snooping_table[1].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2596 if(memcmp(snooping_table[0].mh_mac,p_mh_mac,sizeof(snooping_table[0].mh_mac))==0)
2598 if(*port_id==snooping_table[0].port_mapping)/*Should delete the entire entry*/
2600 memset(snooping_table[0].mh_mac,0,sizeof(snooping_table[0].mh_mac));
2601 memset(p_mh_mac,0,sizeof(snooping_table[0].mh_mac));
2602 *port_id=snooping_table[0].port_mapping=0;
2608 memset(snooping_table[0].mh_mac,0,sizeof(snooping_table[0].mh_mac));
2609 memset(p_mh_mac,0,sizeof(snooping_table[0].mh_mac));
2610 snooping_table[0].port_mapping=0;
2613 snooping_table[0].port_mapping&=~(*port_id);
2615 *port_id=snooping_table[0].port_mapping;
2619 else if(memcmp(snooping_table[1].mh_mac,p_mh_mac,sizeof(snooping_table[1].mh_mac))==0)
2621 if(*port_id==snooping_table[1].port_mapping)/*Should delete the entire entry*/
2623 memset(snooping_table[1].mh_mac,0,sizeof(snooping_table[1].mh_mac));
2624 memset(p_mh_mac,0,sizeof(snooping_table[1].mh_mac));
2625 *port_id=snooping_table[1].port_mapping=0;
2631 memset(snooping_table[1].mh_mac,0,sizeof(snooping_table[1].mh_mac));
2632 memset(p_mh_mac,0,sizeof(snooping_table[1].mh_mac));
2633 snooping_table[1].port_mapping=0;
2636 snooping_table[1].port_mapping&=~(*port_id);
2638 *port_id=snooping_table[1].port_mapping;