added packet types in the defs.h and modified the _send function