working on typecasting packet headers