| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package sk_netlink |
| 10 |
|
| 11 |
import ( |
| 12 |
fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown" |
| 13 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 14 |
sk_opts "github.com/checkpoint-restore/go-criu/v7/crit/images/sk-opts" |
| 15 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 16 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 17 |
reflect "reflect" |
| 18 |
sync "sync" |
| 19 |
) |
| 20 |
|
| 21 |
const ( |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 24 |
|
| 25 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 26 |
) |
| 27 |
|
| 28 |
type NetlinkSkEntry struct { |
| 29 |
state protoimpl.MessageState |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
unknownFields protoimpl.UnknownFields |
| 32 |
|
| 33 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 34 |
Ino *uint32 `protobuf:"varint,2,req,name=ino" json:"ino,omitempty"` |
| 35 |
Protocol *uint32 `protobuf:"varint,3,req,name=protocol" json:"protocol,omitempty"` |
| 36 |
State *uint32 `protobuf:"varint,4,req,name=state" json:"state,omitempty"` |
| 37 |
Flags *uint32 `protobuf:"varint,6,req,name=flags" json:"flags,omitempty"` |
| 38 |
Portid *uint32 `protobuf:"varint,7,req,name=portid" json:"portid,omitempty"` |
| 39 |
Groups []uint32 `protobuf:"varint,8,rep,name=groups" json:"groups,omitempty"` |
| 40 |
DstPortid *uint32 `protobuf:"varint,9,req,name=dst_portid,json=dstPortid" json:"dst_portid,omitempty"` |
| 41 |
DstGroup *uint32 `protobuf:"varint,10,req,name=dst_group,json=dstGroup" json:"dst_group,omitempty"` |
| 42 |
Fown *fown.FownEntry `protobuf:"bytes,11,req,name=fown" json:"fown,omitempty"` |
| 43 |
Opts *sk_opts.SkOptsEntry `protobuf:"bytes,12,req,name=opts" json:"opts,omitempty"` |
| 44 |
NsId *uint32 `protobuf:"varint,13,opt,name=ns_id,json=nsId" json:"ns_id,omitempty"` |
| 45 |
} |
| 46 |
|
| 47 |
func (x *NetlinkSkEntry) Reset() { |
| 48 |
*x = NetlinkSkEntry{} |
| 49 |
if protoimpl.UnsafeEnabled { |
| 50 |
mi := &file_sk_netlink_proto_msgTypes[0] |
| 51 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
} |
| 55 |
|
| 56 |
func (x *NetlinkSkEntry) String() string { |
| 57 |
return protoimpl.X.MessageStringOf(x) |
| 58 |
} |
| 59 |
|
| 60 |
func (*NetlinkSkEntry) ProtoMessage() {} |
| 61 |
|
| 62 |
func (x *NetlinkSkEntry) ProtoReflect() protoreflect.Message { |
| 63 |
mi := &file_sk_netlink_proto_msgTypes[0] |
| 64 |
if protoimpl.UnsafeEnabled && x != nil { |
| 65 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 66 |
if ms.LoadMessageInfo() == nil { |
| 67 |
ms.StoreMessageInfo(mi) |
| 68 |
} |
| 69 |
return ms |
| 70 |
} |
| 71 |
return mi.MessageOf(x) |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
func (*NetlinkSkEntry) Descriptor() ([]byte, []int) { |
| 76 |
return file_sk_netlink_proto_rawDescGZIP(), []int{0} |
| 77 |
} |
| 78 |
|
| 79 |
func (x *NetlinkSkEntry) GetId() uint32 { |
| 80 |
if x != nil && x.Id != nil { |
| 81 |
return *x.Id |
| 82 |
} |
| 83 |
return 0 |
| 84 |
} |
| 85 |
|
| 86 |
func (x *NetlinkSkEntry) GetIno() uint32 { |
| 87 |
if x != nil && x.Ino != nil { |
| 88 |
return *x.Ino |
| 89 |
} |
| 90 |
return 0 |
| 91 |
} |
| 92 |
|
| 93 |
func (x *NetlinkSkEntry) GetProtocol() uint32 { |
| 94 |
if x != nil && x.Protocol != nil { |
| 95 |
return *x.Protocol |
| 96 |
} |
| 97 |
return 0 |
| 98 |
} |
| 99 |
|
| 100 |
func (x *NetlinkSkEntry) GetState() uint32 { |
| 101 |
if x != nil && x.State != nil { |
| 102 |
return *x.State |
| 103 |
} |
| 104 |
return 0 |
| 105 |
} |
| 106 |
|
| 107 |
func (x *NetlinkSkEntry) GetFlags() uint32 { |
| 108 |
if x != nil && x.Flags != nil { |
| 109 |
return *x.Flags |
| 110 |
} |
| 111 |
return 0 |
| 112 |
} |
| 113 |
|
| 114 |
func (x *NetlinkSkEntry) GetPortid() uint32 { |
| 115 |
if x != nil && x.Portid != nil { |
| 116 |
return *x.Portid |
| 117 |
} |
| 118 |
return 0 |
| 119 |
} |
| 120 |
|
| 121 |
func (x *NetlinkSkEntry) GetGroups() []uint32 { |
| 122 |
if x != nil { |
| 123 |
return x.Groups |
| 124 |
} |
| 125 |
return nil |
| 126 |
} |
| 127 |
|
| 128 |
func (x *NetlinkSkEntry) GetDstPortid() uint32 { |
| 129 |
if x != nil && x.DstPortid != nil { |
| 130 |
return *x.DstPortid |
| 131 |
} |
| 132 |
return 0 |
| 133 |
} |
| 134 |
|
| 135 |
func (x *NetlinkSkEntry) GetDstGroup() uint32 { |
| 136 |
if x != nil && x.DstGroup != nil { |
| 137 |
return *x.DstGroup |
| 138 |
} |
| 139 |
return 0 |
| 140 |
} |
| 141 |
|
| 142 |
func (x *NetlinkSkEntry) GetFown() *fown.FownEntry { |
| 143 |
if x != nil { |
| 144 |
return x.Fown |
| 145 |
} |
| 146 |
return nil |
| 147 |
} |
| 148 |
|
| 149 |
func (x *NetlinkSkEntry) GetOpts() *sk_opts.SkOptsEntry { |
| 150 |
if x != nil { |
| 151 |
return x.Opts |
| 152 |
} |
| 153 |
return nil |
| 154 |
} |
| 155 |
|
| 156 |
func (x *NetlinkSkEntry) GetNsId() uint32 { |
| 157 |
if x != nil && x.NsId != nil { |
| 158 |
return *x.NsId |
| 159 |
} |
| 160 |
return 0 |
| 161 |
} |
| 162 |
|
| 163 |
var File_sk_netlink_proto protoreflect.FileDescriptor |
| 164 |
|
| 165 |
var file_sk_netlink_proto_rawDesc = []byte{ |
| 166 |
0x0a, 0x10, 0x73, 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, |
| 167 |
0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, |
| 168 |
0x66, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x73, 0x6b, 0x2d, 0x6f, |
| 169 |
0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a, 0x10, 0x6e, 0x65, |
| 170 |
0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x73, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, |
| 171 |
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, |
| 172 |
0x0a, 0x03, 0x69, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x6e, 0x6f, |
| 173 |
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x02, |
| 174 |
0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, |
| 175 |
0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x73, 0x74, 0x61, |
| 176 |
0x74, 0x65, 0x12, 0x1b, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x02, 0x28, |
| 177 |
0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, |
| 178 |
0x16, 0x0a, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x64, 0x18, 0x07, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 179 |
0x06, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, |
| 180 |
0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, |
| 181 |
0x1d, 0x0a, 0x0a, 0x64, 0x73, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x64, 0x18, 0x09, 0x20, |
| 182 |
0x02, 0x28, 0x0d, 0x52, 0x09, 0x64, 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x69, 0x64, 0x12, 0x1b, |
| 183 |
0x0a, 0x09, 0x64, 0x73, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0a, 0x20, 0x02, 0x28, |
| 184 |
0x0d, 0x52, 0x08, 0x64, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x66, |
| 185 |
0x6f, 0x77, 0x6e, 0x18, 0x0b, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, |
| 186 |
0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x22, 0x0a, 0x04, |
| 187 |
0x6f, 0x70, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x6b, 0x5f, |
| 188 |
0x6f, 0x70, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, |
| 189 |
0x12, 0x13, 0x0a, 0x05, 0x6e, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, |
| 190 |
0x04, 0x6e, 0x73, 0x49, 0x64, |
| 191 |
} |
| 192 |
|
| 193 |
var ( |
| 194 |
file_sk_netlink_proto_rawDescOnce sync.Once |
| 195 |
file_sk_netlink_proto_rawDescData = file_sk_netlink_proto_rawDesc |
| 196 |
) |
| 197 |
|
| 198 |
func file_sk_netlink_proto_rawDescGZIP() []byte { |
| 199 |
file_sk_netlink_proto_rawDescOnce.Do(func() { |
| 200 |
file_sk_netlink_proto_rawDescData = protoimpl.X.CompressGZIP(file_sk_netlink_proto_rawDescData) |
| 201 |
}) |
| 202 |
return file_sk_netlink_proto_rawDescData |
| 203 |
} |
| 204 |
|
| 205 |
var file_sk_netlink_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 206 |
var file_sk_netlink_proto_goTypes = []interface{}{ |
| 207 |
(*NetlinkSkEntry)(nil), |
| 208 |
(*fown.FownEntry)(nil), |
| 209 |
(*sk_opts.SkOptsEntry)(nil), |
| 210 |
} |
| 211 |
var file_sk_netlink_proto_depIdxs = []int32{ |
| 212 |
1, |
| 213 |
2, |
| 214 |
2, |
| 215 |
2, |
| 216 |
2, |
| 217 |
2, |
| 218 |
0, |
| 219 |
} |
| 220 |
|
| 221 |
func init() { file_sk_netlink_proto_init() } |
| 222 |
func file_sk_netlink_proto_init() { |
| 223 |
if File_sk_netlink_proto != nil { |
| 224 |
return |
| 225 |
} |
| 226 |
if !protoimpl.UnsafeEnabled { |
| 227 |
file_sk_netlink_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 228 |
switch v := v.(*NetlinkSkEntry); i { |
| 229 |
case 0: |
| 230 |
return &v.state |
| 231 |
case 1: |
| 232 |
return &v.sizeCache |
| 233 |
case 2: |
| 234 |
return &v.unknownFields |
| 235 |
default: |
| 236 |
return nil |
| 237 |
} |
| 238 |
} |
| 239 |
} |
| 240 |
type x struct{} |
| 241 |
out := protoimpl.TypeBuilder{ |
| 242 |
File: protoimpl.DescBuilder{ |
| 243 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 244 |
RawDescriptor: file_sk_netlink_proto_rawDesc, |
| 245 |
NumEnums: 0, |
| 246 |
NumMessages: 1, |
| 247 |
NumExtensions: 0, |
| 248 |
NumServices: 0, |
| 249 |
}, |
| 250 |
GoTypes: file_sk_netlink_proto_goTypes, |
| 251 |
DependencyIndexes: file_sk_netlink_proto_depIdxs, |
| 252 |
MessageInfos: file_sk_netlink_proto_msgTypes, |
| 253 |
}.Build() |
| 254 |
File_sk_netlink_proto = out.File |
| 255 |
file_sk_netlink_proto_rawDesc = nil |
| 256 |
file_sk_netlink_proto_goTypes = nil |
| 257 |
file_sk_netlink_proto_depIdxs = nil |
| 258 |
} |