Add capability to filter flows when performing layer 2 detection