nebula.proto 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  17. MessageType Type = 1;
  18. NebulaMetaDetails Details = 2;
  19. }
  20. message NebulaMetaDetails {
  21. uint32 VpnIp = 1;
  22. repeated Ip4AndPort Ip4AndPorts = 2;
  23. repeated Ip6AndPort Ip6AndPorts = 4;
  24. uint32 counter = 3;
  25. }
  26. message Ip4AndPort {
  27. uint32 Ip = 1;
  28. uint32 Port = 2;
  29. }
  30. message Ip6AndPort {
  31. uint64 Hi = 1;
  32. uint64 Lo = 2;
  33. uint32 Port = 3;
  34. }
  35. message NebulaPing {
  36. enum MessageType {
  37. Ping = 0;
  38. Reply = 1;
  39. }
  40. MessageType Type = 1;
  41. uint64 Time = 2;
  42. }
  43. message NebulaHandshake {
  44. NebulaHandshakeDetails Details = 1;
  45. bytes Hmac = 2;
  46. }
  47. message NebulaHandshakeDetails {
  48. bytes Cert = 1;
  49. uint32 InitiatorIndex = 2;
  50. uint32 ResponderIndex = 3;
  51. uint64 Cookie = 4;
  52. uint64 Time = 5;
  53. }