added ability to filter frames

This is a temporary solution. Filterring should be implemented with BPF
kernel filtering.