Update sniffer.cpp

Solve error of same ip for dst and src