static void flood_packet( uint64_t datapath_id, uint16_t in_port, uint16_t slice, const buffer *packet, list_element *switches ) { uint16_t in_vid = VLAN_NONE; if ( packet_type_eth_vtag( packet ) ) { packet_info packet_info = get_packet_info( packet ); in_vid = packet_info.vlan_vid; } switch_params params; params.packet = packet; params.in_datapath_id = datapath_id; params.in_port = in_port; params.in_vid = in_vid; params.slice = slice; foreach_switch( switches, send_packet_out_for_each_switch, ¶ms ); }
static void flood_packet( uint64_t datapath_id, uint16_t in_port, buffer *packet, list_element *switches ) { foreach_switch( switches, send_packet_out_for_each_switch, packet, datapath_id, in_port ); free_buffer( packet ); }