| 1 |
syntax = "proto3"; |
| 2 |
package nebula; |
| 3 |
|
| 4 |
option go_package = "github.com/slackhq/nebula"; |
| 5 |
|
| 6 |
message NebulaMeta { |
| 7 |
enum MessageType { |
| 8 |
None = 0; |
| 9 |
HostQuery = 1; |
| 10 |
HostQueryReply = 2; |
| 11 |
HostUpdateNotification = 3; |
| 12 |
HostMovedNotification = 4; |
| 13 |
HostPunchNotification = 5; |
| 14 |
HostWhoami = 6; |
| 15 |
HostWhoamiReply = 7; |
| 16 |
PathCheck = 8; |
| 17 |
PathCheckReply = 9; |
| 18 |
HostUpdateNotificationAck = 10; |
| 19 |
} |
| 20 |
|
| 21 |
MessageType Type = 1; |
| 22 |
NebulaMetaDetails Details = 2; |
| 23 |
} |
| 24 |
|
| 25 |
message NebulaMetaDetails { |
| 26 |
uint32 OldVpnAddr = 1 [deprecated = true]; |
| 27 |
Addr VpnAddr = 6; |
| 28 |
|
| 29 |
repeated uint32 OldRelayVpnAddrs = 5 [deprecated = true]; |
| 30 |
repeated Addr RelayVpnAddrs = 7; |
| 31 |
|
| 32 |
repeated V4AddrPort V4AddrPorts = 2; |
| 33 |
repeated V6AddrPort V6AddrPorts = 4; |
| 34 |
uint32 counter = 3; |
| 35 |
} |
| 36 |
|
| 37 |
message Addr { |
| 38 |
uint64 Hi = 1; |
| 39 |
uint64 Lo = 2; |
| 40 |
} |
| 41 |
|
| 42 |
message V4AddrPort { |
| 43 |
uint32 Addr = 1; |
| 44 |
uint32 Port = 2; |
| 45 |
} |
| 46 |
|
| 47 |
message V6AddrPort { |
| 48 |
uint64 Hi = 1; |
| 49 |
uint64 Lo = 2; |
| 50 |
uint32 Port = 3; |
| 51 |
} |
| 52 |
|
| 53 |
message NebulaPing { |
| 54 |
enum MessageType { |
| 55 |
Ping = 0; |
| 56 |
Reply = 1; |
| 57 |
} |
| 58 |
|
| 59 |
MessageType Type = 1; |
| 60 |
uint64 Time = 2; |
| 61 |
} |
| 62 |
|
| 63 |
// NebulaHandshake / NebulaHandshakeDetails moved to |
| 64 |
// handshake/handshake.proto. The handshake package speaks that wire format |
| 65 |
// directly via a hand-written encoder/decoder. |
| 66 |
|
| 67 |
message NebulaControl { |
| 68 |
enum MessageType { |
| 69 |
None = 0; |
| 70 |
CreateRelayRequest = 1; |
| 71 |
CreateRelayResponse = 2; |
| 72 |
} |
| 73 |
MessageType Type = 1; |
| 74 |
|
| 75 |
uint32 InitiatorRelayIndex = 2; |
| 76 |
uint32 ResponderRelayIndex = 3; |
| 77 |
|
| 78 |
uint32 OldRelayToAddr = 4 [deprecated = true]; |
| 79 |
uint32 OldRelayFromAddr = 5 [deprecated = true]; |
| 80 |
|
| 81 |
Addr RelayToAddr = 6; |
| 82 |
Addr RelayFromAddr = 7; |
| 83 |
} |