X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Farp%2Farp.ba.go;h=2f86d31d9b40a8dd3bf12e4cdbc4bdc8c9a069ba;hb=67cea0df30f7ef348e265c9326f7a9f15ba26240;hp=deb5180e65053efbae67fbd06392542bcd33e92f;hpb=d1f24d37bd447b64e402298bb8eb2479681facf9;p=govpp.git diff --git a/binapi/arp/arp.ba.go b/binapi/arp/arp.ba.go index deb5180..2f86d31 100644 --- a/binapi/arp/arp.ba.go +++ b/binapi/arp/arp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.6.0-dev +// VPP: 22.02-release // source: /usr/share/vpp/api/core/arp.api.json // Package arp contains generated bindings for API file arp.api. @@ -13,11 +13,11 @@ package arp import ( - api "git.fd.io/govpp.git/api" - _ "git.fd.io/govpp.git/binapi/ethernet_types" - interface_types "git.fd.io/govpp.git/binapi/interface_types" - ip_types "git.fd.io/govpp.git/binapi/ip_types" - codec "git.fd.io/govpp.git/codec" + api "go.fd.io/govpp/api" + _ "go.fd.io/govpp/binapi/ethernet_types" + interface_types "go.fd.io/govpp/binapi/interface_types" + ip_types "go.fd.io/govpp/binapi/ip_types" + codec "go.fd.io/govpp/codec" ) // This is a compile-time assertion to ensure that this generated file @@ -29,7 +29,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "arp" APIVersion = "1.0.0" - VersionCrc = 0x79ca86f2 + VersionCrc = 0xb57796ae ) // ProxyArp defines type 'proxy_arp'. @@ -47,16 +47,15 @@ type ProxyArpAddDel struct { func (m *ProxyArpAddDel) Reset() { *m = ProxyArpAddDel{} } func (*ProxyArpAddDel) GetMessageName() string { return "proxy_arp_add_del" } -func (*ProxyArpAddDel) GetCrcString() string { return "85486cbd" } +func (*ProxyArpAddDel) GetCrcString() string { return "1823c3e7" } func (*ProxyArpAddDel) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *ProxyArpAddDel) Size() int { +func (m *ProxyArpAddDel) Size() (size int) { if m == nil { return 0 } - var size int size += 1 // m.IsAdd size += 4 // m.Proxy.TableID size += 1 * 4 // m.Proxy.Low @@ -64,14 +63,12 @@ func (m *ProxyArpAddDel) Size() int { return size } func (m *ProxyArpAddDel) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer 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.IsAdd) - buf.EncodeUint32(uint32(m.Proxy.TableID)) + buf.EncodeUint32(m.Proxy.TableID) buf.EncodeBytes(m.Proxy.Low[:], 4) buf.EncodeBytes(m.Proxy.Hi[:], 4) return buf.Bytes(), nil @@ -97,27 +94,24 @@ func (*ProxyArpAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *ProxyArpAddDelReply) Size() int { +func (m *ProxyArpAddDelReply) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Retval return size } func (m *ProxyArpAddDelReply) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer 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 *ProxyArpAddDelReply) Unmarshal(b []byte) error { buf := codec.NewBuffer(b) - m.Retval = int32(buf.DecodeUint32()) + m.Retval = buf.DecodeInt32() return nil } @@ -128,29 +122,26 @@ type ProxyArpDetails struct { func (m *ProxyArpDetails) Reset() { *m = ProxyArpDetails{} } func (*ProxyArpDetails) GetMessageName() string { return "proxy_arp_details" } -func (*ProxyArpDetails) GetCrcString() string { return "9228c150" } +func (*ProxyArpDetails) GetCrcString() string { return "5b948673" } func (*ProxyArpDetails) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *ProxyArpDetails) Size() int { +func (m *ProxyArpDetails) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Proxy.TableID size += 1 * 4 // m.Proxy.Low size += 1 * 4 // m.Proxy.Hi return size } func (m *ProxyArpDetails) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer if b == nil { - buf = codec.NewBuffer(make([]byte, m.Size())) - } else { - buf = codec.NewBuffer(b) + b = make([]byte, m.Size()) } - buf.EncodeUint32(uint32(m.Proxy.TableID)) + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.Proxy.TableID) buf.EncodeBytes(m.Proxy.Low[:], 4) buf.EncodeBytes(m.Proxy.Hi[:], 4) return buf.Bytes(), nil @@ -173,20 +164,17 @@ func (*ProxyArpDump) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *ProxyArpDump) Size() int { +func (m *ProxyArpDump) Size() (size int) { if m == nil { return 0 } - var size int return size } func (m *ProxyArpDump) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer if b == nil { - buf = codec.NewBuffer(make([]byte, m.Size())) - } else { - buf = codec.NewBuffer(b) + b = make([]byte, m.Size()) } + buf := codec.NewBuffer(b) return buf.Bytes(), nil } func (m *ProxyArpDump) Unmarshal(b []byte) error { @@ -205,22 +193,19 @@ func (*ProxyArpIntfcDetails) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *ProxyArpIntfcDetails) Size() int { +func (m *ProxyArpIntfcDetails) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.SwIfIndex return size } func (m *ProxyArpIntfcDetails) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer if b == nil { - buf = codec.NewBuffer(make([]byte, m.Size())) - } else { - buf = codec.NewBuffer(b) + b = make([]byte, m.Size()) } - buf.EncodeUint32(uint32(m.SwIfIndex)) + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.SwIfIndex) return buf.Bytes(), nil } func (m *ProxyArpIntfcDetails) Unmarshal(b []byte) error { @@ -239,20 +224,17 @@ func (*ProxyArpIntfcDump) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *ProxyArpIntfcDump) Size() int { +func (m *ProxyArpIntfcDump) Size() (size int) { if m == nil { return 0 } - var size int return size } func (m *ProxyArpIntfcDump) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer if b == nil { - buf = codec.NewBuffer(make([]byte, m.Size())) - } else { - buf = codec.NewBuffer(b) + b = make([]byte, m.Size()) } + buf := codec.NewBuffer(b) return buf.Bytes(), nil } func (m *ProxyArpIntfcDump) Unmarshal(b []byte) error { @@ -272,22 +254,19 @@ func (*ProxyArpIntfcEnableDisable) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *ProxyArpIntfcEnableDisable) Size() int { +func (m *ProxyArpIntfcEnableDisable) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.SwIfIndex size += 1 // m.Enable return size } func (m *ProxyArpIntfcEnableDisable) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer 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.EncodeUint32(uint32(m.SwIfIndex)) buf.EncodeBool(m.Enable) return buf.Bytes(), nil @@ -313,35 +292,32 @@ func (*ProxyArpIntfcEnableDisableReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *ProxyArpIntfcEnableDisableReply) Size() int { +func (m *ProxyArpIntfcEnableDisableReply) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Retval return size } func (m *ProxyArpIntfcEnableDisableReply) Marshal(b []byte) ([]byte, error) { - var buf *codec.Buffer 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 *ProxyArpIntfcEnableDisableReply) Unmarshal(b []byte) error { buf := codec.NewBuffer(b) - m.Retval = int32(buf.DecodeUint32()) + m.Retval = buf.DecodeInt32() return nil } func init() { file_arp_binapi_init() } func file_arp_binapi_init() { - api.RegisterMessage((*ProxyArpAddDel)(nil), "proxy_arp_add_del_85486cbd") + api.RegisterMessage((*ProxyArpAddDel)(nil), "proxy_arp_add_del_1823c3e7") api.RegisterMessage((*ProxyArpAddDelReply)(nil), "proxy_arp_add_del_reply_e8d4e804") - api.RegisterMessage((*ProxyArpDetails)(nil), "proxy_arp_details_9228c150") + api.RegisterMessage((*ProxyArpDetails)(nil), "proxy_arp_details_5b948673") api.RegisterMessage((*ProxyArpDump)(nil), "proxy_arp_dump_51077d14") api.RegisterMessage((*ProxyArpIntfcDetails)(nil), "proxy_arp_intfc_details_f6458e5f") api.RegisterMessage((*ProxyArpIntfcDump)(nil), "proxy_arp_intfc_dump_51077d14")