Reading headers from packets