| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package netdev |
| 10 |
|
| 11 |
import ( |
| 12 |
macvlan "github.com/checkpoint-restore/go-criu/v7/crit/images/macvlan" |
| 13 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 14 |
sit "github.com/checkpoint-restore/go-criu/v7/crit/images/sit" |
| 15 |
sysctl "github.com/checkpoint-restore/go-criu/v7/crit/images/sysctl" |
| 16 |
tun "github.com/checkpoint-restore/go-criu/v7/crit/images/tun" |
| 17 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 18 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 19 |
reflect "reflect" |
| 20 |
sync "sync" |
| 21 |
) |
| 22 |
|
| 23 |
const ( |
| 24 |
|
| 25 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 26 |
|
| 27 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 28 |
) |
| 29 |
|
| 30 |
type NdType int32 |
| 31 |
|
| 32 |
const ( |
| 33 |
NdType_LOOPBACK NdType = 1 |
| 34 |
NdType_VETH NdType = 2 |
| 35 |
NdType_TUN NdType = 3 |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
NdType_EXTLINK NdType = 4 |
| 41 |
NdType_VENET NdType = 5 |
| 42 |
NdType_BRIDGE NdType = 6 |
| 43 |
NdType_MACVLAN NdType = 7 |
| 44 |
NdType_SIT NdType = 8 |
| 45 |
) |
| 46 |
|
| 47 |
|
| 48 |
var ( |
| 49 |
NdType_name = map[int32]string{ |
| 50 |
1: "LOOPBACK", |
| 51 |
2: "VETH", |
| 52 |
3: "TUN", |
| 53 |
4: "EXTLINK", |
| 54 |
5: "VENET", |
| 55 |
6: "BRIDGE", |
| 56 |
7: "MACVLAN", |
| 57 |
8: "SIT", |
| 58 |
} |
| 59 |
NdType_value = map[string]int32{ |
| 60 |
"LOOPBACK": 1, |
| 61 |
"VETH": 2, |
| 62 |
"TUN": 3, |
| 63 |
"EXTLINK": 4, |
| 64 |
"VENET": 5, |
| 65 |
"BRIDGE": 6, |
| 66 |
"MACVLAN": 7, |
| 67 |
"SIT": 8, |
| 68 |
} |
| 69 |
) |
| 70 |
|
| 71 |
func (x NdType) Enum() *NdType { |
| 72 |
p := new(NdType) |
| 73 |
*p = x |
| 74 |
return p |
| 75 |
} |
| 76 |
|
| 77 |
func (x NdType) String() string { |
| 78 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 79 |
} |
| 80 |
|
| 81 |
func (NdType) Descriptor() protoreflect.EnumDescriptor { |
| 82 |
return file_netdev_proto_enumTypes[0].Descriptor() |
| 83 |
} |
| 84 |
|
| 85 |
func (NdType) Type() protoreflect.EnumType { |
| 86 |
return &file_netdev_proto_enumTypes[0] |
| 87 |
} |
| 88 |
|
| 89 |
func (x NdType) Number() protoreflect.EnumNumber { |
| 90 |
return protoreflect.EnumNumber(x) |
| 91 |
} |
| 92 |
|
| 93 |
|
| 94 |
func (x *NdType) UnmarshalJSON(b []byte) error { |
| 95 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 96 |
if err != nil { |
| 97 |
return err |
| 98 |
} |
| 99 |
*x = NdType(num) |
| 100 |
return nil |
| 101 |
} |
| 102 |
|
| 103 |
|
| 104 |
func (NdType) EnumDescriptor() ([]byte, []int) { |
| 105 |
return file_netdev_proto_rawDescGZIP(), []int{0} |
| 106 |
} |
| 107 |
|
| 108 |
type NetDeviceEntry struct { |
| 109 |
state protoimpl.MessageState |
| 110 |
sizeCache protoimpl.SizeCache |
| 111 |
unknownFields protoimpl.UnknownFields |
| 112 |
|
| 113 |
Type *NdType `protobuf:"varint,1,req,name=type,enum=NdType" json:"type,omitempty"` |
| 114 |
Ifindex *uint32 `protobuf:"varint,2,req,name=ifindex" json:"ifindex,omitempty"` |
| 115 |
Mtu *uint32 `protobuf:"varint,3,req,name=mtu" json:"mtu,omitempty"` |
| 116 |
Flags *uint32 `protobuf:"varint,4,req,name=flags" json:"flags,omitempty"` |
| 117 |
Name *string `protobuf:"bytes,5,req,name=name" json:"name,omitempty"` |
| 118 |
Tun *tun.TunLinkEntry `protobuf:"bytes,6,opt,name=tun" json:"tun,omitempty"` |
| 119 |
Address []byte `protobuf:"bytes,7,opt,name=address" json:"address,omitempty"` |
| 120 |
Conf []int32 `protobuf:"varint,8,rep,name=conf" json:"conf,omitempty"` |
| 121 |
Conf4 []*sysctl.SysctlEntry `protobuf:"bytes,9,rep,name=conf4" json:"conf4,omitempty"` |
| 122 |
Conf6 []*sysctl.SysctlEntry `protobuf:"bytes,10,rep,name=conf6" json:"conf6,omitempty"` |
| 123 |
Macvlan *macvlan.MacvlanLinkEntry `protobuf:"bytes,11,opt,name=macvlan" json:"macvlan,omitempty"` |
| 124 |
PeerIfindex *uint32 `protobuf:"varint,12,opt,name=peer_ifindex,json=peerIfindex" json:"peer_ifindex,omitempty"` |
| 125 |
PeerNsid *uint32 `protobuf:"varint,13,opt,name=peer_nsid,json=peerNsid" json:"peer_nsid,omitempty"` |
| 126 |
Master *uint32 `protobuf:"varint,14,opt,name=master" json:"master,omitempty"` |
| 127 |
Sit *sit.SitEntry `protobuf:"bytes,15,opt,name=sit" json:"sit,omitempty"` |
| 128 |
} |
| 129 |
|
| 130 |
func (x *NetDeviceEntry) Reset() { |
| 131 |
*x = NetDeviceEntry{} |
| 132 |
if protoimpl.UnsafeEnabled { |
| 133 |
mi := &file_netdev_proto_msgTypes[0] |
| 134 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 135 |
ms.StoreMessageInfo(mi) |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
func (x *NetDeviceEntry) String() string { |
| 140 |
return protoimpl.X.MessageStringOf(x) |
| 141 |
} |
| 142 |
|
| 143 |
func (*NetDeviceEntry) ProtoMessage() {} |
| 144 |
|
| 145 |
func (x *NetDeviceEntry) ProtoReflect() protoreflect.Message { |
| 146 |
mi := &file_netdev_proto_msgTypes[0] |
| 147 |
if protoimpl.UnsafeEnabled && x != nil { |
| 148 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 149 |
if ms.LoadMessageInfo() == nil { |
| 150 |
ms.StoreMessageInfo(mi) |
| 151 |
} |
| 152 |
return ms |
| 153 |
} |
| 154 |
return mi.MessageOf(x) |
| 155 |
} |
| 156 |
|
| 157 |
|
| 158 |
func (*NetDeviceEntry) Descriptor() ([]byte, []int) { |
| 159 |
return file_netdev_proto_rawDescGZIP(), []int{0} |
| 160 |
} |
| 161 |
|
| 162 |
func (x *NetDeviceEntry) GetType() NdType { |
| 163 |
if x != nil && x.Type != nil { |
| 164 |
return *x.Type |
| 165 |
} |
| 166 |
return NdType_LOOPBACK |
| 167 |
} |
| 168 |
|
| 169 |
func (x *NetDeviceEntry) GetIfindex() uint32 { |
| 170 |
if x != nil && x.Ifindex != nil { |
| 171 |
return *x.Ifindex |
| 172 |
} |
| 173 |
return 0 |
| 174 |
} |
| 175 |
|
| 176 |
func (x *NetDeviceEntry) GetMtu() uint32 { |
| 177 |
if x != nil && x.Mtu != nil { |
| 178 |
return *x.Mtu |
| 179 |
} |
| 180 |
return 0 |
| 181 |
} |
| 182 |
|
| 183 |
func (x *NetDeviceEntry) GetFlags() uint32 { |
| 184 |
if x != nil && x.Flags != nil { |
| 185 |
return *x.Flags |
| 186 |
} |
| 187 |
return 0 |
| 188 |
} |
| 189 |
|
| 190 |
func (x *NetDeviceEntry) GetName() string { |
| 191 |
if x != nil && x.Name != nil { |
| 192 |
return *x.Name |
| 193 |
} |
| 194 |
return "" |
| 195 |
} |
| 196 |
|
| 197 |
func (x *NetDeviceEntry) GetTun() *tun.TunLinkEntry { |
| 198 |
if x != nil { |
| 199 |
return x.Tun |
| 200 |
} |
| 201 |
return nil |
| 202 |
} |
| 203 |
|
| 204 |
func (x *NetDeviceEntry) GetAddress() []byte { |
| 205 |
if x != nil { |
| 206 |
return x.Address |
| 207 |
} |
| 208 |
return nil |
| 209 |
} |
| 210 |
|
| 211 |
func (x *NetDeviceEntry) GetConf() []int32 { |
| 212 |
if x != nil { |
| 213 |
return x.Conf |
| 214 |
} |
| 215 |
return nil |
| 216 |
} |
| 217 |
|
| 218 |
func (x *NetDeviceEntry) GetConf4() []*sysctl.SysctlEntry { |
| 219 |
if x != nil { |
| 220 |
return x.Conf4 |
| 221 |
} |
| 222 |
return nil |
| 223 |
} |
| 224 |
|
| 225 |
func (x *NetDeviceEntry) GetConf6() []*sysctl.SysctlEntry { |
| 226 |
if x != nil { |
| 227 |
return x.Conf6 |
| 228 |
} |
| 229 |
return nil |
| 230 |
} |
| 231 |
|
| 232 |
func (x *NetDeviceEntry) GetMacvlan() *macvlan.MacvlanLinkEntry { |
| 233 |
if x != nil { |
| 234 |
return x.Macvlan |
| 235 |
} |
| 236 |
return nil |
| 237 |
} |
| 238 |
|
| 239 |
func (x *NetDeviceEntry) GetPeerIfindex() uint32 { |
| 240 |
if x != nil && x.PeerIfindex != nil { |
| 241 |
return *x.PeerIfindex |
| 242 |
} |
| 243 |
return 0 |
| 244 |
} |
| 245 |
|
| 246 |
func (x *NetDeviceEntry) GetPeerNsid() uint32 { |
| 247 |
if x != nil && x.PeerNsid != nil { |
| 248 |
return *x.PeerNsid |
| 249 |
} |
| 250 |
return 0 |
| 251 |
} |
| 252 |
|
| 253 |
func (x *NetDeviceEntry) GetMaster() uint32 { |
| 254 |
if x != nil && x.Master != nil { |
| 255 |
return *x.Master |
| 256 |
} |
| 257 |
return 0 |
| 258 |
} |
| 259 |
|
| 260 |
func (x *NetDeviceEntry) GetSit() *sit.SitEntry { |
| 261 |
if x != nil { |
| 262 |
return x.Sit |
| 263 |
} |
| 264 |
return nil |
| 265 |
} |
| 266 |
|
| 267 |
type NetnsId struct { |
| 268 |
state protoimpl.MessageState |
| 269 |
sizeCache protoimpl.SizeCache |
| 270 |
unknownFields protoimpl.UnknownFields |
| 271 |
|
| 272 |
|
| 273 |
TargetNsId *uint32 `protobuf:"varint,1,req,name=target_ns_id,json=targetNsId" json:"target_ns_id,omitempty"` |
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
NetnsidValue *int32 `protobuf:"varint,2,req,name=netnsid_value,json=netnsidValue" json:"netnsid_value,omitempty"` |
| 278 |
} |
| 279 |
|
| 280 |
func (x *NetnsId) Reset() { |
| 281 |
*x = NetnsId{} |
| 282 |
if protoimpl.UnsafeEnabled { |
| 283 |
mi := &file_netdev_proto_msgTypes[1] |
| 284 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 285 |
ms.StoreMessageInfo(mi) |
| 286 |
} |
| 287 |
} |
| 288 |
|
| 289 |
func (x *NetnsId) String() string { |
| 290 |
return protoimpl.X.MessageStringOf(x) |
| 291 |
} |
| 292 |
|
| 293 |
func (*NetnsId) ProtoMessage() {} |
| 294 |
|
| 295 |
func (x *NetnsId) ProtoReflect() protoreflect.Message { |
| 296 |
mi := &file_netdev_proto_msgTypes[1] |
| 297 |
if protoimpl.UnsafeEnabled && x != nil { |
| 298 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 299 |
if ms.LoadMessageInfo() == nil { |
| 300 |
ms.StoreMessageInfo(mi) |
| 301 |
} |
| 302 |
return ms |
| 303 |
} |
| 304 |
return mi.MessageOf(x) |
| 305 |
} |
| 306 |
|
| 307 |
|
| 308 |
func (*NetnsId) Descriptor() ([]byte, []int) { |
| 309 |
return file_netdev_proto_rawDescGZIP(), []int{1} |
| 310 |
} |
| 311 |
|
| 312 |
func (x *NetnsId) GetTargetNsId() uint32 { |
| 313 |
if x != nil && x.TargetNsId != nil { |
| 314 |
return *x.TargetNsId |
| 315 |
} |
| 316 |
return 0 |
| 317 |
} |
| 318 |
|
| 319 |
func (x *NetnsId) GetNetnsidValue() int32 { |
| 320 |
if x != nil && x.NetnsidValue != nil { |
| 321 |
return *x.NetnsidValue |
| 322 |
} |
| 323 |
return 0 |
| 324 |
} |
| 325 |
|
| 326 |
type NetnsEntry struct { |
| 327 |
state protoimpl.MessageState |
| 328 |
sizeCache protoimpl.SizeCache |
| 329 |
unknownFields protoimpl.UnknownFields |
| 330 |
|
| 331 |
DefConf []int32 `protobuf:"varint,1,rep,name=def_conf,json=defConf" json:"def_conf,omitempty"` |
| 332 |
AllConf []int32 `protobuf:"varint,2,rep,name=all_conf,json=allConf" json:"all_conf,omitempty"` |
| 333 |
DefConf4 []*sysctl.SysctlEntry `protobuf:"bytes,3,rep,name=def_conf4,json=defConf4" json:"def_conf4,omitempty"` |
| 334 |
AllConf4 []*sysctl.SysctlEntry `protobuf:"bytes,4,rep,name=all_conf4,json=allConf4" json:"all_conf4,omitempty"` |
| 335 |
DefConf6 []*sysctl.SysctlEntry `protobuf:"bytes,5,rep,name=def_conf6,json=defConf6" json:"def_conf6,omitempty"` |
| 336 |
AllConf6 []*sysctl.SysctlEntry `protobuf:"bytes,6,rep,name=all_conf6,json=allConf6" json:"all_conf6,omitempty"` |
| 337 |
Nsids []*NetnsId `protobuf:"bytes,7,rep,name=nsids" json:"nsids,omitempty"` |
| 338 |
ExtKey *string `protobuf:"bytes,8,opt,name=ext_key,json=extKey" json:"ext_key,omitempty"` |
| 339 |
UnixConf []*sysctl.SysctlEntry `protobuf:"bytes,9,rep,name=unix_conf,json=unixConf" json:"unix_conf,omitempty"` |
| 340 |
} |
| 341 |
|
| 342 |
func (x *NetnsEntry) Reset() { |
| 343 |
*x = NetnsEntry{} |
| 344 |
if protoimpl.UnsafeEnabled { |
| 345 |
mi := &file_netdev_proto_msgTypes[2] |
| 346 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 347 |
ms.StoreMessageInfo(mi) |
| 348 |
} |
| 349 |
} |
| 350 |
|
| 351 |
func (x *NetnsEntry) String() string { |
| 352 |
return protoimpl.X.MessageStringOf(x) |
| 353 |
} |
| 354 |
|
| 355 |
func (*NetnsEntry) ProtoMessage() {} |
| 356 |
|
| 357 |
func (x *NetnsEntry) ProtoReflect() protoreflect.Message { |
| 358 |
mi := &file_netdev_proto_msgTypes[2] |
| 359 |
if protoimpl.UnsafeEnabled && x != nil { |
| 360 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 361 |
if ms.LoadMessageInfo() == nil { |
| 362 |
ms.StoreMessageInfo(mi) |
| 363 |
} |
| 364 |
return ms |
| 365 |
} |
| 366 |
return mi.MessageOf(x) |
| 367 |
} |
| 368 |
|
| 369 |
|
| 370 |
func (*NetnsEntry) Descriptor() ([]byte, []int) { |
| 371 |
return file_netdev_proto_rawDescGZIP(), []int{2} |
| 372 |
} |
| 373 |
|
| 374 |
func (x *NetnsEntry) GetDefConf() []int32 { |
| 375 |
if x != nil { |
| 376 |
return x.DefConf |
| 377 |
} |
| 378 |
return nil |
| 379 |
} |
| 380 |
|
| 381 |
func (x *NetnsEntry) GetAllConf() []int32 { |
| 382 |
if x != nil { |
| 383 |
return x.AllConf |
| 384 |
} |
| 385 |
return nil |
| 386 |
} |
| 387 |
|
| 388 |
func (x *NetnsEntry) GetDefConf4() []*sysctl.SysctlEntry { |
| 389 |
if x != nil { |
| 390 |
return x.DefConf4 |
| 391 |
} |
| 392 |
return nil |
| 393 |
} |
| 394 |
|
| 395 |
func (x *NetnsEntry) GetAllConf4() []*sysctl.SysctlEntry { |
| 396 |
if x != nil { |
| 397 |
return x.AllConf4 |
| 398 |
} |
| 399 |
return nil |
| 400 |
} |
| 401 |
|
| 402 |
func (x *NetnsEntry) GetDefConf6() []*sysctl.SysctlEntry { |
| 403 |
if x != nil { |
| 404 |
return x.DefConf6 |
| 405 |
} |
| 406 |
return nil |
| 407 |
} |
| 408 |
|
| 409 |
func (x *NetnsEntry) GetAllConf6() []*sysctl.SysctlEntry { |
| 410 |
if x != nil { |
| 411 |
return x.AllConf6 |
| 412 |
} |
| 413 |
return nil |
| 414 |
} |
| 415 |
|
| 416 |
func (x *NetnsEntry) GetNsids() []*NetnsId { |
| 417 |
if x != nil { |
| 418 |
return x.Nsids |
| 419 |
} |
| 420 |
return nil |
| 421 |
} |
| 422 |
|
| 423 |
func (x *NetnsEntry) GetExtKey() string { |
| 424 |
if x != nil && x.ExtKey != nil { |
| 425 |
return *x.ExtKey |
| 426 |
} |
| 427 |
return "" |
| 428 |
} |
| 429 |
|
| 430 |
func (x *NetnsEntry) GetUnixConf() []*sysctl.SysctlEntry { |
| 431 |
if x != nil { |
| 432 |
return x.UnixConf |
| 433 |
} |
| 434 |
return nil |
| 435 |
} |
| 436 |
|
| 437 |
var File_netdev_proto protoreflect.FileDescriptor |
| 438 |
|
| 439 |
var file_netdev_proto_rawDesc = []byte{ |
| 440 |
0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x64, 0x65, 0x76, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, |
| 441 |
0x6d, 0x61, 0x63, 0x76, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, |
| 442 |
0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, 0x74, 0x75, 0x6e, 0x2e, 0x70, |
| 443 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x2e, 0x70, 0x72, 0x6f, |
| 444 |
0x74, 0x6f, 0x1a, 0x09, 0x73, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, |
| 445 |
0x0a, 0x10, 0x6e, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x6e, 0x74, |
| 446 |
0x72, 0x79, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0e, |
| 447 |
0x32, 0x08, 0x2e, 0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, |
| 448 |
0x12, 0x18, 0x0a, 0x07, 0x69, 0x66, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x02, 0x28, |
| 449 |
0x0d, 0x52, 0x07, 0x69, 0x66, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, |
| 450 |
0x75, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x1b, 0x0a, 0x05, |
| 451 |
0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, |
| 452 |
0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, |
| 453 |
0x65, 0x18, 0x05, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, |
| 454 |
0x03, 0x74, 0x75, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x75, 0x6e, |
| 455 |
0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x74, 0x75, 0x6e, |
| 456 |
0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, |
| 457 |
0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, |
| 458 |
0x6e, 0x66, 0x18, 0x08, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x12, 0x23, |
| 459 |
0x0a, 0x05, 0x63, 0x6f, 0x6e, 0x66, 0x34, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, |
| 460 |
0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x63, 0x6f, |
| 461 |
0x6e, 0x66, 0x34, 0x12, 0x23, 0x0a, 0x05, 0x63, 0x6f, 0x6e, 0x66, 0x36, 0x18, 0x0a, 0x20, 0x03, |
| 462 |
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, |
| 463 |
0x79, 0x52, 0x05, 0x63, 0x6f, 0x6e, 0x66, 0x36, 0x12, 0x2d, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x76, |
| 464 |
0x6c, 0x61, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x61, 0x63, 0x76, |
| 465 |
0x6c, 0x61, 0x6e, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, |
| 466 |
0x6d, 0x61, 0x63, 0x76, 0x6c, 0x61, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x5f, |
| 467 |
0x69, 0x66, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, |
| 468 |
0x65, 0x65, 0x72, 0x49, 0x66, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, |
| 469 |
0x65, 0x72, 0x5f, 0x6e, 0x73, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, |
| 470 |
0x65, 0x65, 0x72, 0x4e, 0x73, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, |
| 471 |
0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, |
| 472 |
0x1c, 0x0a, 0x03, 0x73, 0x69, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, |
| 473 |
0x69, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x73, 0x69, 0x74, 0x22, 0x51, 0x0a, |
| 474 |
0x08, 0x6e, 0x65, 0x74, 0x6e, 0x73, 0x5f, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x61, 0x72, |
| 475 |
0x67, 0x65, 0x74, 0x5f, 0x6e, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 476 |
0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x73, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6e, |
| 477 |
0x65, 0x74, 0x6e, 0x73, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x02, |
| 478 |
0x28, 0x05, 0x52, 0x0c, 0x6e, 0x65, 0x74, 0x6e, 0x73, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 479 |
0x22, 0xd9, 0x02, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x6e, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, |
| 480 |
0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x01, 0x20, 0x03, |
| 481 |
0x28, 0x05, 0x52, 0x07, 0x64, 0x65, 0x66, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x19, 0x0a, 0x08, 0x61, |
| 482 |
0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x61, |
| 483 |
0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x2a, 0x0a, 0x09, 0x64, 0x65, 0x66, 0x5f, 0x63, 0x6f, |
| 484 |
0x6e, 0x66, 0x34, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x79, 0x73, 0x63, |
| 485 |
0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x64, 0x65, 0x66, 0x43, 0x6f, 0x6e, |
| 486 |
0x66, 0x34, 0x12, 0x2a, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x34, 0x18, |
| 487 |
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, |
| 488 |
0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x34, 0x12, 0x2a, |
| 489 |
0x0a, 0x09, 0x64, 0x65, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x36, 0x18, 0x05, 0x20, 0x03, 0x28, |
| 490 |
0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, |
| 491 |
0x52, 0x08, 0x64, 0x65, 0x66, 0x43, 0x6f, 0x6e, 0x66, 0x36, 0x12, 0x2a, 0x0a, 0x09, 0x61, 0x6c, |
| 492 |
0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x36, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, |
| 493 |
0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x6c, |
| 494 |
0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x36, 0x12, 0x1f, 0x0a, 0x05, 0x6e, 0x73, 0x69, 0x64, 0x73, 0x18, |
| 495 |
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x6e, 0x65, 0x74, 0x6e, 0x73, 0x5f, 0x69, 0x64, |
| 496 |
0x52, 0x05, 0x6e, 0x73, 0x69, 0x64, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x78, 0x74, 0x5f, 0x6b, |
| 497 |
0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x78, 0x74, 0x4b, 0x65, 0x79, |
| 498 |
0x12, 0x2a, 0x0a, 0x09, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x09, 0x20, |
| 499 |
0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, |
| 500 |
0x72, 0x79, 0x52, 0x08, 0x75, 0x6e, 0x69, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x2a, 0x64, 0x0a, 0x07, |
| 501 |
0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x4f, 0x4f, 0x50, 0x42, |
| 502 |
0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x45, 0x54, 0x48, 0x10, 0x02, 0x12, |
| 503 |
0x07, 0x0a, 0x03, 0x54, 0x55, 0x4e, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x58, 0x54, 0x4c, |
| 504 |
0x49, 0x4e, 0x4b, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x45, 0x4e, 0x45, 0x54, 0x10, 0x05, |
| 505 |
0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x49, 0x44, 0x47, 0x45, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, |
| 506 |
0x4d, 0x41, 0x43, 0x56, 0x4c, 0x41, 0x4e, 0x10, 0x07, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x49, 0x54, |
| 507 |
0x10, 0x08, |
| 508 |
} |
| 509 |
|
| 510 |
var ( |
| 511 |
file_netdev_proto_rawDescOnce sync.Once |
| 512 |
file_netdev_proto_rawDescData = file_netdev_proto_rawDesc |
| 513 |
) |
| 514 |
|
| 515 |
func file_netdev_proto_rawDescGZIP() []byte { |
| 516 |
file_netdev_proto_rawDescOnce.Do(func() { |
| 517 |
file_netdev_proto_rawDescData = protoimpl.X.CompressGZIP(file_netdev_proto_rawDescData) |
| 518 |
}) |
| 519 |
return file_netdev_proto_rawDescData |
| 520 |
} |
| 521 |
|
| 522 |
var file_netdev_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 523 |
var file_netdev_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 524 |
var file_netdev_proto_goTypes = []interface{}{ |
| 525 |
(NdType)(0), |
| 526 |
(*NetDeviceEntry)(nil), |
| 527 |
(*NetnsId)(nil), |
| 528 |
(*NetnsEntry)(nil), |
| 529 |
(*tun.TunLinkEntry)(nil), |
| 530 |
(*sysctl.SysctlEntry)(nil), |
| 531 |
(*macvlan.MacvlanLinkEntry)(nil), |
| 532 |
(*sit.SitEntry)(nil), |
| 533 |
} |
| 534 |
var file_netdev_proto_depIdxs = []int32{ |
| 535 |
0, |
| 536 |
4, |
| 537 |
5, |
| 538 |
5, |
| 539 |
6, |
| 540 |
7, |
| 541 |
5, |
| 542 |
5, |
| 543 |
5, |
| 544 |
5, |
| 545 |
2, |
| 546 |
5, |
| 547 |
12, |
| 548 |
12, |
| 549 |
12, |
| 550 |
12, |
| 551 |
0, |
| 552 |
} |
| 553 |
|
| 554 |
func init() { file_netdev_proto_init() } |
| 555 |
func file_netdev_proto_init() { |
| 556 |
if File_netdev_proto != nil { |
| 557 |
return |
| 558 |
} |
| 559 |
if !protoimpl.UnsafeEnabled { |
| 560 |
file_netdev_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 561 |
switch v := v.(*NetDeviceEntry); i { |
| 562 |
case 0: |
| 563 |
return &v.state |
| 564 |
case 1: |
| 565 |
return &v.sizeCache |
| 566 |
case 2: |
| 567 |
return &v.unknownFields |
| 568 |
default: |
| 569 |
return nil |
| 570 |
} |
| 571 |
} |
| 572 |
file_netdev_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 573 |
switch v := v.(*NetnsId); i { |
| 574 |
case 0: |
| 575 |
return &v.state |
| 576 |
case 1: |
| 577 |
return &v.sizeCache |
| 578 |
case 2: |
| 579 |
return &v.unknownFields |
| 580 |
default: |
| 581 |
return nil |
| 582 |
} |
| 583 |
} |
| 584 |
file_netdev_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 585 |
switch v := v.(*NetnsEntry); i { |
| 586 |
case 0: |
| 587 |
return &v.state |
| 588 |
case 1: |
| 589 |
return &v.sizeCache |
| 590 |
case 2: |
| 591 |
return &v.unknownFields |
| 592 |
default: |
| 593 |
return nil |
| 594 |
} |
| 595 |
} |
| 596 |
} |
| 597 |
type x struct{} |
| 598 |
out := protoimpl.TypeBuilder{ |
| 599 |
File: protoimpl.DescBuilder{ |
| 600 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 601 |
RawDescriptor: file_netdev_proto_rawDesc, |
| 602 |
NumEnums: 1, |
| 603 |
NumMessages: 3, |
| 604 |
NumExtensions: 0, |
| 605 |
NumServices: 0, |
| 606 |
}, |
| 607 |
GoTypes: file_netdev_proto_goTypes, |
| 608 |
DependencyIndexes: file_netdev_proto_depIdxs, |
| 609 |
EnumInfos: file_netdev_proto_enumTypes, |
| 610 |
MessageInfos: file_netdev_proto_msgTypes, |
| 611 |
}.Build() |
| 612 |
File_netdev_proto = out.File |
| 613 |
file_netdev_proto_rawDesc = nil |
| 614 |
file_netdev_proto_goTypes = nil |
| 615 |
file_netdev_proto_depIdxs = nil |
| 616 |
} |