Added function for reading raw packets
Improve codec search function