Added a hashing funtion to see if a packet has been seen