nebula.proto 1.6 KB

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