Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GoVPP release v0.5.0
[govpp.git]
/
binapi
/
ct6
/
ct6.ba.go
diff --git
a/binapi/ct6/ct6.ba.go
b/binapi/ct6/ct6.ba.go
index
fbcc0bc
..
92277c4
100644
(file)
--- a/
binapi/ct6/ct6.ba.go
+++ b/
binapi/ct6/ct6.ba.go
@@
-1,7
+1,7
@@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.
4.0-dev
-// VPP: 2
0.05
-release
+// binapi-generator: v0.
5.0
+// VPP: 2
2.02
-release
// source: /usr/share/vpp/api/plugins/ct6.api.json
// Package ct6 contains generated bindings for API file ct6.api.
// source: /usr/share/vpp/api/plugins/ct6.api.json
// Package ct6 contains generated bindings for API file ct6.api.
@@
-26,7
+26,7
@@
const _ = api.GoVppAPIPackageIsVersion2
const (
APIFile = "ct6"
APIVersion = "1.0.0"
const (
APIFile = "ct6"
APIVersion = "1.0.0"
- VersionCrc = 0x
d9691434
+ VersionCrc = 0x
5c824a95
)
// Ct6EnableDisable defines message 'ct6_enable_disable'.
)
// Ct6EnableDisable defines message 'ct6_enable_disable'.
@@
-43,23
+43,20
@@
func (*Ct6EnableDisable) GetMessageType() api.MessageType {
return api.RequestMessage
}
return api.RequestMessage
}
-func (m *Ct6EnableDisable) Size()
int
{
+func (m *Ct6EnableDisable) Size()
(size int)
{
if m == nil {
return 0
}
if m == nil {
return 0
}
- var size int
size += 1 // m.EnableDisable
size += 1 // m.IsInside
size += 4 // m.SwIfIndex
return size
}
func (m *Ct6EnableDisable) Marshal(b []byte) ([]byte, error) {
size += 1 // m.EnableDisable
size += 1 // m.IsInside
size += 4 // m.SwIfIndex
return size
}
func (m *Ct6EnableDisable) Marshal(b []byte) ([]byte, error) {
- var buf *codec.Buffer
if b == nil {
if b == nil {
- buf = codec.NewBuffer(make([]byte, m.Size()))
- } else {
- buf = codec.NewBuffer(b)
+ b = make([]byte, m.Size())
}
}
+ buf := codec.NewBuffer(b)
buf.EncodeBool(m.EnableDisable)
buf.EncodeBool(m.IsInside)
buf.EncodeUint32(uint32(m.SwIfIndex))
buf.EncodeBool(m.EnableDisable)
buf.EncodeBool(m.IsInside)
buf.EncodeUint32(uint32(m.SwIfIndex))
@@
-85,27
+82,24
@@
func (*Ct6EnableDisableReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
return api.ReplyMessage
}
-func (m *Ct6EnableDisableReply) Size()
int
{
+func (m *Ct6EnableDisableReply) Size()
(size int)
{
if m == nil {
return 0
}
if m == nil {
return 0
}
- var size int
size += 4 // m.Retval
return size
}
func (m *Ct6EnableDisableReply) Marshal(b []byte) ([]byte, error) {
size += 4 // m.Retval
return size
}
func (m *Ct6EnableDisableReply) Marshal(b []byte) ([]byte, error) {
- var buf *codec.Buffer
if b == nil {
if b == nil {
- buf = codec.NewBuffer(make([]byte, m.Size()))
- } else {
- buf = codec.NewBuffer(b)
+ b = make([]byte, m.Size())
}
}
- buf.EncodeUint32(uint32(m.Retval))
+ buf := codec.NewBuffer(b)
+ buf.EncodeInt32(m.Retval)
return buf.Bytes(), nil
}
func (m *Ct6EnableDisableReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
return buf.Bytes(), nil
}
func (m *Ct6EnableDisableReply) Unmarshal(b []byte) error {
buf := codec.NewBuffer(b)
- m.Retval =
int32(buf.DecodeUint32()
)
+ m.Retval =
buf.DecodeInt32(
)
return nil
}
return nil
}