sendme_cell.trunnel 472 B

12345678910111213141516171819
  1. /* This file contains the SENDME cell definition. */
  2. /* v1 digest length in bytes. */
  3. const TRUNNEL_SENDME_V1_DIGEST_LEN = 20;
  4. /* SENDME cell declaration. */
  5. struct sendme_cell {
  6. /* Version field. */
  7. u8 version IN [0x00, 0x01];
  8. /* Length of data contained in this cell. */
  9. u16 data_len;
  10. /* The data content depends on the version. */
  11. union data[version] with length data_len {
  12. 0x00: ignore;
  13. 0x01: u8 v1_digest[TRUNNEL_SENDME_V1_DIGEST_LEN];
  14. };
  15. }