/* Returns a textual description of the message type  */
static const char* msg_type_string(uint8_t t)
/* Returns a textual description of the message type  */
static const char* msg_type_string(uint8_t t)
{ "CON", "NON", "ACK", "RST", "???" };
  return types[min(t, sizeof(types)/sizeof(char *) - 1)];
}