Fix uninitialized packet members
also cast packet data explicitly
Merge pull request #188 from LudwigOrtmann/native_fix_uninitialized_packet_members

Fix uninitialized packet members