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