Update sniffer.cpp

avoid errors where the same ip address is seen twice