fix two nasty bugs

-possible wrong result when comparing IPv6 packets and flows
-returning always the first flow on subsequent packets