| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package sit |
| 10 |
|
| 11 |
import ( |
| 12 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
sync "sync" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type SitEntry struct { |
| 27 |
state protoimpl.MessageState |
| 28 |
sizeCache protoimpl.SizeCache |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
|
| 31 |
Link *uint32 `protobuf:"varint,1,opt,name=link" json:"link,omitempty"` |
| 32 |
Local []uint32 `protobuf:"varint,2,rep,name=local" json:"local,omitempty"` |
| 33 |
Remote []uint32 `protobuf:"varint,3,rep,name=remote" json:"remote,omitempty"` |
| 34 |
Ttl *uint32 `protobuf:"varint,4,opt,name=ttl" json:"ttl,omitempty"` |
| 35 |
Tos *uint32 `protobuf:"varint,5,opt,name=tos" json:"tos,omitempty"` |
| 36 |
Pmtudisc *bool `protobuf:"varint,6,opt,name=pmtudisc" json:"pmtudisc,omitempty"` |
| 37 |
Proto *uint32 `protobuf:"varint,7,opt,name=proto" json:"proto,omitempty"` |
| 38 |
Flags *uint32 `protobuf:"varint,8,opt,name=flags" json:"flags,omitempty"` |
| 39 |
EncapType *uint32 `protobuf:"varint,9,opt,name=encap_type,json=encapType" json:"encap_type,omitempty"` |
| 40 |
EncapFlags *uint32 `protobuf:"varint,10,opt,name=encap_flags,json=encapFlags" json:"encap_flags,omitempty"` |
| 41 |
EncapSport *uint32 `protobuf:"varint,11,opt,name=encap_sport,json=encapSport" json:"encap_sport,omitempty"` |
| 42 |
EncapDport *uint32 `protobuf:"varint,12,opt,name=encap_dport,json=encapDport" json:"encap_dport,omitempty"` |
| 43 |
RdPrefixlen *uint32 `protobuf:"varint,13,opt,name=rd_prefixlen,json=rdPrefixlen" json:"rd_prefixlen,omitempty"` |
| 44 |
RdPrefix []uint32 `protobuf:"varint,14,rep,name=rd_prefix,json=rdPrefix" json:"rd_prefix,omitempty"` |
| 45 |
RelayPrefixlen *uint32 `protobuf:"varint,15,opt,name=relay_prefixlen,json=relayPrefixlen" json:"relay_prefixlen,omitempty"` |
| 46 |
RelayPrefix []uint32 `protobuf:"varint,16,rep,name=relay_prefix,json=relayPrefix" json:"relay_prefix,omitempty"` |
| 47 |
} |
| 48 |
|
| 49 |
func (x *SitEntry) Reset() { |
| 50 |
*x = SitEntry{} |
| 51 |
if protoimpl.UnsafeEnabled { |
| 52 |
mi := &file_sit_proto_msgTypes[0] |
| 53 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 |
ms.StoreMessageInfo(mi) |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
func (x *SitEntry) String() string { |
| 59 |
return protoimpl.X.MessageStringOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
func (*SitEntry) ProtoMessage() {} |
| 63 |
|
| 64 |
func (x *SitEntry) ProtoReflect() protoreflect.Message { |
| 65 |
mi := &file_sit_proto_msgTypes[0] |
| 66 |
if protoimpl.UnsafeEnabled && x != nil { |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
if ms.LoadMessageInfo() == nil { |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
return ms |
| 72 |
} |
| 73 |
return mi.MessageOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
func (*SitEntry) Descriptor() ([]byte, []int) { |
| 78 |
return file_sit_proto_rawDescGZIP(), []int{0} |
| 79 |
} |
| 80 |
|
| 81 |
func (x *SitEntry) GetLink() uint32 { |
| 82 |
if x != nil && x.Link != nil { |
| 83 |
return *x.Link |
| 84 |
} |
| 85 |
return 0 |
| 86 |
} |
| 87 |
|
| 88 |
func (x *SitEntry) GetLocal() []uint32 { |
| 89 |
if x != nil { |
| 90 |
return x.Local |
| 91 |
} |
| 92 |
return nil |
| 93 |
} |
| 94 |
|
| 95 |
func (x *SitEntry) GetRemote() []uint32 { |
| 96 |
if x != nil { |
| 97 |
return x.Remote |
| 98 |
} |
| 99 |
return nil |
| 100 |
} |
| 101 |
|
| 102 |
func (x *SitEntry) GetTtl() uint32 { |
| 103 |
if x != nil && x.Ttl != nil { |
| 104 |
return *x.Ttl |
| 105 |
} |
| 106 |
return 0 |
| 107 |
} |
| 108 |
|
| 109 |
func (x *SitEntry) GetTos() uint32 { |
| 110 |
if x != nil && x.Tos != nil { |
| 111 |
return *x.Tos |
| 112 |
} |
| 113 |
return 0 |
| 114 |
} |
| 115 |
|
| 116 |
func (x *SitEntry) GetPmtudisc() bool { |
| 117 |
if x != nil && x.Pmtudisc != nil { |
| 118 |
return *x.Pmtudisc |
| 119 |
} |
| 120 |
return false |
| 121 |
} |
| 122 |
|
| 123 |
func (x *SitEntry) GetProto() uint32 { |
| 124 |
if x != nil && x.Proto != nil { |
| 125 |
return *x.Proto |
| 126 |
} |
| 127 |
return 0 |
| 128 |
} |
| 129 |
|
| 130 |
func (x *SitEntry) GetFlags() uint32 { |
| 131 |
if x != nil && x.Flags != nil { |
| 132 |
return *x.Flags |
| 133 |
} |
| 134 |
return 0 |
| 135 |
} |
| 136 |
|
| 137 |
func (x *SitEntry) GetEncapType() uint32 { |
| 138 |
if x != nil && x.EncapType != nil { |
| 139 |
return *x.EncapType |
| 140 |
} |
| 141 |
return 0 |
| 142 |
} |
| 143 |
|
| 144 |
func (x *SitEntry) GetEncapFlags() uint32 { |
| 145 |
if x != nil && x.EncapFlags != nil { |
| 146 |
return *x.EncapFlags |
| 147 |
} |
| 148 |
return 0 |
| 149 |
} |
| 150 |
|
| 151 |
func (x *SitEntry) GetEncapSport() uint32 { |
| 152 |
if x != nil && x.EncapSport != nil { |
| 153 |
return *x.EncapSport |
| 154 |
} |
| 155 |
return 0 |
| 156 |
} |
| 157 |
|
| 158 |
func (x *SitEntry) GetEncapDport() uint32 { |
| 159 |
if x != nil && x.EncapDport != nil { |
| 160 |
return *x.EncapDport |
| 161 |
} |
| 162 |
return 0 |
| 163 |
} |
| 164 |
|
| 165 |
func (x *SitEntry) GetRdPrefixlen() uint32 { |
| 166 |
if x != nil && x.RdPrefixlen != nil { |
| 167 |
return *x.RdPrefixlen |
| 168 |
} |
| 169 |
return 0 |
| 170 |
} |
| 171 |
|
| 172 |
func (x *SitEntry) GetRdPrefix() []uint32 { |
| 173 |
if x != nil { |
| 174 |
return x.RdPrefix |
| 175 |
} |
| 176 |
return nil |
| 177 |
} |
| 178 |
|
| 179 |
func (x *SitEntry) GetRelayPrefixlen() uint32 { |
| 180 |
if x != nil && x.RelayPrefixlen != nil { |
| 181 |
return *x.RelayPrefixlen |
| 182 |
} |
| 183 |
return 0 |
| 184 |
} |
| 185 |
|
| 186 |
func (x *SitEntry) GetRelayPrefix() []uint32 { |
| 187 |
if x != nil { |
| 188 |
return x.RelayPrefix |
| 189 |
} |
| 190 |
return nil |
| 191 |
} |
| 192 |
|
| 193 |
var File_sit_proto protoreflect.FileDescriptor |
| 194 |
|
| 195 |
var file_sit_proto_rawDesc = []byte{ |
| 196 |
0x0a, 0x09, 0x73, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74, |
| 197 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x03, 0x0a, 0x09, 0x73, 0x69, 0x74, 0x5f, |
| 198 |
0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, |
| 199 |
0x01, 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x1b, 0x0a, 0x05, 0x6c, 0x6f, 0x63, |
| 200 |
0x61, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x10, 0x01, 0x52, |
| 201 |
0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, |
| 202 |
0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x10, 0x01, 0x52, 0x06, 0x72, |
| 203 |
0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x04, 0x20, 0x01, |
| 204 |
0x28, 0x0d, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6f, 0x73, 0x18, 0x05, |
| 205 |
0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x6f, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6d, 0x74, |
| 206 |
0x75, 0x64, 0x69, 0x73, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x70, 0x6d, 0x74, |
| 207 |
0x75, 0x64, 0x69, 0x73, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x07, |
| 208 |
0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x66, |
| 209 |
0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, |
| 210 |
0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 211 |
0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, |
| 212 |
0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, |
| 213 |
0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x46, 0x6c, 0x61, 0x67, |
| 214 |
0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x73, 0x70, 0x6f, 0x72, 0x74, |
| 215 |
0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x53, 0x70, 0x6f, |
| 216 |
0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x5f, 0x64, 0x70, 0x6f, 0x72, |
| 217 |
0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x61, 0x70, 0x44, 0x70, |
| 218 |
0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, |
| 219 |
0x6c, 0x65, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x72, 0x64, 0x50, 0x72, 0x65, |
| 220 |
0x66, 0x69, 0x78, 0x6c, 0x65, 0x6e, 0x12, 0x22, 0x0a, 0x09, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x65, |
| 221 |
0x66, 0x69, 0x78, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x10, 0x01, |
| 222 |
0x52, 0x08, 0x72, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, |
| 223 |
0x6c, 0x61, 0x79, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x6c, 0x65, 0x6e, 0x18, 0x0f, 0x20, |
| 224 |
0x01, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, |
| 225 |
0x6c, 0x65, 0x6e, 0x12, 0x28, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x70, 0x72, 0x65, |
| 226 |
0x66, 0x69, 0x78, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x10, 0x01, |
| 227 |
0x52, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, |
| 228 |
} |
| 229 |
|
| 230 |
var ( |
| 231 |
file_sit_proto_rawDescOnce sync.Once |
| 232 |
file_sit_proto_rawDescData = file_sit_proto_rawDesc |
| 233 |
) |
| 234 |
|
| 235 |
func file_sit_proto_rawDescGZIP() []byte { |
| 236 |
file_sit_proto_rawDescOnce.Do(func() { |
| 237 |
file_sit_proto_rawDescData = protoimpl.X.CompressGZIP(file_sit_proto_rawDescData) |
| 238 |
}) |
| 239 |
return file_sit_proto_rawDescData |
| 240 |
} |
| 241 |
|
| 242 |
var file_sit_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 243 |
var file_sit_proto_goTypes = []interface{}{ |
| 244 |
(*SitEntry)(nil), |
| 245 |
} |
| 246 |
var file_sit_proto_depIdxs = []int32{ |
| 247 |
0, |
| 248 |
0, |
| 249 |
0, |
| 250 |
0, |
| 251 |
0, |
| 252 |
} |
| 253 |
|
| 254 |
func init() { file_sit_proto_init() } |
| 255 |
func file_sit_proto_init() { |
| 256 |
if File_sit_proto != nil { |
| 257 |
return |
| 258 |
} |
| 259 |
if !protoimpl.UnsafeEnabled { |
| 260 |
file_sit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 261 |
switch v := v.(*SitEntry); i { |
| 262 |
case 0: |
| 263 |
return &v.state |
| 264 |
case 1: |
| 265 |
return &v.sizeCache |
| 266 |
case 2: |
| 267 |
return &v.unknownFields |
| 268 |
default: |
| 269 |
return nil |
| 270 |
} |
| 271 |
} |
| 272 |
} |
| 273 |
type x struct{} |
| 274 |
out := protoimpl.TypeBuilder{ |
| 275 |
File: protoimpl.DescBuilder{ |
| 276 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 277 |
RawDescriptor: file_sit_proto_rawDesc, |
| 278 |
NumEnums: 0, |
| 279 |
NumMessages: 1, |
| 280 |
NumExtensions: 0, |
| 281 |
NumServices: 0, |
| 282 |
}, |
| 283 |
GoTypes: file_sit_proto_goTypes, |
| 284 |
DependencyIndexes: file_sit_proto_depIdxs, |
| 285 |
MessageInfos: file_sit_proto_msgTypes, |
| 286 |
}.Build() |
| 287 |
File_sit_proto = out.File |
| 288 |
file_sit_proto_rawDesc = nil |
| 289 |
file_sit_proto_goTypes = nil |
| 290 |
file_sit_proto_depIdxs = nil |
| 291 |
} |