|
@@ -1,24 +1,26 @@
|
|
|
-// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
-// versions:
|
|
|
-// protoc-gen-go v1.26.0
|
|
|
-// protoc v3.14.0
|
|
|
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
// source: nebula.proto
|
|
|
|
|
|
package nebula
|
|
|
|
|
|
import (
|
|
|
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
- reflect "reflect"
|
|
|
- sync "sync"
|
|
|
+ fmt "fmt"
|
|
|
+ proto "github.com/gogo/protobuf/proto"
|
|
|
+ io "io"
|
|
|
+ math "math"
|
|
|
+ math_bits "math/bits"
|
|
|
)
|
|
|
|
|
|
-const (
|
|
|
- // Verify that this generated code is sufficiently up-to-date.
|
|
|
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
- // Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
-)
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ = proto.Marshal
|
|
|
+var _ = fmt.Errorf
|
|
|
+var _ = math.Inf
|
|
|
+
|
|
|
+// This is a compile-time assertion to ensure that this generated file
|
|
|
+// is compatible with the proto package it is being compiled against.
|
|
|
+// A compilation error at this line likely means your copy of the
|
|
|
+// proto package needs to be updated.
|
|
|
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
type NebulaMeta_MessageType int32
|
|
|
|
|
@@ -35,59 +37,38 @@ const (
|
|
|
NebulaMeta_PathCheckReply NebulaMeta_MessageType = 9
|
|
|
)
|
|
|
|
|
|
-// Enum value maps for NebulaMeta_MessageType.
|
|
|
-var (
|
|
|
- NebulaMeta_MessageType_name = map[int32]string{
|
|
|
- 0: "None",
|
|
|
- 1: "HostQuery",
|
|
|
- 2: "HostQueryReply",
|
|
|
- 3: "HostUpdateNotification",
|
|
|
- 4: "HostMovedNotification",
|
|
|
- 5: "HostPunchNotification",
|
|
|
- 6: "HostWhoami",
|
|
|
- 7: "HostWhoamiReply",
|
|
|
- 8: "PathCheck",
|
|
|
- 9: "PathCheckReply",
|
|
|
- }
|
|
|
- NebulaMeta_MessageType_value = map[string]int32{
|
|
|
- "None": 0,
|
|
|
- "HostQuery": 1,
|
|
|
- "HostQueryReply": 2,
|
|
|
- "HostUpdateNotification": 3,
|
|
|
- "HostMovedNotification": 4,
|
|
|
- "HostPunchNotification": 5,
|
|
|
- "HostWhoami": 6,
|
|
|
- "HostWhoamiReply": 7,
|
|
|
- "PathCheck": 8,
|
|
|
- "PathCheckReply": 9,
|
|
|
- }
|
|
|
-)
|
|
|
-
|
|
|
-func (x NebulaMeta_MessageType) Enum() *NebulaMeta_MessageType {
|
|
|
- p := new(NebulaMeta_MessageType)
|
|
|
- *p = x
|
|
|
- return p
|
|
|
+var NebulaMeta_MessageType_name = map[int32]string{
|
|
|
+ 0: "None",
|
|
|
+ 1: "HostQuery",
|
|
|
+ 2: "HostQueryReply",
|
|
|
+ 3: "HostUpdateNotification",
|
|
|
+ 4: "HostMovedNotification",
|
|
|
+ 5: "HostPunchNotification",
|
|
|
+ 6: "HostWhoami",
|
|
|
+ 7: "HostWhoamiReply",
|
|
|
+ 8: "PathCheck",
|
|
|
+ 9: "PathCheckReply",
|
|
|
+}
|
|
|
+
|
|
|
+var NebulaMeta_MessageType_value = map[string]int32{
|
|
|
+ "None": 0,
|
|
|
+ "HostQuery": 1,
|
|
|
+ "HostQueryReply": 2,
|
|
|
+ "HostUpdateNotification": 3,
|
|
|
+ "HostMovedNotification": 4,
|
|
|
+ "HostPunchNotification": 5,
|
|
|
+ "HostWhoami": 6,
|
|
|
+ "HostWhoamiReply": 7,
|
|
|
+ "PathCheck": 8,
|
|
|
+ "PathCheckReply": 9,
|
|
|
}
|
|
|
|
|
|
func (x NebulaMeta_MessageType) String() string {
|
|
|
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
-}
|
|
|
-
|
|
|
-func (NebulaMeta_MessageType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
- return file_nebula_proto_enumTypes[0].Descriptor()
|
|
|
-}
|
|
|
-
|
|
|
-func (NebulaMeta_MessageType) Type() protoreflect.EnumType {
|
|
|
- return &file_nebula_proto_enumTypes[0]
|
|
|
-}
|
|
|
-
|
|
|
-func (x NebulaMeta_MessageType) Number() protoreflect.EnumNumber {
|
|
|
- return protoreflect.EnumNumber(x)
|
|
|
+ return proto.EnumName(NebulaMeta_MessageType_name, int32(x))
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use NebulaMeta_MessageType.Descriptor instead.
|
|
|
func (NebulaMeta_MessageType) EnumDescriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{0, 0}
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{0, 0}
|
|
|
}
|
|
|
|
|
|
type NebulaPing_MessageType int32
|
|
@@ -97,689 +78,1822 @@ const (
|
|
|
NebulaPing_Reply NebulaPing_MessageType = 1
|
|
|
)
|
|
|
|
|
|
-// Enum value maps for NebulaPing_MessageType.
|
|
|
-var (
|
|
|
- NebulaPing_MessageType_name = map[int32]string{
|
|
|
- 0: "Ping",
|
|
|
- 1: "Reply",
|
|
|
- }
|
|
|
- NebulaPing_MessageType_value = map[string]int32{
|
|
|
- "Ping": 0,
|
|
|
- "Reply": 1,
|
|
|
- }
|
|
|
-)
|
|
|
-
|
|
|
-func (x NebulaPing_MessageType) Enum() *NebulaPing_MessageType {
|
|
|
- p := new(NebulaPing_MessageType)
|
|
|
- *p = x
|
|
|
- return p
|
|
|
-}
|
|
|
-
|
|
|
-func (x NebulaPing_MessageType) String() string {
|
|
|
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
-}
|
|
|
-
|
|
|
-func (NebulaPing_MessageType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
- return file_nebula_proto_enumTypes[1].Descriptor()
|
|
|
+var NebulaPing_MessageType_name = map[int32]string{
|
|
|
+ 0: "Ping",
|
|
|
+ 1: "Reply",
|
|
|
}
|
|
|
|
|
|
-func (NebulaPing_MessageType) Type() protoreflect.EnumType {
|
|
|
- return &file_nebula_proto_enumTypes[1]
|
|
|
+var NebulaPing_MessageType_value = map[string]int32{
|
|
|
+ "Ping": 0,
|
|
|
+ "Reply": 1,
|
|
|
}
|
|
|
|
|
|
-func (x NebulaPing_MessageType) Number() protoreflect.EnumNumber {
|
|
|
- return protoreflect.EnumNumber(x)
|
|
|
+func (x NebulaPing_MessageType) String() string {
|
|
|
+ return proto.EnumName(NebulaPing_MessageType_name, int32(x))
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use NebulaPing_MessageType.Descriptor instead.
|
|
|
func (NebulaPing_MessageType) EnumDescriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{4, 0}
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{4, 0}
|
|
|
}
|
|
|
|
|
|
type NebulaMeta struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
Type NebulaMeta_MessageType `protobuf:"varint,1,opt,name=Type,proto3,enum=nebula.NebulaMeta_MessageType" json:"Type,omitempty"`
|
|
|
Details *NebulaMetaDetails `protobuf:"bytes,2,opt,name=Details,proto3" json:"Details,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMeta) Reset() {
|
|
|
- *x = NebulaMeta{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[0]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaMeta) Reset() { *m = NebulaMeta{} }
|
|
|
+func (m *NebulaMeta) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*NebulaMeta) ProtoMessage() {}
|
|
|
+func (*NebulaMeta) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{0}
|
|
|
+}
|
|
|
+func (m *NebulaMeta) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *NebulaMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_NebulaMeta.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-func (x *NebulaMeta) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *NebulaMeta) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_NebulaMeta.Merge(m, src)
|
|
|
}
|
|
|
-
|
|
|
-func (*NebulaMeta) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *NebulaMeta) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[0]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
+func (m *NebulaMeta) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
}
|
|
|
-
|
|
|
-// Deprecated: Use NebulaMeta.ProtoReflect.Descriptor instead.
|
|
|
-func (*NebulaMeta) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{0}
|
|
|
+func (m *NebulaMeta) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_NebulaMeta.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMeta) GetType() NebulaMeta_MessageType {
|
|
|
- if x != nil {
|
|
|
- return x.Type
|
|
|
+var xxx_messageInfo_NebulaMeta proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *NebulaMeta) GetType() NebulaMeta_MessageType {
|
|
|
+ if m != nil {
|
|
|
+ return m.Type
|
|
|
}
|
|
|
return NebulaMeta_None
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMeta) GetDetails() *NebulaMetaDetails {
|
|
|
- if x != nil {
|
|
|
- return x.Details
|
|
|
+func (m *NebulaMeta) GetDetails() *NebulaMetaDetails {
|
|
|
+ if m != nil {
|
|
|
+ return m.Details
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type NebulaMetaDetails struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
VpnIp uint32 `protobuf:"varint,1,opt,name=VpnIp,proto3" json:"VpnIp,omitempty"`
|
|
|
- IpAndPorts []*IpAndPort `protobuf:"bytes,2,rep,name=IpAndPorts,proto3" json:"IpAndPorts,omitempty"`
|
|
|
+ Ip4AndPorts []*Ip4AndPort `protobuf:"bytes,2,rep,name=Ip4AndPorts,proto3" json:"Ip4AndPorts,omitempty"`
|
|
|
Ip6AndPorts []*Ip6AndPort `protobuf:"bytes,4,rep,name=Ip6AndPorts,proto3" json:"Ip6AndPorts,omitempty"`
|
|
|
Counter uint32 `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMetaDetails) Reset() {
|
|
|
- *x = NebulaMetaDetails{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[1]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaMetaDetails) Reset() { *m = NebulaMetaDetails{} }
|
|
|
+func (m *NebulaMetaDetails) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*NebulaMetaDetails) ProtoMessage() {}
|
|
|
+func (*NebulaMetaDetails) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{1}
|
|
|
+}
|
|
|
+func (m *NebulaMetaDetails) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *NebulaMetaDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_NebulaMetaDetails.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-func (x *NebulaMetaDetails) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *NebulaMetaDetails) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_NebulaMetaDetails.Merge(m, src)
|
|
|
}
|
|
|
-
|
|
|
-func (*NebulaMetaDetails) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *NebulaMetaDetails) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[1]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
+func (m *NebulaMetaDetails) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
}
|
|
|
-
|
|
|
-// Deprecated: Use NebulaMetaDetails.ProtoReflect.Descriptor instead.
|
|
|
-func (*NebulaMetaDetails) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{1}
|
|
|
+func (m *NebulaMetaDetails) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_NebulaMetaDetails.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMetaDetails) GetVpnIp() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.VpnIp
|
|
|
+var xxx_messageInfo_NebulaMetaDetails proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *NebulaMetaDetails) GetVpnIp() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.VpnIp
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMetaDetails) GetIpAndPorts() []*IpAndPort {
|
|
|
- if x != nil {
|
|
|
- return x.IpAndPorts
|
|
|
+func (m *NebulaMetaDetails) GetIp4AndPorts() []*Ip4AndPort {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ip4AndPorts
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMetaDetails) GetIp6AndPorts() []*Ip6AndPort {
|
|
|
- if x != nil {
|
|
|
- return x.Ip6AndPorts
|
|
|
+func (m *NebulaMetaDetails) GetIp6AndPorts() []*Ip6AndPort {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ip6AndPorts
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaMetaDetails) GetCounter() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.Counter
|
|
|
+func (m *NebulaMetaDetails) GetCounter() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Counter
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-type IpAndPort struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
+type Ip4AndPort struct {
|
|
|
Ip uint32 `protobuf:"varint,1,opt,name=Ip,proto3" json:"Ip,omitempty"`
|
|
|
Port uint32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *IpAndPort) Reset() {
|
|
|
- *x = IpAndPort{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[2]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *Ip4AndPort) Reset() { *m = Ip4AndPort{} }
|
|
|
+func (m *Ip4AndPort) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*Ip4AndPort) ProtoMessage() {}
|
|
|
+func (*Ip4AndPort) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{2}
|
|
|
+}
|
|
|
+func (m *Ip4AndPort) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *Ip4AndPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_Ip4AndPort.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *Ip4AndPort) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_Ip4AndPort.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *Ip4AndPort) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *Ip4AndPort) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_Ip4AndPort.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_Ip4AndPort proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *Ip4AndPort) GetIp() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ip
|
|
|
}
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
-func (x *IpAndPort) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *Ip4AndPort) GetPort() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Port
|
|
|
+ }
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
-func (*IpAndPort) ProtoMessage() {}
|
|
|
+type Ip6AndPort struct {
|
|
|
+ Ip []byte `protobuf:"bytes,1,opt,name=Ip,proto3" json:"Ip,omitempty"`
|
|
|
+ Port uint32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"`
|
|
|
+}
|
|
|
|
|
|
-func (x *IpAndPort) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[2]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *Ip6AndPort) Reset() { *m = Ip6AndPort{} }
|
|
|
+func (m *Ip6AndPort) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*Ip6AndPort) ProtoMessage() {}
|
|
|
+func (*Ip6AndPort) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{3}
|
|
|
+}
|
|
|
+func (m *Ip6AndPort) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *Ip6AndPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_Ip6AndPort.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
}
|
|
|
- return ms
|
|
|
+ return b[:n], nil
|
|
|
}
|
|
|
- return mi.MessageOf(x)
|
|
|
}
|
|
|
+func (m *Ip6AndPort) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_Ip6AndPort.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *Ip6AndPort) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *Ip6AndPort) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_Ip6AndPort.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_Ip6AndPort proto.InternalMessageInfo
|
|
|
|
|
|
-// Deprecated: Use IpAndPort.ProtoReflect.Descriptor instead.
|
|
|
-func (*IpAndPort) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{2}
|
|
|
+func (m *Ip6AndPort) GetIp() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ip
|
|
|
+ }
|
|
|
+ return nil
|
|
|
}
|
|
|
|
|
|
-func (x *IpAndPort) GetIp() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.Ip
|
|
|
+func (m *Ip6AndPort) GetPort() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Port
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *IpAndPort) GetPort() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.Port
|
|
|
+type NebulaPing struct {
|
|
|
+ Type NebulaPing_MessageType `protobuf:"varint,1,opt,name=Type,proto3,enum=nebula.NebulaPing_MessageType" json:"Type,omitempty"`
|
|
|
+ Time uint64 `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaPing) Reset() { *m = NebulaPing{} }
|
|
|
+func (m *NebulaPing) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*NebulaPing) ProtoMessage() {}
|
|
|
+func (*NebulaPing) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{4}
|
|
|
+}
|
|
|
+func (m *NebulaPing) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *NebulaPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_NebulaPing.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *NebulaPing) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_NebulaPing.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *NebulaPing) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *NebulaPing) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_NebulaPing.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_NebulaPing proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *NebulaPing) GetType() NebulaPing_MessageType {
|
|
|
+ if m != nil {
|
|
|
+ return m.Type
|
|
|
+ }
|
|
|
+ return NebulaPing_Ping
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaPing) GetTime() uint64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Time
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-type Ip6AndPort struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
+type NebulaHandshake struct {
|
|
|
+ Details *NebulaHandshakeDetails `protobuf:"bytes,1,opt,name=Details,proto3" json:"Details,omitempty"`
|
|
|
+ Hmac []byte `protobuf:"bytes,2,opt,name=Hmac,proto3" json:"Hmac,omitempty"`
|
|
|
+}
|
|
|
|
|
|
- Ip []byte `protobuf:"bytes,1,opt,name=Ip,proto3" json:"Ip,omitempty"`
|
|
|
- Port uint32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"`
|
|
|
+func (m *NebulaHandshake) Reset() { *m = NebulaHandshake{} }
|
|
|
+func (m *NebulaHandshake) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*NebulaHandshake) ProtoMessage() {}
|
|
|
+func (*NebulaHandshake) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{5}
|
|
|
+}
|
|
|
+func (m *NebulaHandshake) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *NebulaHandshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_NebulaHandshake.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *NebulaHandshake) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_NebulaHandshake.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *NebulaHandshake) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
}
|
|
|
+func (m *NebulaHandshake) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_NebulaHandshake.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_NebulaHandshake proto.InternalMessageInfo
|
|
|
|
|
|
-func (x *Ip6AndPort) Reset() {
|
|
|
- *x = Ip6AndPort{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[3]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaHandshake) GetDetails() *NebulaHandshakeDetails {
|
|
|
+ if m != nil {
|
|
|
+ return m.Details
|
|
|
}
|
|
|
+ return nil
|
|
|
}
|
|
|
|
|
|
-func (x *Ip6AndPort) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *NebulaHandshake) GetHmac() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Hmac
|
|
|
+ }
|
|
|
+ return nil
|
|
|
}
|
|
|
|
|
|
-func (*Ip6AndPort) ProtoMessage() {}
|
|
|
+type NebulaHandshakeDetails struct {
|
|
|
+ Cert []byte `protobuf:"bytes,1,opt,name=Cert,proto3" json:"Cert,omitempty"`
|
|
|
+ InitiatorIndex uint32 `protobuf:"varint,2,opt,name=InitiatorIndex,proto3" json:"InitiatorIndex,omitempty"`
|
|
|
+ ResponderIndex uint32 `protobuf:"varint,3,opt,name=ResponderIndex,proto3" json:"ResponderIndex,omitempty"`
|
|
|
+ Cookie uint64 `protobuf:"varint,4,opt,name=Cookie,proto3" json:"Cookie,omitempty"`
|
|
|
+ Time uint64 `protobuf:"varint,5,opt,name=Time,proto3" json:"Time,omitempty"`
|
|
|
+}
|
|
|
|
|
|
-func (x *Ip6AndPort) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[3]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaHandshakeDetails) Reset() { *m = NebulaHandshakeDetails{} }
|
|
|
+func (m *NebulaHandshakeDetails) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*NebulaHandshakeDetails) ProtoMessage() {}
|
|
|
+func (*NebulaHandshakeDetails) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2d65afa7693df5ef, []int{6}
|
|
|
+}
|
|
|
+func (m *NebulaHandshakeDetails) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *NebulaHandshakeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_NebulaHandshakeDetails.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
}
|
|
|
- return ms
|
|
|
+ return b[:n], nil
|
|
|
}
|
|
|
- return mi.MessageOf(x)
|
|
|
}
|
|
|
-
|
|
|
-// Deprecated: Use Ip6AndPort.ProtoReflect.Descriptor instead.
|
|
|
-func (*Ip6AndPort) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{3}
|
|
|
+func (m *NebulaHandshakeDetails) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_NebulaHandshakeDetails.Merge(m, src)
|
|
|
}
|
|
|
+func (m *NebulaHandshakeDetails) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *NebulaHandshakeDetails) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_NebulaHandshakeDetails.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_NebulaHandshakeDetails proto.InternalMessageInfo
|
|
|
|
|
|
-func (x *Ip6AndPort) GetIp() []byte {
|
|
|
- if x != nil {
|
|
|
- return x.Ip
|
|
|
+func (m *NebulaHandshakeDetails) GetCert() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Cert
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *Ip6AndPort) GetPort() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.Port
|
|
|
+func (m *NebulaHandshakeDetails) GetInitiatorIndex() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.InitiatorIndex
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-type NebulaPing struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
+func (m *NebulaHandshakeDetails) GetResponderIndex() uint32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.ResponderIndex
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
|
|
|
- Type NebulaPing_MessageType `protobuf:"varint,1,opt,name=Type,proto3,enum=nebula.NebulaPing_MessageType" json:"Type,omitempty"`
|
|
|
- Time uint64 `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"`
|
|
|
+func (m *NebulaHandshakeDetails) GetCookie() uint64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Cookie
|
|
|
+ }
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaPing) Reset() {
|
|
|
- *x = NebulaPing{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[4]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaHandshakeDetails) GetTime() uint64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Time
|
|
|
}
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaPing) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func init() {
|
|
|
+ proto.RegisterEnum("nebula.NebulaMeta_MessageType", NebulaMeta_MessageType_name, NebulaMeta_MessageType_value)
|
|
|
+ proto.RegisterEnum("nebula.NebulaPing_MessageType", NebulaPing_MessageType_name, NebulaPing_MessageType_value)
|
|
|
+ proto.RegisterType((*NebulaMeta)(nil), "nebula.NebulaMeta")
|
|
|
+ proto.RegisterType((*NebulaMetaDetails)(nil), "nebula.NebulaMetaDetails")
|
|
|
+ proto.RegisterType((*Ip4AndPort)(nil), "nebula.Ip4AndPort")
|
|
|
+ proto.RegisterType((*Ip6AndPort)(nil), "nebula.Ip6AndPort")
|
|
|
+ proto.RegisterType((*NebulaPing)(nil), "nebula.NebulaPing")
|
|
|
+ proto.RegisterType((*NebulaHandshake)(nil), "nebula.NebulaHandshake")
|
|
|
+ proto.RegisterType((*NebulaHandshakeDetails)(nil), "nebula.NebulaHandshakeDetails")
|
|
|
+}
|
|
|
+
|
|
|
+func init() { proto.RegisterFile("nebula.proto", fileDescriptor_2d65afa7693df5ef) }
|
|
|
+
|
|
|
+var fileDescriptor_2d65afa7693df5ef = []byte{
|
|
|
+ // 527 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xbb, 0x8e, 0xda, 0x40,
|
|
|
+ 0x14, 0x65, 0xc0, 0xc0, 0x72, 0x79, 0xac, 0x73, 0x93, 0x20, 0x6f, 0x0a, 0x6b, 0xe5, 0x22, 0xa2,
|
|
|
+ 0x42, 0x11, 0xbb, 0x42, 0x69, 0x13, 0x52, 0x40, 0x01, 0x22, 0xd6, 0x26, 0x29, 0xa3, 0x59, 0x3c,
|
|
|
+ 0x59, 0x2c, 0x60, 0xc6, 0xb2, 0x87, 0x68, 0xf9, 0x8b, 0x7c, 0x46, 0xba, 0xfc, 0x46, 0x8a, 0x14,
|
|
|
+ 0x5b, 0xa4, 0x48, 0x19, 0xc1, 0x8f, 0x44, 0x33, 0x36, 0x36, 0x6b, 0x36, 0xdb, 0xdd, 0xc7, 0x39,
|
|
|
+ 0x97, 0xc3, 0x99, 0x23, 0x43, 0x83, 0xb3, 0xeb, 0xf5, 0x92, 0x76, 0x83, 0x50, 0x48, 0x81, 0x95,
|
|
|
+ 0xb8, 0x73, 0x7e, 0x15, 0x01, 0x26, 0xba, 0x1c, 0x33, 0x49, 0xb1, 0x07, 0xc6, 0xd5, 0x26, 0x60,
|
|
|
+ 0x16, 0x39, 0x27, 0x9d, 0x56, 0xcf, 0xee, 0x26, 0x9c, 0x0c, 0xd1, 0x1d, 0xb3, 0x28, 0xa2, 0x37,
|
|
|
+ 0x4c, 0xa1, 0x5c, 0x8d, 0xc5, 0x0b, 0xa8, 0xbe, 0x63, 0x92, 0xfa, 0xcb, 0xc8, 0x2a, 0x9e, 0x93,
|
|
|
+ 0x4e, 0xbd, 0x77, 0x76, 0x4c, 0x4b, 0x00, 0xee, 0x1e, 0xe9, 0xfc, 0x26, 0x50, 0x3f, 0x38, 0x85,
|
|
|
+ 0x27, 0x60, 0x4c, 0x04, 0x67, 0x66, 0x01, 0x9b, 0x50, 0x1b, 0x8a, 0x48, 0xbe, 0x5f, 0xb3, 0x70,
|
|
|
+ 0x63, 0x12, 0x44, 0x68, 0xa5, 0xad, 0xcb, 0x82, 0xe5, 0xc6, 0x2c, 0xe2, 0x0b, 0x68, 0xab, 0xd9,
|
|
|
+ 0x87, 0xc0, 0xa3, 0x92, 0x4d, 0x84, 0xf4, 0xbf, 0xf8, 0x33, 0x2a, 0x7d, 0xc1, 0xcd, 0x12, 0x9e,
|
|
|
+ 0xc1, 0x73, 0xb5, 0x1b, 0x8b, 0xaf, 0xcc, 0xbb, 0xb7, 0x32, 0xf6, 0xab, 0xe9, 0x9a, 0xcf, 0xe6,
|
|
|
+ 0xf7, 0x56, 0x65, 0x6c, 0x01, 0xa8, 0xd5, 0xa7, 0xb9, 0xa0, 0x2b, 0xdf, 0xac, 0xe0, 0x53, 0x38,
|
|
|
+ 0xcd, 0xfa, 0xf8, 0x67, 0xab, 0x4a, 0xd9, 0x94, 0xca, 0xf9, 0x60, 0xce, 0x66, 0x0b, 0xf3, 0x44,
|
|
|
+ 0x29, 0x4b, 0xdb, 0x18, 0x52, 0x73, 0x7e, 0x10, 0x78, 0x72, 0xf4, 0xaf, 0xf1, 0x19, 0x94, 0x3f,
|
|
|
+ 0x06, 0x7c, 0x14, 0x68, 0x5b, 0x9b, 0x6e, 0xdc, 0xe0, 0x25, 0xd4, 0x47, 0xc1, 0xe5, 0x1b, 0xee,
|
|
|
+ 0x4d, 0x45, 0x28, 0x95, 0x77, 0xa5, 0x4e, 0xbd, 0x87, 0x7b, 0xef, 0xb2, 0x95, 0x7b, 0x08, 0x8b,
|
|
|
+ 0x59, 0xfd, 0x94, 0x65, 0xe4, 0x59, 0xfd, 0x03, 0x56, 0x0a, 0x43, 0x0b, 0xaa, 0x33, 0xb1, 0xe6,
|
|
|
+ 0x92, 0x85, 0x56, 0x49, 0x6b, 0xd8, 0xb7, 0xce, 0x2b, 0x80, 0xec, 0x3c, 0xb6, 0xa0, 0x98, 0xca,
|
|
|
+ 0x2c, 0x8e, 0x02, 0x44, 0x30, 0xd4, 0x5c, 0x3f, 0x6c, 0xd3, 0xd5, 0x75, 0xcc, 0xe8, 0x1f, 0x33,
|
|
|
+ 0x1a, 0xff, 0x65, 0xdc, 0xee, 0x33, 0x36, 0xf5, 0xf9, 0xcd, 0xe3, 0x19, 0x53, 0x88, 0x07, 0x32,
|
|
|
+ 0x86, 0x60, 0x5c, 0xf9, 0x2b, 0xa6, 0xaf, 0x1a, 0xae, 0xae, 0x1d, 0xe7, 0x28, 0x41, 0x8a, 0x6c,
|
|
|
+ 0x16, 0xb0, 0x06, 0xe5, 0xf8, 0x3d, 0x88, 0xf3, 0x19, 0x4e, 0xe3, 0xbb, 0x43, 0xca, 0xbd, 0x68,
|
|
|
+ 0x4e, 0x17, 0x0c, 0x5f, 0x67, 0x71, 0x25, 0x3a, 0xae, 0x39, 0x05, 0x29, 0x32, 0x9f, 0x59, 0x25,
|
|
|
+ 0x62, 0xb8, 0xa2, 0x33, 0x2d, 0xa2, 0xe1, 0xea, 0xda, 0xf9, 0x4e, 0xa0, 0xfd, 0x30, 0x4f, 0xc1,
|
|
|
+ 0x07, 0x2c, 0x94, 0x89, 0x37, 0xba, 0xc6, 0x97, 0xd0, 0x1a, 0x71, 0x5f, 0xfa, 0x54, 0x8a, 0x70,
|
|
|
+ 0xc4, 0x3d, 0x76, 0x9b, 0xf8, 0x94, 0x9b, 0x2a, 0x9c, 0xcb, 0xa2, 0x40, 0x70, 0x8f, 0x25, 0xb8,
|
|
|
+ 0xf8, 0xd9, 0x72, 0x53, 0x6c, 0x43, 0x65, 0x20, 0xc4, 0xc2, 0x67, 0x96, 0xa1, 0x9d, 0x49, 0xba,
|
|
|
+ 0xd4, 0xaf, 0x72, 0xe6, 0xd7, 0x5b, 0xeb, 0xe7, 0xd6, 0x26, 0x77, 0x5b, 0x9b, 0xfc, 0xdd, 0xda,
|
|
|
+ 0xe4, 0xdb, 0xce, 0x2e, 0xdc, 0xed, 0xec, 0xc2, 0x9f, 0x9d, 0x5d, 0xb8, 0xae, 0xe8, 0x6f, 0xc2,
|
|
|
+ 0xc5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, 0xec, 0xba, 0x62, 0x23, 0x04, 0x00, 0x00,
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaMeta) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
-func (*NebulaPing) ProtoMessage() {}
|
|
|
+func (m *NebulaMeta) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
|
|
|
-func (x *NebulaPing) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[4]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Details != nil {
|
|
|
+ {
|
|
|
+ size, err := m.Details.MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(size))
|
|
|
}
|
|
|
- return ms
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x12
|
|
|
}
|
|
|
- return mi.MessageOf(x)
|
|
|
+ if m.Type != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Type))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use NebulaPing.ProtoReflect.Descriptor instead.
|
|
|
-func (*NebulaPing) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{4}
|
|
|
+func (m *NebulaMetaDetails) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaMetaDetails) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaMetaDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Ip6AndPorts) > 0 {
|
|
|
+ for iNdEx := len(m.Ip6AndPorts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
+ {
|
|
|
+ size, err := m.Ip6AndPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(size))
|
|
|
+ }
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x22
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.Counter != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Counter))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ }
|
|
|
+ if len(m.Ip4AndPorts) > 0 {
|
|
|
+ for iNdEx := len(m.Ip4AndPorts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
+ {
|
|
|
+ size, err := m.Ip4AndPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(size))
|
|
|
+ }
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.VpnIp != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.VpnIp))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaPing) GetType() NebulaPing_MessageType {
|
|
|
- if x != nil {
|
|
|
- return x.Type
|
|
|
+func (m *Ip4AndPort) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
}
|
|
|
- return NebulaPing_Ping
|
|
|
+ return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaPing) GetTime() uint64 {
|
|
|
- if x != nil {
|
|
|
- return x.Time
|
|
|
+func (m *Ip4AndPort) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Ip4AndPort) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Port != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Port))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
}
|
|
|
- return 0
|
|
|
+ if m.Ip != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Ip))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-type NebulaHandshake struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
+func (m *Ip6AndPort) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
|
|
|
- Details *NebulaHandshakeDetails `protobuf:"bytes,1,opt,name=Details,proto3" json:"Details,omitempty"`
|
|
|
- Hmac []byte `protobuf:"bytes,2,opt,name=Hmac,proto3" json:"Hmac,omitempty"`
|
|
|
+func (m *Ip6AndPort) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Ip6AndPort) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Port != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Port))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ }
|
|
|
+ if len(m.Ip) > 0 {
|
|
|
+ i -= len(m.Ip)
|
|
|
+ copy(dAtA[i:], m.Ip)
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(len(m.Ip)))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaPing) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaPing) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshake) Reset() {
|
|
|
- *x = NebulaHandshake{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[5]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaPing) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Time != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Time))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
}
|
|
|
+ if m.Type != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Type))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshake) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *NebulaHandshake) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
-func (*NebulaHandshake) ProtoMessage() {}
|
|
|
+func (m *NebulaHandshake) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
|
|
|
-func (x *NebulaHandshake) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[5]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *NebulaHandshake) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Hmac) > 0 {
|
|
|
+ i -= len(m.Hmac)
|
|
|
+ copy(dAtA[i:], m.Hmac)
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(len(m.Hmac)))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ }
|
|
|
+ if m.Details != nil {
|
|
|
+ {
|
|
|
+ size, err := m.Details.MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(size))
|
|
|
}
|
|
|
- return ms
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
}
|
|
|
- return mi.MessageOf(x)
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use NebulaHandshake.ProtoReflect.Descriptor instead.
|
|
|
-func (*NebulaHandshake) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{5}
|
|
|
+func (m *NebulaHandshakeDetails) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *NebulaHandshakeDetails) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshake) GetDetails() *NebulaHandshakeDetails {
|
|
|
- if x != nil {
|
|
|
- return x.Details
|
|
|
+func (m *NebulaHandshakeDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Time != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Time))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x28
|
|
|
}
|
|
|
- return nil
|
|
|
+ if m.Cookie != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.Cookie))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ }
|
|
|
+ if m.ResponderIndex != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.ResponderIndex))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ }
|
|
|
+ if m.InitiatorIndex != 0 {
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(m.InitiatorIndex))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ }
|
|
|
+ if len(m.Cert) > 0 {
|
|
|
+ i -= len(m.Cert)
|
|
|
+ copy(dAtA[i:], m.Cert)
|
|
|
+ i = encodeVarintNebula(dAtA, i, uint64(len(m.Cert)))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshake) GetHmac() []byte {
|
|
|
- if x != nil {
|
|
|
- return x.Hmac
|
|
|
+func encodeVarintNebula(dAtA []byte, offset int, v uint64) int {
|
|
|
+ offset -= sovNebula(v)
|
|
|
+ base := offset
|
|
|
+ for v >= 1<<7 {
|
|
|
+ dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
+ v >>= 7
|
|
|
+ offset++
|
|
|
}
|
|
|
- return nil
|
|
|
+ dAtA[offset] = uint8(v)
|
|
|
+ return base
|
|
|
+}
|
|
|
+func (m *NebulaMeta) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Type != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Type))
|
|
|
+ }
|
|
|
+ if m.Details != nil {
|
|
|
+ l = m.Details.Size()
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
}
|
|
|
|
|
|
-type NebulaHandshakeDetails struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
+func (m *NebulaMetaDetails) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.VpnIp != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.VpnIp))
|
|
|
+ }
|
|
|
+ if len(m.Ip4AndPorts) > 0 {
|
|
|
+ for _, e := range m.Ip4AndPorts {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.Counter != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Counter))
|
|
|
+ }
|
|
|
+ if len(m.Ip6AndPorts) > 0 {
|
|
|
+ for _, e := range m.Ip6AndPorts {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
|
|
|
- Cert []byte `protobuf:"bytes,1,opt,name=Cert,proto3" json:"Cert,omitempty"`
|
|
|
- InitiatorIndex uint32 `protobuf:"varint,2,opt,name=InitiatorIndex,proto3" json:"InitiatorIndex,omitempty"`
|
|
|
- ResponderIndex uint32 `protobuf:"varint,3,opt,name=ResponderIndex,proto3" json:"ResponderIndex,omitempty"`
|
|
|
- Cookie uint64 `protobuf:"varint,4,opt,name=Cookie,proto3" json:"Cookie,omitempty"`
|
|
|
- Time uint64 `protobuf:"varint,5,opt,name=Time,proto3" json:"Time,omitempty"`
|
|
|
+func (m *Ip4AndPort) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Ip != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Ip))
|
|
|
+ }
|
|
|
+ if m.Port != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Port))
|
|
|
+ }
|
|
|
+ return n
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) Reset() {
|
|
|
- *x = NebulaHandshakeDetails{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_nebula_proto_msgTypes[6]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
+func (m *Ip6AndPort) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Ip)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
}
|
|
|
+ if m.Port != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Port))
|
|
|
+ }
|
|
|
+ return n
|
|
|
}
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
+func (m *NebulaPing) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Type != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Type))
|
|
|
+ }
|
|
|
+ if m.Time != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Time))
|
|
|
+ }
|
|
|
+ return n
|
|
|
}
|
|
|
|
|
|
-func (*NebulaHandshakeDetails) ProtoMessage() {}
|
|
|
+func (m *NebulaHandshake) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Details != nil {
|
|
|
+ l = m.Details.Size()
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Hmac)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_nebula_proto_msgTypes[6]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
+func (m *NebulaHandshakeDetails) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
}
|
|
|
- return mi.MessageOf(x)
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Cert)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovNebula(uint64(l))
|
|
|
+ }
|
|
|
+ if m.InitiatorIndex != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.InitiatorIndex))
|
|
|
+ }
|
|
|
+ if m.ResponderIndex != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.ResponderIndex))
|
|
|
+ }
|
|
|
+ if m.Cookie != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Cookie))
|
|
|
+ }
|
|
|
+ if m.Time != 0 {
|
|
|
+ n += 1 + sovNebula(uint64(m.Time))
|
|
|
+ }
|
|
|
+ return n
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use NebulaHandshakeDetails.ProtoReflect.Descriptor instead.
|
|
|
-func (*NebulaHandshakeDetails) Descriptor() ([]byte, []int) {
|
|
|
- return file_nebula_proto_rawDescGZIP(), []int{6}
|
|
|
+func sovNebula(x uint64) (n int) {
|
|
|
+ return (math_bits.Len64(x|1) + 6) / 7
|
|
|
}
|
|
|
+func sozNebula(x uint64) (n int) {
|
|
|
+ return sovNebula(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
+}
|
|
|
+func (m *NebulaMeta) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: NebulaMeta: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: NebulaMeta: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
+ }
|
|
|
+ m.Type = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Type |= NebulaMeta_MessageType(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Details == nil {
|
|
|
+ m.Details = &NebulaMetaDetails{}
|
|
|
+ }
|
|
|
+ if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) GetCert() []byte {
|
|
|
- if x != nil {
|
|
|
- return x.Cert
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
+func (m *NebulaMetaDetails) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: NebulaMetaDetails: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: NebulaMetaDetails: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field VpnIp", wireType)
|
|
|
+ }
|
|
|
+ m.VpnIp = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.VpnIp |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ip4AndPorts", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Ip4AndPorts = append(m.Ip4AndPorts, &Ip4AndPort{})
|
|
|
+ if err := m.Ip4AndPorts[len(m.Ip4AndPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType)
|
|
|
+ }
|
|
|
+ m.Counter = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Counter |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ip6AndPorts", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Ip6AndPorts = append(m.Ip6AndPorts, &Ip6AndPort{})
|
|
|
+ if err := m.Ip6AndPorts[len(m.Ip6AndPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) GetInitiatorIndex() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.InitiatorIndex
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
- return 0
|
|
|
+ return nil
|
|
|
}
|
|
|
+func (m *Ip4AndPort) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: Ip4AndPort: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: Ip4AndPort: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
|
|
|
+ }
|
|
|
+ m.Ip = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Ip |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
|
|
|
+ }
|
|
|
+ m.Port = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Port |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) GetResponderIndex() uint32 {
|
|
|
- if x != nil {
|
|
|
- return x.ResponderIndex
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
- return 0
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *Ip6AndPort) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: Ip6AndPort: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: Ip6AndPort: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
|
|
|
+ }
|
|
|
+ var byteLen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ byteLen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if byteLen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + byteLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Ip = append(m.Ip[:0], dAtA[iNdEx:postIndex]...)
|
|
|
+ if m.Ip == nil {
|
|
|
+ m.Ip = []byte{}
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
|
|
|
+ }
|
|
|
+ m.Port = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Port |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
}
|
|
|
+func (m *NebulaPing) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: NebulaPing: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: NebulaPing: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
+ }
|
|
|
+ m.Type = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Type |= NebulaPing_MessageType(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
|
|
|
+ }
|
|
|
+ m.Time = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Time |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) GetCookie() uint64 {
|
|
|
- if x != nil {
|
|
|
- return x.Cookie
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
- return 0
|
|
|
+ return nil
|
|
|
}
|
|
|
+func (m *NebulaHandshake) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: NebulaHandshake: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: NebulaHandshake: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Details == nil {
|
|
|
+ m.Details = &NebulaHandshakeDetails{}
|
|
|
+ }
|
|
|
+ if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Hmac", wireType)
|
|
|
+ }
|
|
|
+ var byteLen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ byteLen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if byteLen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + byteLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Hmac = append(m.Hmac[:0], dAtA[iNdEx:postIndex]...)
|
|
|
+ if m.Hmac == nil {
|
|
|
+ m.Hmac = []byte{}
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-func (x *NebulaHandshakeDetails) GetTime() uint64 {
|
|
|
- if x != nil {
|
|
|
- return x.Time
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
- return 0
|
|
|
+ return nil
|
|
|
}
|
|
|
+func (m *NebulaHandshakeDetails) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: NebulaHandshakeDetails: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: NebulaHandshakeDetails: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Cert", wireType)
|
|
|
+ }
|
|
|
+ var byteLen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ byteLen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if byteLen < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + byteLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Cert = append(m.Cert[:0], dAtA[iNdEx:postIndex]...)
|
|
|
+ if m.Cert == nil {
|
|
|
+ m.Cert = []byte{}
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field InitiatorIndex", wireType)
|
|
|
+ }
|
|
|
+ m.InitiatorIndex = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.InitiatorIndex |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ResponderIndex", wireType)
|
|
|
+ }
|
|
|
+ m.ResponderIndex = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ResponderIndex |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Cookie", wireType)
|
|
|
+ }
|
|
|
+ m.Cookie = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Cookie |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
|
|
|
+ }
|
|
|
+ m.Time = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Time |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipNebula(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
+ return ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-var File_nebula_proto protoreflect.FileDescriptor
|
|
|
-
|
|
|
-var file_nebula_proto_rawDesc = []byte{
|
|
|
- 0x0a, 0x0c, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
|
|
- 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x22, 0xcc, 0x02, 0x0a, 0x0a, 0x4e, 0x65, 0x62, 0x75, 0x6c,
|
|
|
- 0x61, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
|
|
- 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x4e, 0x65, 0x62,
|
|
|
- 0x75, 0x6c, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
|
|
|
- 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x44, 0x65, 0x74,
|
|
|
- 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x62,
|
|
|
- 0x75, 0x6c, 0x61, 0x2e, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x44, 0x65,
|
|
|
- 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xd4,
|
|
|
- 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08,
|
|
|
- 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x6f, 0x73, 0x74,
|
|
|
- 0x51, 0x75, 0x65, 0x72, 0x79, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x6f, 0x73, 0x74, 0x51,
|
|
|
- 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x48,
|
|
|
- 0x6f, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
|
|
|
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x6f, 0x73, 0x74, 0x4d,
|
|
|
- 0x6f, 0x76, 0x65, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
- 0x10, 0x04, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x75, 0x6e, 0x63, 0x68, 0x4e,
|
|
|
- 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x05, 0x12, 0x0e, 0x0a,
|
|
|
- 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x57, 0x68, 0x6f, 0x61, 0x6d, 0x69, 0x10, 0x06, 0x12, 0x13, 0x0a,
|
|
|
- 0x0f, 0x48, 0x6f, 0x73, 0x74, 0x57, 0x68, 0x6f, 0x61, 0x6d, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
- 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x61, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x10,
|
|
|
- 0x08, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
|
|
|
- 0x70, 0x6c, 0x79, 0x10, 0x09, 0x22, 0xac, 0x01, 0x0a, 0x11, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61,
|
|
|
- 0x4d, 0x65, 0x74, 0x61, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x56,
|
|
|
- 0x70, 0x6e, 0x49, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x56, 0x70, 0x6e, 0x49,
|
|
|
- 0x70, 0x12, 0x31, 0x0a, 0x0a, 0x49, 0x70, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18,
|
|
|
- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x49,
|
|
|
- 0x70, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x0a, 0x49, 0x70, 0x41, 0x6e, 0x64, 0x50,
|
|
|
- 0x6f, 0x72, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x0b, 0x49, 0x70, 0x36, 0x41, 0x6e, 0x64, 0x50, 0x6f,
|
|
|
- 0x72, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6e, 0x65, 0x62, 0x75,
|
|
|
- 0x6c, 0x61, 0x2e, 0x49, 0x70, 0x36, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x0b, 0x49,
|
|
|
- 0x70, 0x36, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
|
|
|
- 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x6f, 0x75,
|
|
|
- 0x6e, 0x74, 0x65, 0x72, 0x22, 0x2f, 0x0a, 0x09, 0x49, 0x70, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x72,
|
|
|
- 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x49,
|
|
|
- 0x70, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
|
- 0x04, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x30, 0x0a, 0x0a, 0x49, 0x70, 0x36, 0x41, 0x6e, 0x64, 0x50,
|
|
|
- 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
|
- 0x02, 0x49, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
- 0x0d, 0x52, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x78, 0x0a, 0x0a, 0x4e, 0x65, 0x62, 0x75, 0x6c,
|
|
|
- 0x61, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
|
|
- 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x4e, 0x65, 0x62,
|
|
|
- 0x75, 0x6c, 0x61, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
|
|
|
- 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x69, 0x6d,
|
|
|
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x22, 0x0a,
|
|
|
- 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04,
|
|
|
- 0x50, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x10,
|
|
|
- 0x01, 0x22, 0x5f, 0x0a, 0x0f, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x48, 0x61, 0x6e, 0x64, 0x73,
|
|
|
- 0x68, 0x61, 0x6b, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18,
|
|
|
- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2e, 0x4e,
|
|
|
- 0x65, 0x62, 0x75, 0x6c, 0x61, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x44, 0x65,
|
|
|
- 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x12,
|
|
|
- 0x0a, 0x04, 0x48, 0x6d, 0x61, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x48, 0x6d,
|
|
|
- 0x61, 0x63, 0x22, 0xa8, 0x01, 0x0a, 0x16, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x48, 0x61, 0x6e,
|
|
|
- 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x12, 0x0a,
|
|
|
- 0x04, 0x43, 0x65, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x43, 0x65, 0x72,
|
|
|
- 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e,
|
|
|
- 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69,
|
|
|
- 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x26, 0x0a, 0x0e, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
- 0x0d, 0x52, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65,
|
|
|
- 0x78, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
- 0x04, 0x52, 0x06, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x69, 0x6d,
|
|
|
- 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x1b, 0x5a,
|
|
|
- 0x19, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6c, 0x61, 0x63,
|
|
|
- 0x6b, 0x68, 0x71, 0x2f, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
- 0x6f, 0x33,
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func skipNebula(dAtA []byte) (n int, err error) {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ depth := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ switch wireType {
|
|
|
+ case 0:
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx++
|
|
|
+ if dAtA[iNdEx-1] < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 1:
|
|
|
+ iNdEx += 8
|
|
|
+ case 2:
|
|
|
+ var length int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowNebula
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ length |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if length < 0 {
|
|
|
+ return 0, ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ iNdEx += length
|
|
|
+ case 3:
|
|
|
+ depth++
|
|
|
+ case 4:
|
|
|
+ if depth == 0 {
|
|
|
+ return 0, ErrUnexpectedEndOfGroupNebula
|
|
|
+ }
|
|
|
+ depth--
|
|
|
+ case 5:
|
|
|
+ iNdEx += 4
|
|
|
+ default:
|
|
|
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
+ }
|
|
|
+ if iNdEx < 0 {
|
|
|
+ return 0, ErrInvalidLengthNebula
|
|
|
+ }
|
|
|
+ if depth == 0 {
|
|
|
+ return iNdEx, nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
- file_nebula_proto_rawDescOnce sync.Once
|
|
|
- file_nebula_proto_rawDescData = file_nebula_proto_rawDesc
|
|
|
+ ErrInvalidLengthNebula = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
+ ErrIntOverflowNebula = fmt.Errorf("proto: integer overflow")
|
|
|
+ ErrUnexpectedEndOfGroupNebula = fmt.Errorf("proto: unexpected end of group")
|
|
|
)
|
|
|
-
|
|
|
-func file_nebula_proto_rawDescGZIP() []byte {
|
|
|
- file_nebula_proto_rawDescOnce.Do(func() {
|
|
|
- file_nebula_proto_rawDescData = protoimpl.X.CompressGZIP(file_nebula_proto_rawDescData)
|
|
|
- })
|
|
|
- return file_nebula_proto_rawDescData
|
|
|
-}
|
|
|
-
|
|
|
-var file_nebula_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
|
-var file_nebula_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
-var file_nebula_proto_goTypes = []interface{}{
|
|
|
- (NebulaMeta_MessageType)(0), // 0: nebula.NebulaMeta.MessageType
|
|
|
- (NebulaPing_MessageType)(0), // 1: nebula.NebulaPing.MessageType
|
|
|
- (*NebulaMeta)(nil), // 2: nebula.NebulaMeta
|
|
|
- (*NebulaMetaDetails)(nil), // 3: nebula.NebulaMetaDetails
|
|
|
- (*IpAndPort)(nil), // 4: nebula.IpAndPort
|
|
|
- (*Ip6AndPort)(nil), // 5: nebula.Ip6AndPort
|
|
|
- (*NebulaPing)(nil), // 6: nebula.NebulaPing
|
|
|
- (*NebulaHandshake)(nil), // 7: nebula.NebulaHandshake
|
|
|
- (*NebulaHandshakeDetails)(nil), // 8: nebula.NebulaHandshakeDetails
|
|
|
-}
|
|
|
-var file_nebula_proto_depIdxs = []int32{
|
|
|
- 0, // 0: nebula.NebulaMeta.Type:type_name -> nebula.NebulaMeta.MessageType
|
|
|
- 3, // 1: nebula.NebulaMeta.Details:type_name -> nebula.NebulaMetaDetails
|
|
|
- 4, // 2: nebula.NebulaMetaDetails.IpAndPorts:type_name -> nebula.IpAndPort
|
|
|
- 5, // 3: nebula.NebulaMetaDetails.Ip6AndPorts:type_name -> nebula.Ip6AndPort
|
|
|
- 1, // 4: nebula.NebulaPing.Type:type_name -> nebula.NebulaPing.MessageType
|
|
|
- 8, // 5: nebula.NebulaHandshake.Details:type_name -> nebula.NebulaHandshakeDetails
|
|
|
- 6, // [6:6] is the sub-list for method output_type
|
|
|
- 6, // [6:6] is the sub-list for method input_type
|
|
|
- 6, // [6:6] is the sub-list for extension type_name
|
|
|
- 6, // [6:6] is the sub-list for extension extendee
|
|
|
- 0, // [0:6] is the sub-list for field type_name
|
|
|
-}
|
|
|
-
|
|
|
-func init() { file_nebula_proto_init() }
|
|
|
-func file_nebula_proto_init() {
|
|
|
- if File_nebula_proto != nil {
|
|
|
- return
|
|
|
- }
|
|
|
- if !protoimpl.UnsafeEnabled {
|
|
|
- file_nebula_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NebulaMeta); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NebulaMetaDetails); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*IpAndPort); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Ip6AndPort); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NebulaPing); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NebulaHandshake); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_nebula_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*NebulaHandshakeDetails); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- type x struct{}
|
|
|
- out := protoimpl.TypeBuilder{
|
|
|
- File: protoimpl.DescBuilder{
|
|
|
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
- RawDescriptor: file_nebula_proto_rawDesc,
|
|
|
- NumEnums: 2,
|
|
|
- NumMessages: 7,
|
|
|
- NumExtensions: 0,
|
|
|
- NumServices: 0,
|
|
|
- },
|
|
|
- GoTypes: file_nebula_proto_goTypes,
|
|
|
- DependencyIndexes: file_nebula_proto_depIdxs,
|
|
|
- EnumInfos: file_nebula_proto_enumTypes,
|
|
|
- MessageInfos: file_nebula_proto_msgTypes,
|
|
|
- }.Build()
|
|
|
- File_nebula_proto = out.File
|
|
|
- file_nebula_proto_rawDesc = nil
|
|
|
- file_nebula_proto_goTypes = nil
|
|
|
- file_nebula_proto_depIdxs = nil
|
|
|
-}
|