I am doing a project about Fog computing and IoT. I have set up a network in mininet using Host and legacy switch. On one host I need to implement an algorithm that can receive packets and inspect them (check MAC, source IP, etc) and drop them if they don't meet criteria. I have done extensive research but am not finding anything like what I need to do. Any help is greatly appreciated.