1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
|
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
// binapi-generator: v0.5.0-dev
// VPP: 22.02-release
// source: /usr/share/vpp/api/plugins/lcp.api.json
// Package lcp contains generated bindings for API file lcp.api.
//
// Contents:
// 1 enum
// 15 messages
//
package lcp
import (
"strconv"
api "git.fd.io/govpp.git/api"
interface_types "git.fd.io/govpp.git/binapi/interface_types"
codec "git.fd.io/govpp.git/codec"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the GoVPP api package it is being compiled against.
// A compilation error at this line likely means your copy of the
// GoVPP api package needs to be updated.
const _ = api.GoVppAPIPackageIsVersion2
const (
APIFile = "lcp"
APIVersion = "1.0.0"
VersionCrc = 0xd6fdb642
)
// LcpItfHostType defines enum 'lcp_itf_host_type'.
type LcpItfHostType uint8
const (
LCP_API_ITF_HOST_TAP LcpItfHostType = 0
LCP_API_ITF_HOST_TUN LcpItfHostType = 1
)
var (
LcpItfHostType_name = map[uint8]string{
0: "LCP_API_ITF_HOST_TAP",
1: "LCP_API_ITF_HOST_TUN",
}
LcpItfHostType_value = map[string]uint8{
"LCP_API_ITF_HOST_TAP": 0,
"LCP_API_ITF_HOST_TUN": 1,
}
)
func (x LcpItfHostType) String() string {
s, ok := LcpItfHostType_name[uint8(x)]
if ok {
return s
}
return "LcpItfHostType(" + strconv.Itoa(int(x)) + ")"
}
// LcpDefaultNsGet defines message 'lcp_default_ns_get'.
type LcpDefaultNsGet struct{}
func (m *LcpDefaultNsGet) Reset() { *m = LcpDefaultNsGet{} }
func (*LcpDefaultNsGet) GetMessageName() string { return "lcp_default_ns_get" }
func (*LcpDefaultNsGet) GetCrcString() string { return "51077d14" }
func (*LcpDefaultNsGet) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpDefaultNsGet) Size() (size int) {
if m == nil {
return 0
}
return size
}
func (m *LcpDefaultNsGet) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
return buf.Bytes(), nil
}
func (m *LcpDefaultNsGet) Unmarshal(b []byte) error {
return nil
}
// LcpDefaultNsGetReply defines message 'lcp_default_ns_get_reply'.
type LcpDefaultNsGetReply struct {
Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}
func (m *LcpDefaultNsGetReply) Reset() { *m = LcpDefaultNsGetReply{} }
func (*LcpDefaultNsGetReply) GetMessageName() string { return "lcp_default_ns_get_reply" }
func (*LcpDefaultNsGetReply) GetCrcString() string { return "eaeef6d3" }
func (*LcpDefaultNsGetReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpDefaultNsGetReply) Size() (size int) {
if m == nil {
return 0
}
size += 32 // m.Namespace
return size
}
func (m *LcpDefaultNsGetReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeString(m.Namespace, 32)
return buf.Bytes(), nil
}
func (m *LcpDefaultNsGetReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Namespace = buf.DecodeString(32)
return nil
}
// LcpDefaultNsSet defines message 'lcp_default_ns_set'.
type LcpDefaultNsSet struct {
Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}
func (m *LcpDefaultNsSet) Reset() { *m = LcpDefaultNsSet{} }
func (*LcpDefaultNsSet) GetMessageName() string { return "lcp_default_ns_set" }
func (*LcpDefaultNsSet) GetCrcString() string { return "b561a74a" }
func (*LcpDefaultNsSet) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpDefaultNsSet) Size() (size int) {
if m == nil {
return 0
}
size += 32 // m.Namespace
return size
}
func (m *LcpDefaultNsSet) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeString(m.Namespace, 32)
return buf.Bytes(), nil
}
func (m *LcpDefaultNsSet) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Namespace = buf.DecodeString(32)
return nil
}
// LcpDefaultNsSetReply defines message 'lcp_default_ns_set_reply'.
type LcpDefaultNsSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
func (m *LcpDefaultNsSetReply) Reset() { *m = LcpDefaultNsSetReply{} }
func (*LcpDefaultNsSetReply) GetMessageName() string { return "lcp_default_ns_set_reply" }
func (*LcpDefaultNsSetReply) GetCrcString() string { return "e8d4e804" }
func (*LcpDefaultNsSetReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpDefaultNsSetReply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
return size
}
func (m *LcpDefaultNsSetReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
return buf.Bytes(), nil
}
func (m *LcpDefaultNsSetReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
return nil
}
// LcpItfPairAddDel defines message 'lcp_itf_pair_add_del'.
type LcpItfPairAddDel struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}
func (m *LcpItfPairAddDel) Reset() { *m = LcpItfPairAddDel{} }
func (*LcpItfPairAddDel) GetMessageName() string { return "lcp_itf_pair_add_del" }
func (*LcpItfPairAddDel) GetCrcString() string { return "f3157f59" }
func (*LcpItfPairAddDel) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpItfPairAddDel) Size() (size int) {
if m == nil {
return 0
}
size += 1 // m.IsAdd
size += 4 // m.SwIfIndex
size += 16 // m.HostIfName
size += 1 // m.HostIfType
size += 32 // m.Namespace
return size
}
func (m *LcpItfPairAddDel) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeBool(m.IsAdd)
buf.EncodeUint32(uint32(m.SwIfIndex))
buf.EncodeString(m.HostIfName, 16)
buf.EncodeUint8(uint8(m.HostIfType))
buf.EncodeString(m.Namespace, 32)
return buf.Bytes(), nil
}
func (m *LcpItfPairAddDel) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.IsAdd = buf.DecodeBool()
m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
m.HostIfName = buf.DecodeString(16)
m.HostIfType = LcpItfHostType(buf.DecodeUint8())
m.Namespace = buf.DecodeString(32)
return nil
}
// LcpItfPairAddDelReply defines message 'lcp_itf_pair_add_del_reply'.
type LcpItfPairAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
func (m *LcpItfPairAddDelReply) Reset() { *m = LcpItfPairAddDelReply{} }
func (*LcpItfPairAddDelReply) GetMessageName() string { return "lcp_itf_pair_add_del_reply" }
func (*LcpItfPairAddDelReply) GetCrcString() string { return "e8d4e804" }
func (*LcpItfPairAddDelReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairAddDelReply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
return size
}
func (m *LcpItfPairAddDelReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
return buf.Bytes(), nil
}
func (m *LcpItfPairAddDelReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
return nil
}
// LcpItfPairAddDelV2 defines message 'lcp_itf_pair_add_del_v2'.
type LcpItfPairAddDelV2 struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}
func (m *LcpItfPairAddDelV2) Reset() { *m = LcpItfPairAddDelV2{} }
func (*LcpItfPairAddDelV2) GetMessageName() string { return "lcp_itf_pair_add_del_v2" }
func (*LcpItfPairAddDelV2) GetCrcString() string { return "f3157f59" }
func (*LcpItfPairAddDelV2) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpItfPairAddDelV2) Size() (size int) {
if m == nil {
return 0
}
size += 1 // m.IsAdd
size += 4 // m.SwIfIndex
size += 16 // m.HostIfName
size += 1 // m.HostIfType
size += 32 // m.Namespace
return size
}
func (m *LcpItfPairAddDelV2) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeBool(m.IsAdd)
buf.EncodeUint32(uint32(m.SwIfIndex))
buf.EncodeString(m.HostIfName, 16)
buf.EncodeUint8(uint8(m.HostIfType))
buf.EncodeString(m.Namespace, 32)
return buf.Bytes(), nil
}
func (m *LcpItfPairAddDelV2) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.IsAdd = buf.DecodeBool()
m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
m.HostIfName = buf.DecodeString(16)
m.HostIfType = LcpItfHostType(buf.DecodeUint8())
m.Namespace = buf.DecodeString(32)
return nil
}
// LcpItfPairAddDelV2Reply defines message 'lcp_itf_pair_add_del_v2_reply'.
type LcpItfPairAddDelV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
}
func (m *LcpItfPairAddDelV2Reply) Reset() { *m = LcpItfPairAddDelV2Reply{} }
func (*LcpItfPairAddDelV2Reply) GetMessageName() string { return "lcp_itf_pair_add_del_v2_reply" }
func (*LcpItfPairAddDelV2Reply) GetCrcString() string { return "39452f52" }
func (*LcpItfPairAddDelV2Reply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairAddDelV2Reply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
size += 4 // m.HostSwIfIndex
return size
}
func (m *LcpItfPairAddDelV2Reply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
buf.EncodeUint32(uint32(m.HostSwIfIndex))
return buf.Bytes(), nil
}
func (m *LcpItfPairAddDelV2Reply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
m.HostSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
return nil
}
// LcpItfPairDetails defines message 'lcp_itf_pair_details'.
type LcpItfPairDetails struct {
PhySwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=phy_sw_if_index" json:"phy_sw_if_index,omitempty"`
HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
VifIndex uint32 `binapi:"u32,name=vif_index" json:"vif_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Namespace string `binapi:"string[32],name=namespace" json:"namespace,omitempty"`
}
func (m *LcpItfPairDetails) Reset() { *m = LcpItfPairDetails{} }
func (*LcpItfPairDetails) GetMessageName() string { return "lcp_itf_pair_details" }
func (*LcpItfPairDetails) GetCrcString() string { return "5a95842f" }
func (*LcpItfPairDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairDetails) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.PhySwIfIndex
size += 4 // m.HostSwIfIndex
size += 4 // m.VifIndex
size += 16 // m.HostIfName
size += 1 // m.HostIfType
size += 32 // m.Namespace
return size
}
func (m *LcpItfPairDetails) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeUint32(uint32(m.PhySwIfIndex))
buf.EncodeUint32(uint32(m.HostSwIfIndex))
buf.EncodeUint32(m.VifIndex)
buf.EncodeString(m.HostIfName, 16)
buf.EncodeUint8(uint8(m.HostIfType))
buf.EncodeString(m.Namespace, 32)
return buf.Bytes(), nil
}
func (m *LcpItfPairDetails) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.PhySwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
m.HostSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
m.VifIndex = buf.DecodeUint32()
m.HostIfName = buf.DecodeString(16)
m.HostIfType = LcpItfHostType(buf.DecodeUint8())
m.Namespace = buf.DecodeString(32)
return nil
}
// LcpItfPairGet defines message 'lcp_itf_pair_get'.
type LcpItfPairGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
func (m *LcpItfPairGet) Reset() { *m = LcpItfPairGet{} }
func (*LcpItfPairGet) GetMessageName() string { return "lcp_itf_pair_get" }
func (*LcpItfPairGet) GetCrcString() string { return "f75ba505" }
func (*LcpItfPairGet) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpItfPairGet) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Cursor
return size
}
func (m *LcpItfPairGet) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeUint32(m.Cursor)
return buf.Bytes(), nil
}
func (m *LcpItfPairGet) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Cursor = buf.DecodeUint32()
return nil
}
// LcpItfPairGetReply defines message 'lcp_itf_pair_get_reply'.
type LcpItfPairGetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
func (m *LcpItfPairGetReply) Reset() { *m = LcpItfPairGetReply{} }
func (*LcpItfPairGetReply) GetMessageName() string { return "lcp_itf_pair_get_reply" }
func (*LcpItfPairGetReply) GetCrcString() string { return "53b48f5d" }
func (*LcpItfPairGetReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairGetReply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
size += 4 // m.Cursor
return size
}
func (m *LcpItfPairGetReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
buf.EncodeUint32(m.Cursor)
return buf.Bytes(), nil
}
func (m *LcpItfPairGetReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
m.Cursor = buf.DecodeUint32()
return nil
}
// LcpItfPairReplaceBegin defines message 'lcp_itf_pair_replace_begin'.
type LcpItfPairReplaceBegin struct{}
func (m *LcpItfPairReplaceBegin) Reset() { *m = LcpItfPairReplaceBegin{} }
func (*LcpItfPairReplaceBegin) GetMessageName() string { return "lcp_itf_pair_replace_begin" }
func (*LcpItfPairReplaceBegin) GetCrcString() string { return "51077d14" }
func (*LcpItfPairReplaceBegin) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpItfPairReplaceBegin) Size() (size int) {
if m == nil {
return 0
}
return size
}
func (m *LcpItfPairReplaceBegin) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
return buf.Bytes(), nil
}
func (m *LcpItfPairReplaceBegin) Unmarshal(b []byte) error {
return nil
}
// LcpItfPairReplaceBeginReply defines message 'lcp_itf_pair_replace_begin_reply'.
type LcpItfPairReplaceBeginReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
func (m *LcpItfPairReplaceBeginReply) Reset() { *m = LcpItfPairReplaceBeginReply{} }
func (*LcpItfPairReplaceBeginReply) GetMessageName() string {
return "lcp_itf_pair_replace_begin_reply"
}
func (*LcpItfPairReplaceBeginReply) GetCrcString() string { return "e8d4e804" }
func (*LcpItfPairReplaceBeginReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairReplaceBeginReply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
return size
}
func (m *LcpItfPairReplaceBeginReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
return buf.Bytes(), nil
}
func (m *LcpItfPairReplaceBeginReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
return nil
}
// LcpItfPairReplaceEnd defines message 'lcp_itf_pair_replace_end'.
type LcpItfPairReplaceEnd struct{}
func (m *LcpItfPairReplaceEnd) Reset() { *m = LcpItfPairReplaceEnd{} }
func (*LcpItfPairReplaceEnd) GetMessageName() string { return "lcp_itf_pair_replace_end" }
func (*LcpItfPairReplaceEnd) GetCrcString() string { return "51077d14" }
func (*LcpItfPairReplaceEnd) GetMessageType() api.MessageType {
return api.RequestMessage
}
func (m *LcpItfPairReplaceEnd) Size() (size int) {
if m == nil {
return 0
}
return size
}
func (m *LcpItfPairReplaceEnd) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
return buf.Bytes(), nil
}
func (m *LcpItfPairReplaceEnd) Unmarshal(b []byte) error {
return nil
}
// LcpItfPairReplaceEndReply defines message 'lcp_itf_pair_replace_end_reply'.
type LcpItfPairReplaceEndReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
func (m *LcpItfPairReplaceEndReply) Reset() { *m = LcpItfPairReplaceEndReply{} }
func (*LcpItfPairReplaceEndReply) GetMessageName() string { return "lcp_itf_pair_replace_end_reply" }
func (*LcpItfPairReplaceEndReply) GetCrcString() string { return "e8d4e804" }
func (*LcpItfPairReplaceEndReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func (m *LcpItfPairReplaceEndReply) Size() (size int) {
if m == nil {
return 0
}
size += 4 // m.Retval
return size
}
func (m *LcpItfPairReplaceEndReply) Marshal(b []byte) ([]byte, error) {
if b == nil {
b = make([]byte, m.Size())
}
buf := codec.NewBuffer(b)
buf.EncodeInt32(m.Retval)
return buf.Bytes(), nil
}
func (m *LcpItfPairReplaceEndReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
m.Retval = buf.DecodeInt32()
return nil
}
func init() { file_lcp_binapi_init() }
func file_lcp_binapi_init() {
api.RegisterMessage((*LcpDefaultNsGet)(nil), "lcp_default_ns_get_51077d14")
api.RegisterMessage((*LcpDefaultNsGetReply)(nil), "lcp_default_ns_get_reply_eaeef6d3")
api.RegisterMessage((*LcpDefaultNsSet)(nil), "lcp_default_ns_set_b561a74a")
api.RegisterMessage((*LcpDefaultNsSetReply)(nil), "lcp_default_ns_set_reply_e8d4e804")
api.RegisterMessage((*LcpItfPairAddDel)(nil), "lcp_itf_pair_add_del_f3157f59")
api.RegisterMessage((*LcpItfPairAddDelReply)(nil), "lcp_itf_pair_add_del_reply_e8d4e804")
api.RegisterMessage((*LcpItfPairAddDelV2)(nil), "lcp_itf_pair_add_del_v2_f3157f59")
api.RegisterMessage((*LcpItfPairAddDelV2Reply)(nil), "lcp_itf_pair_add_del_v2_reply_39452f52")
api.RegisterMessage((*LcpItfPairDetails)(nil), "lcp_itf_pair_details_5a95842f")
api.RegisterMessage((*LcpItfPairGet)(nil), "lcp_itf_pair_get_f75ba505")
api.RegisterMessage((*LcpItfPairGetReply)(nil), "lcp_itf_pair_get_reply_53b48f5d")
api.RegisterMessage((*LcpItfPairReplaceBegin)(nil), "lcp_itf_pair_replace_begin_51077d14")
api.RegisterMessage((*LcpItfPairReplaceBeginReply)(nil), "lcp_itf_pair_replace_begin_reply_e8d4e804")
api.RegisterMessage((*LcpItfPairReplaceEnd)(nil), "lcp_itf_pair_replace_end_51077d14")
api.RegisterMessage((*LcpItfPairReplaceEndReply)(nil), "lcp_itf_pair_replace_end_reply_e8d4e804")
}
// Messages returns list of all messages in this module.
func AllMessages() []api.Message {
return []api.Message{
(*LcpDefaultNsGet)(nil),
(*LcpDefaultNsGetReply)(nil),
(*LcpDefaultNsSet)(nil),
(*LcpDefaultNsSetReply)(nil),
(*LcpItfPairAddDel)(nil),
(*LcpItfPairAddDelReply)(nil),
(*LcpItfPairAddDelV2)(nil),
(*LcpItfPairAddDelV2Reply)(nil),
(*LcpItfPairDetails)(nil),
(*LcpItfPairGet)(nil),
(*LcpItfPairGetReply)(nil),
(*LcpItfPairReplaceBegin)(nil),
(*LcpItfPairReplaceBeginReply)(nil),
(*LcpItfPairReplaceEnd)(nil),
(*LcpItfPairReplaceEndReply)(nil),
}
}
|