Created a packet comparator class