user defined packet

verification of types / sizeof() for the decoder.