nebula.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. message NebulaHandshake {
  52. NebulaHandshakeDetails Details = 1;
  53. bytes Hmac = 2;
  54. }
  55. message NebulaHandshakeDetails {
  56. bytes Cert = 1;
  57. uint32 InitiatorIndex = 2;
  58. uint32 ResponderIndex = 3;
  59. uint64 Cookie = 4;
  60. uint64 Time = 5;
  61. uint32 CertVersion = 8;
  62. // reserved for WIP multiport
  63. reserved 6, 7;
  64. }
  65. message NebulaControl {
  66. enum MessageType {
  67. None = 0;
  68. CreateRelayRequest = 1;
  69. CreateRelayResponse = 2;
  70. }
  71. MessageType Type = 1;
  72. uint32 InitiatorRelayIndex = 2;
  73. uint32 ResponderRelayIndex = 3;
  74. uint32 OldRelayToAddr = 4 [deprecated = true];
  75. uint32 OldRelayFromAddr = 5 [deprecated = true];
  76. Addr RelayToAddr = 6;
  77. Addr RelayFromAddr = 7;
  78. }