Revert "More changes to packet functions"

This reverts commit d1b4575b0f16e135c10833e870634aaee876330a.
Revert "Added function for reading raw packets"

This reverts commit 7ad27f6d789477b9492a5ae993bb396078395e72.