sendme_cell.trunnel (518B)
1 /* This file contains the SENDME cell definition. */ 2 3 /* SENDME cell declaration. */ 4 struct sendme_cell { 5 /* Version field. */ 6 u8 version IN [0x00, 0x01]; 7 8 /* Length of data contained in this cell. */ 9 u16 data_len IN [16, 20]; 10 11 /* The data content depends on the version. */ 12 union data[version] with length data_len { 13 0x00: ignore; 14 /* I'd like to use data_len here, but trunnel doesn't 15 * allow that. Instead have v1_digest run to the end of the cell. 16 */ 17 0x01: u8 v1_digest[]; 18 }; 19 }