diff options
Diffstat (limited to 'testing/hstox/packet_kinds.c')
-rw-r--r-- | testing/hstox/packet_kinds.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/hstox/packet_kinds.c b/testing/hstox/packet_kinds.c new file mode 100644 index 00000000..314c814b --- /dev/null +++ b/testing/hstox/packet_kinds.c | |||
@@ -0,0 +1,48 @@ | |||
1 | #include "packet_kinds.h" | ||
2 | |||
3 | #include <network.h> | ||
4 | |||
5 | uint8_t const packet_kinds[21] = { | ||
6 | // = PingRequest -- 0x00: Ping request | ||
7 | NET_PACKET_PING_REQUEST, | ||
8 | // | PingResponse -- 0x01: Ping response | ||
9 | NET_PACKET_PING_RESPONSE, | ||
10 | // | NodesRequest -- 0x02: Nodes request | ||
11 | NET_PACKET_GET_NODES, | ||
12 | // | NodesResponse -- 0x04: Nodes response | ||
13 | NET_PACKET_SEND_NODES_IPV6, | ||
14 | // | CookieRequest -- 0x18: Cookie request | ||
15 | NET_PACKET_COOKIE_REQUEST, | ||
16 | // | CookieResponse -- 0x19: Cookie response | ||
17 | NET_PACKET_COOKIE_RESPONSE, | ||
18 | // | CryptoHandshake -- 0x1a: Crypto handshake | ||
19 | NET_PACKET_CRYPTO_HS, | ||
20 | // | CryptoData -- 0x1b: Crypto data | ||
21 | NET_PACKET_CRYPTO_DATA, | ||
22 | // | Crypto -- 0x20: Encrypted data | ||
23 | NET_PACKET_CRYPTO, | ||
24 | // | LanDiscovery -- 0x21: LAN discovery | ||
25 | NET_PACKET_LAN_DISCOVERY, | ||
26 | // | OnionRequest0 -- 0x80: Initial onion request | ||
27 | NET_PACKET_ONION_SEND_INITIAL, | ||
28 | // | OnionRequest1 -- 0x81: First level wrapped onion request | ||
29 | NET_PACKET_ONION_SEND_1, | ||
30 | // | OnionRequest2 -- 0x82: Second level wrapped onion request | ||
31 | NET_PACKET_ONION_SEND_2, | ||
32 | // | AnnounceRequest -- 0x83: Announce request | ||
33 | NET_PACKET_ANNOUNCE_REQUEST, | ||
34 | // | AnnounceResponse -- 0x84: Announce response | ||
35 | NET_PACKET_ANNOUNCE_RESPONSE, | ||
36 | // | OnionDataRequest -- 0x85: Onion data request | ||
37 | NET_PACKET_ONION_DATA_REQUEST, | ||
38 | // | OnionDataResponse -- 0x86: Onion data response | ||
39 | NET_PACKET_ONION_DATA_RESPONSE, | ||
40 | // | OnionResponse3 -- 0x8c: Third level wrapped onion response | ||
41 | NET_PACKET_ONION_RECV_3, | ||
42 | // | OnionResponse2 -- 0x8d: Second level wrapped onion response | ||
43 | NET_PACKET_ONION_RECV_2, | ||
44 | // | OnionResponse1 -- 0x8e: First level wrapped onion response | ||
45 | NET_PACKET_ONION_RECV_1, | ||
46 | // | BootstrapInfo -- 0xf0: Bootstrap node info request and response | ||
47 | BOOTSTRAP_INFO_PACKET_ID, | ||
48 | }; | ||