Use headers to calculate packet payload offset