struct generic_pdu

struct generic_pdu {
    // fields

    uint8_t opcode;
    uint8_t flags;
    uint8_t version_max;
    uint8_t version_active;
    uint32_t length;
    uint8_t isid[6];
    uint16_t tsih;
    uint32_t init_task_tag;
    uint16_t CID;
    uint16_t rsvd1;
    uint32_t cmd_sn;
    uint32_t exp_stat_sn;
    uint32_t max_cmd_sn;
    uint8_t status_class;
    uint8_t status_detail;
    uint16_t rsvd2;
    uint32_t offset;
    uint32_t resid;
    uint32_t header_digest;
    uint8_t* text;
    uint32_t text_length;
};