regenerate binapi
[govpp.git] / binapi / lisp / lisp.ba.go
index a152648..184f683 100644 (file)
@@ -1,8 +1,8 @@
 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
 // versions:
-//  binapi-generator: v0.4.0-dev
-//  VPP:              20.05-release
-// source: /usr/share/vpp/api/core/lisp.api.json
+//  binapi-generator: v0.3.5-56-gc0da1f2-dirty
+//  VPP:              21.06-release
+// source: /usr/share/vpp/api/plugins/lisp.api.json
 
 // Package lisp contains generated bindings for API file lisp.api.
 //
 package lisp
 
 import (
+       "strconv"
+
        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"
        lisp_types "git.fd.io/govpp.git/binapi/lisp_types"
        codec "git.fd.io/govpp.git/codec"
-       "strconv"
 )
 
 // This is a compile-time assertion to ensure that this generated file
@@ -32,7 +33,7 @@ const _ = api.GoVppAPIPackageIsVersion2
 const (
        APIFile    = "lisp"
        APIVersion = "2.0.0"
-       VersionCrc = 0xf2d169ad
+       VersionCrc = 0xcb04530f
 )
 
 // LispLocatorSetFilter defines enum 'lisp_locator_set_filter'.
@@ -81,37 +82,34 @@ type LispAddDelAdjacency struct {
 
 func (m *LispAddDelAdjacency) Reset()               { *m = LispAddDelAdjacency{} }
 func (*LispAddDelAdjacency) GetMessageName() string { return "lisp_add_del_adjacency" }
-func (*LispAddDelAdjacency) GetCrcString() string   { return "cf5edb61" }
+func (*LispAddDelAdjacency) GetCrcString() string   { return "2ce0e6f6" }
 func (*LispAddDelAdjacency) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelAdjacency) Size() int {
+func (m *LispAddDelAdjacency) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
-       size += 1     // m.IsAdd
-       size += 4     // m.Vni
-       size += 1     // m.Reid.Type
-       size += 1 * 6 // m.Reid.Address
-       size += 1     // m.Leid.Type
-       size += 1 * 6 // m.Leid.Address
+       size += 1      // m.IsAdd
+       size += 4      // m.Vni
+       size += 1      // m.Reid.Type
+       size += 1 * 18 // m.Reid.Address
+       size += 1      // m.Leid.Type
+       size += 1 * 18 // m.Leid.Address
        return size
 }
 func (m *LispAddDelAdjacency) 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.Vni))
+       buf.EncodeUint32(m.Vni)
        buf.EncodeUint8(uint8(m.Reid.Type))
-       buf.EncodeBytes(m.Reid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Reid.Address.XXX_UnionData[:], 18)
        buf.EncodeUint8(uint8(m.Leid.Type))
-       buf.EncodeBytes(m.Leid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Leid.Address.XXX_UnionData[:], 18)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelAdjacency) Unmarshal(b []byte) error {
@@ -119,9 +117,9 @@ func (m *LispAddDelAdjacency) Unmarshal(b []byte) error {
        m.IsAdd = buf.DecodeBool()
        m.Vni = buf.DecodeUint32()
        m.Reid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Reid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.Leid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Leid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        return nil
 }
 
@@ -137,27 +135,24 @@ func (*LispAddDelAdjacencyReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelAdjacencyReply) Size() int {
+func (m *LispAddDelAdjacencyReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelAdjacencyReply) 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 *LispAddDelAdjacencyReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -172,19 +167,18 @@ type LispAddDelLocalEid struct {
 
 func (m *LispAddDelLocalEid) Reset()               { *m = LispAddDelLocalEid{} }
 func (*LispAddDelLocalEid) GetMessageName() string { return "lisp_add_del_local_eid" }
-func (*LispAddDelLocalEid) GetCrcString() string   { return "21f573bd" }
+func (*LispAddDelLocalEid) GetCrcString() string   { return "4e5a83a2" }
 func (*LispAddDelLocalEid) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelLocalEid) Size() int {
+func (m *LispAddDelLocalEid) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IsAdd
        size += 1      // m.Eid.Type
-       size += 1 *  // m.Eid.Address
+       size += 1 * 18 // m.Eid.Address
        size += 64     // m.LocatorSetName
        size += 4      // m.Vni
        size += 1      // m.Key.ID
@@ -192,30 +186,29 @@ func (m *LispAddDelLocalEid) Size() int {
        return size
 }
 func (m *LispAddDelLocalEid) 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.EncodeUint8(uint8(m.Eid.Type))
-       buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 18)
        buf.EncodeString(m.LocatorSetName, 64)
-       buf.EncodeUint32(uint32(m.Vni))
+       buf.EncodeUint32(m.Vni)
        buf.EncodeUint8(uint8(m.Key.ID))
-       buf.EncodeBytes(m.Key.Key[:], 64)
+       buf.EncodeBytes(m.Key.Key, 64)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelLocalEid) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
        m.IsAdd = buf.DecodeBool()
        m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.LocatorSetName = buf.DecodeString(64)
        m.Vni = buf.DecodeUint32()
        m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
-       copy(m.Key.Key[:], buf.DecodeBytes(64))
+       m.Key.Key = make([]byte, 64)
+       copy(m.Key.Key, buf.DecodeBytes(len(m.Key.Key)))
        return nil
 }
 
@@ -231,27 +224,24 @@ func (*LispAddDelLocalEidReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelLocalEidReply) Size() int {
+func (m *LispAddDelLocalEidReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelLocalEidReply) 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 *LispAddDelLocalEidReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -271,11 +261,10 @@ func (*LispAddDelLocator) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelLocator) Size() int {
+func (m *LispAddDelLocator) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1  // m.IsAdd
        size += 64 // m.LocatorSetName
        size += 4  // m.SwIfIndex
@@ -284,17 +273,15 @@ func (m *LispAddDelLocator) Size() int {
        return size
 }
 func (m *LispAddDelLocator) 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.EncodeString(m.LocatorSetName, 64)
        buf.EncodeUint32(uint32(m.SwIfIndex))
-       buf.EncodeUint8(uint8(m.Priority))
-       buf.EncodeUint8(uint8(m.Weight))
+       buf.EncodeUint8(m.Priority)
+       buf.EncodeUint8(m.Weight)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelLocator) Unmarshal(b []byte) error {
@@ -319,27 +306,24 @@ func (*LispAddDelLocatorReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelLocatorReply) Size() int {
+func (m *LispAddDelLocatorReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelLocatorReply) 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 *LispAddDelLocatorReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -358,11 +342,10 @@ func (*LispAddDelLocatorSet) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelLocatorSet) Size() int {
+func (m *LispAddDelLocatorSet) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1  // m.IsAdd
        size += 64 // m.LocatorSetName
        size += 4  // m.LocatorNum
@@ -379,23 +362,21 @@ func (m *LispAddDelLocatorSet) Size() int {
        return size
 }
 func (m *LispAddDelLocatorSet) 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.EncodeString(m.LocatorSetName, 64)
        buf.EncodeUint32(uint32(len(m.Locators)))
        for j0 := 0; j0 < len(m.Locators); j0++ {
-               var v0 lisp_types.LocalLocator
+               var v0 lisp_types.LocalLocator // Locators
                if j0 < len(m.Locators) {
                        v0 = m.Locators[j0]
                }
                buf.EncodeUint32(uint32(v0.SwIfIndex))
-               buf.EncodeUint8(uint8(v0.Priority))
-               buf.EncodeUint8(uint8(v0.Weight))
+               buf.EncodeUint8(v0.Priority)
+               buf.EncodeUint8(v0.Weight)
        }
        return buf.Bytes(), nil
 }
@@ -404,7 +385,7 @@ func (m *LispAddDelLocatorSet) Unmarshal(b []byte) error {
        m.IsAdd = buf.DecodeBool()
        m.LocatorSetName = buf.DecodeString(64)
        m.LocatorNum = buf.DecodeUint32()
-       m.Locators = make([]lisp_types.LocalLocator, int(m.LocatorNum))
+       m.Locators = make([]lisp_types.LocalLocator, m.LocatorNum)
        for j0 := 0; j0 < len(m.Locators); j0++ {
                m.Locators[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
                m.Locators[j0].Priority = buf.DecodeUint8()
@@ -426,29 +407,26 @@ func (*LispAddDelLocatorSetReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelLocatorSetReply) Size() int {
+func (m *LispAddDelLocatorSetReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 4 // m.LsIndex
        return size
 }
 func (m *LispAddDelLocatorSetReply) 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.EncodeUint32(uint32(m.LsIndex))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
+       buf.EncodeUint32(m.LsIndex)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelLocatorSetReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.LsIndex = buf.DecodeUint32()
        return nil
 }
@@ -468,22 +446,19 @@ func (*LispAddDelMapRequestItrRlocs) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelMapRequestItrRlocs) Size() int {
+func (m *LispAddDelMapRequestItrRlocs) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1  // m.IsAdd
        size += 64 // m.LocatorSetName
        return size
 }
 func (m *LispAddDelMapRequestItrRlocs) 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.EncodeString(m.LocatorSetName, 64)
        return buf.Bytes(), nil
@@ -509,27 +484,24 @@ func (*LispAddDelMapRequestItrRlocsReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelMapRequestItrRlocsReply) Size() int {
+func (m *LispAddDelMapRequestItrRlocsReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelMapRequestItrRlocsReply) 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 *LispAddDelMapRequestItrRlocsReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -541,31 +513,28 @@ type LispAddDelMapResolver struct {
 
 func (m *LispAddDelMapResolver) Reset()               { *m = LispAddDelMapResolver{} }
 func (*LispAddDelMapResolver) GetMessageName() string { return "lisp_add_del_map_resolver" }
-func (*LispAddDelMapResolver) GetCrcString() string   { return "6598ea7c" }
+func (*LispAddDelMapResolver) GetCrcString() string   { return "ce19e32d" }
 func (*LispAddDelMapResolver) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelMapResolver) Size() int {
+func (m *LispAddDelMapResolver) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IsAdd
        size += 1      // m.IPAddress.Af
        size += 1 * 16 // m.IPAddress.Un
        return size
 }
 func (m *LispAddDelMapResolver) 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.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelMapResolver) Unmarshal(b []byte) error {
@@ -588,27 +557,24 @@ func (*LispAddDelMapResolverReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelMapResolverReply) Size() int {
+func (m *LispAddDelMapResolverReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelMapResolverReply) 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 *LispAddDelMapResolverReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -620,31 +586,28 @@ type LispAddDelMapServer struct {
 
 func (m *LispAddDelMapServer) Reset()               { *m = LispAddDelMapServer{} }
 func (*LispAddDelMapServer) GetMessageName() string { return "lisp_add_del_map_server" }
-func (*LispAddDelMapServer) GetCrcString() string   { return "6598ea7c" }
+func (*LispAddDelMapServer) GetCrcString() string   { return "ce19e32d" }
 func (*LispAddDelMapServer) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelMapServer) Size() int {
+func (m *LispAddDelMapServer) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IsAdd
        size += 1      // m.IPAddress.Af
        size += 1 * 16 // m.IPAddress.Un
        return size
 }
 func (m *LispAddDelMapServer) 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.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        return buf.Bytes(), nil
 }
 func (m *LispAddDelMapServer) Unmarshal(b []byte) error {
@@ -667,27 +630,24 @@ func (*LispAddDelMapServerReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelMapServerReply) Size() int {
+func (m *LispAddDelMapServerReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelMapServerReply) 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 *LispAddDelMapServerReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -706,26 +666,25 @@ type LispAddDelRemoteMapping struct {
 
 func (m *LispAddDelRemoteMapping) Reset()               { *m = LispAddDelRemoteMapping{} }
 func (*LispAddDelRemoteMapping) GetMessageName() string { return "lisp_add_del_remote_mapping" }
-func (*LispAddDelRemoteMapping) GetCrcString() string   { return "fae8ed77" }
+func (*LispAddDelRemoteMapping) GetCrcString() string   { return "6d5c789e" }
 func (*LispAddDelRemoteMapping) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAddDelRemoteMapping) Size() int {
+func (m *LispAddDelRemoteMapping) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
-       size += 1     // m.IsAdd
-       size += 1     // m.IsSrcDst
-       size += 1     // m.DelAll
-       size += 4     // m.Vni
-       size += 1     // m.Action
-       size += 1     // m.Deid.Type
-       size += 1 * 6 // m.Deid.Address
-       size += 1     // m.Seid.Type
-       size += 1 * 6 // m.Seid.Address
-       size += 4     // m.RlocNum
+       size += 1      // m.IsAdd
+       size += 1      // m.IsSrcDst
+       size += 1      // m.DelAll
+       size += 4      // m.Vni
+       size += 1      // m.Action
+       size += 1      // m.Deid.Type
+       size += 1 * 18 // m.Deid.Address
+       size += 1      // m.Seid.Type
+       size += 1 * 18 // m.Seid.Address
+       size += 4      // m.RlocNum
        for j1 := 0; j1 < len(m.Rlocs); j1++ {
                var s1 lisp_types.RemoteLocator
                _ = s1
@@ -740,31 +699,29 @@ func (m *LispAddDelRemoteMapping) Size() int {
        return size
 }
 func (m *LispAddDelRemoteMapping) 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.EncodeBool(m.IsSrcDst)
        buf.EncodeBool(m.DelAll)
-       buf.EncodeUint32(uint32(m.Vni))
-       buf.EncodeUint8(uint8(m.Action))
+       buf.EncodeUint32(m.Vni)
+       buf.EncodeUint8(m.Action)
        buf.EncodeUint8(uint8(m.Deid.Type))
-       buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 18)
        buf.EncodeUint8(uint8(m.Seid.Type))
-       buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 18)
        buf.EncodeUint32(uint32(len(m.Rlocs)))
        for j0 := 0; j0 < len(m.Rlocs); j0++ {
-               var v0 lisp_types.RemoteLocator
+               var v0 lisp_types.RemoteLocator // Rlocs
                if j0 < len(m.Rlocs) {
                        v0 = m.Rlocs[j0]
                }
-               buf.EncodeUint8(uint8(v0.Priority))
-               buf.EncodeUint8(uint8(v0.Weight))
+               buf.EncodeUint8(v0.Priority)
+               buf.EncodeUint8(v0.Weight)
                buf.EncodeUint8(uint8(v0.IPAddress.Af))
-               buf.EncodeBytes(v0.IPAddress.Un.XXX_UnionData[:], 0)
+               buf.EncodeBytes(v0.IPAddress.Un.XXX_UnionData[:], 16)
        }
        return buf.Bytes(), nil
 }
@@ -776,11 +733,11 @@ func (m *LispAddDelRemoteMapping) Unmarshal(b []byte) error {
        m.Vni = buf.DecodeUint32()
        m.Action = buf.DecodeUint8()
        m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.RlocNum = buf.DecodeUint32()
-       m.Rlocs = make([]lisp_types.RemoteLocator, int(m.RlocNum))
+       m.Rlocs = make([]lisp_types.RemoteLocator, m.RlocNum)
        for j0 := 0; j0 < len(m.Rlocs); j0++ {
                m.Rlocs[j0].Priority = buf.DecodeUint8()
                m.Rlocs[j0].Weight = buf.DecodeUint8()
@@ -804,27 +761,24 @@ func (*LispAddDelRemoteMappingReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAddDelRemoteMappingReply) Size() int {
+func (m *LispAddDelRemoteMappingReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispAddDelRemoteMappingReply) 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 *LispAddDelRemoteMappingReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -840,22 +794,19 @@ func (*LispAdjacenciesGet) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispAdjacenciesGet) Size() int {
+func (m *LispAdjacenciesGet) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Vni
        return size
 }
 func (m *LispAdjacenciesGet) 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.Vni))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.Vni)
        return buf.Bytes(), nil
 }
 func (m *LispAdjacenciesGet) Unmarshal(b []byte) error {
@@ -873,16 +824,15 @@ type LispAdjacenciesGetReply struct {
 
 func (m *LispAdjacenciesGetReply) Reset()               { *m = LispAdjacenciesGetReply{} }
 func (*LispAdjacenciesGetReply) GetMessageName() string { return "lisp_adjacencies_get_reply" }
-func (*LispAdjacenciesGetReply) GetCrcString() string   { return "3f97bcdd" }
+func (*LispAdjacenciesGetReply) GetCrcString() string   { return "807257bf" }
 func (*LispAdjacenciesGetReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispAdjacenciesGetReply) Size() int {
+func (m *LispAdjacenciesGetReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 4 // m.Count
        for j1 := 0; j1 < len(m.Adjacencies); j1++ {
@@ -891,44 +841,42 @@ func (m *LispAdjacenciesGetReply) Size() int {
                if j1 < len(m.Adjacencies) {
                        s1 = m.Adjacencies[j1]
                }
-               size += 1     // s1.Reid.Type
-               size += 1 * 6 // s1.Reid.Address
-               size += 1     // s1.Leid.Type
-               size += 1 * 6 // s1.Leid.Address
+               size += 1      // s1.Reid.Type
+               size += 1 * 18 // s1.Reid.Address
+               size += 1      // s1.Leid.Type
+               size += 1 * 18 // s1.Leid.Address
        }
        return size
 }
 func (m *LispAdjacenciesGetReply) 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)
        buf.EncodeUint32(uint32(len(m.Adjacencies)))
        for j0 := 0; j0 < len(m.Adjacencies); j0++ {
-               var v0 LispAdjacency
+               var v0 LispAdjacency // Adjacencies
                if j0 < len(m.Adjacencies) {
                        v0 = m.Adjacencies[j0]
                }
                buf.EncodeUint8(uint8(v0.Reid.Type))
-               buf.EncodeBytes(v0.Reid.Address.XXX_UnionData[:], 0)
+               buf.EncodeBytes(v0.Reid.Address.XXX_UnionData[:], 18)
                buf.EncodeUint8(uint8(v0.Leid.Type))
-               buf.EncodeBytes(v0.Leid.Address.XXX_UnionData[:], 0)
+               buf.EncodeBytes(v0.Leid.Address.XXX_UnionData[:], 18)
        }
        return buf.Bytes(), nil
 }
 func (m *LispAdjacenciesGetReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.Count = buf.DecodeUint32()
-       m.Adjacencies = make([]LispAdjacency, int(m.Count))
+       m.Adjacencies = make([]LispAdjacency, m.Count)
        for j0 := 0; j0 < len(m.Adjacencies); j0++ {
                m.Adjacencies[j0].Reid.Type = lisp_types.EidType(buf.DecodeUint8())
-               copy(m.Adjacencies[j0].Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+               copy(m.Adjacencies[j0].Reid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
                m.Adjacencies[j0].Leid.Type = lisp_types.EidType(buf.DecodeUint8())
-               copy(m.Adjacencies[j0].Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+               copy(m.Adjacencies[j0].Leid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        }
        return nil
 }
@@ -948,11 +896,10 @@ func (*LispEidTableAddDelMap) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispEidTableAddDelMap) Size() int {
+func (m *LispEidTableAddDelMap) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsAdd
        size += 4 // m.Vni
        size += 4 // m.DpTable
@@ -960,15 +907,13 @@ func (m *LispEidTableAddDelMap) Size() int {
        return size
 }
 func (m *LispEidTableAddDelMap) 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.Vni))
-       buf.EncodeUint32(uint32(m.DpTable))
+       buf.EncodeUint32(m.Vni)
+       buf.EncodeUint32(m.DpTable)
        buf.EncodeBool(m.IsL2)
        return buf.Bytes(), nil
 }
@@ -993,27 +938,24 @@ func (*LispEidTableAddDelMapReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispEidTableAddDelMapReply) Size() int {
+func (m *LispEidTableAddDelMapReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispEidTableAddDelMapReply) 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 *LispEidTableAddDelMapReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -1033,25 +975,24 @@ type LispEidTableDetails struct {
 
 func (m *LispEidTableDetails) Reset()               { *m = LispEidTableDetails{} }
 func (*LispEidTableDetails) GetMessageName() string { return "lisp_eid_table_details" }
-func (*LispEidTableDetails) GetCrcString() string   { return "4bc32e3a" }
+func (*LispEidTableDetails) GetCrcString() string   { return "1c29f792" }
 func (*LispEidTableDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispEidTableDetails) Size() int {
+func (m *LispEidTableDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4      // m.LocatorSetIndex
        size += 1      // m.Action
        size += 1      // m.IsLocal
        size += 1      // m.IsSrcDst
        size += 4      // m.Vni
        size += 1      // m.Deid.Type
-       size += 1 *  // m.Deid.Address
+       size += 1 * 18 // m.Deid.Address
        size += 1      // m.Seid.Type
-       size += 1 *  // m.Seid.Address
+       size += 1 * 18 // m.Seid.Address
        size += 4      // m.TTL
        size += 1      // m.Authoritative
        size += 1      // m.Key.ID
@@ -1059,25 +1000,23 @@ func (m *LispEidTableDetails) Size() int {
        return size
 }
 func (m *LispEidTableDetails) 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.LocatorSetIndex))
-       buf.EncodeUint8(uint8(m.Action))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.LocatorSetIndex)
+       buf.EncodeUint8(m.Action)
        buf.EncodeBool(m.IsLocal)
        buf.EncodeBool(m.IsSrcDst)
-       buf.EncodeUint32(uint32(m.Vni))
+       buf.EncodeUint32(m.Vni)
        buf.EncodeUint8(uint8(m.Deid.Type))
-       buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 18)
        buf.EncodeUint8(uint8(m.Seid.Type))
-       buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
-       buf.EncodeUint32(uint32(m.TTL))
-       buf.EncodeUint8(uint8(m.Authoritative))
+       buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 18)
+       buf.EncodeUint32(m.TTL)
+       buf.EncodeUint8(m.Authoritative)
        buf.EncodeUint8(uint8(m.Key.ID))
-       buf.EncodeBytes(m.Key.Key[:], 64)
+       buf.EncodeBytes(m.Key.Key, 64)
        return buf.Bytes(), nil
 }
 func (m *LispEidTableDetails) Unmarshal(b []byte) error {
@@ -1088,13 +1027,14 @@ func (m *LispEidTableDetails) Unmarshal(b []byte) error {
        m.IsSrcDst = buf.DecodeBool()
        m.Vni = buf.DecodeUint32()
        m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.TTL = buf.DecodeUint32()
        m.Authoritative = buf.DecodeUint8()
        m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
-       copy(m.Key.Key[:], buf.DecodeBytes(64))
+       m.Key.Key = make([]byte, 64)
+       copy(m.Key.Key, buf.DecodeBytes(len(m.Key.Key)))
        return nil
 }
 
@@ -1109,36 +1049,33 @@ type LispEidTableDump struct {
 
 func (m *LispEidTableDump) Reset()               { *m = LispEidTableDump{} }
 func (*LispEidTableDump) GetMessageName() string { return "lisp_eid_table_dump" }
-func (*LispEidTableDump) GetCrcString() string   { return "b959b73b" }
+func (*LispEidTableDump) GetCrcString() string   { return "629468b5" }
 func (*LispEidTableDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispEidTableDump) Size() int {
+func (m *LispEidTableDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
-       size += 1     // m.EidSet
-       size += 1     // m.PrefixLength
-       size += 4     // m.Vni
-       size += 1     // m.Eid.Type
-       size += 1 * 6 // m.Eid.Address
-       size += 1     // m.Filter
+       size += 1      // m.EidSet
+       size += 1      // m.PrefixLength
+       size += 4      // m.Vni
+       size += 1      // m.Eid.Type
+       size += 1 * 18 // m.Eid.Address
+       size += 1      // m.Filter
        return size
 }
 func (m *LispEidTableDump) 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.EncodeUint8(uint8(m.EidSet))
-       buf.EncodeUint8(uint8(m.PrefixLength))
-       buf.EncodeUint32(uint32(m.Vni))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint8(m.EidSet)
+       buf.EncodeUint8(m.PrefixLength)
+       buf.EncodeUint32(m.Vni)
        buf.EncodeUint8(uint8(m.Eid.Type))
-       buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 18)
        buf.EncodeUint8(uint8(m.Filter))
        return buf.Bytes(), nil
 }
@@ -1148,7 +1085,7 @@ func (m *LispEidTableDump) Unmarshal(b []byte) error {
        m.PrefixLength = buf.DecodeUint8()
        m.Vni = buf.DecodeUint32()
        m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
-       copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
+       copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
        m.Filter = LispLocatorSetFilter(buf.DecodeUint8())
        return nil
 }
@@ -1166,24 +1103,21 @@ func (*LispEidTableMapDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispEidTableMapDetails) Size() int {
+func (m *LispEidTableMapDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Vni
        size += 4 // m.DpTable
        return size
 }
 func (m *LispEidTableMapDetails) 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.Vni))
-       buf.EncodeUint32(uint32(m.DpTable))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.Vni)
+       buf.EncodeUint32(m.DpTable)
        return buf.Bytes(), nil
 }
 func (m *LispEidTableMapDetails) Unmarshal(b []byte) error {
@@ -1205,21 +1139,18 @@ func (*LispEidTableMapDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispEidTableMapDump) Size() int {
+func (m *LispEidTableMapDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsL2
        return size
 }
 func (m *LispEidTableMapDump) 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.IsL2)
        return buf.Bytes(), nil
 }
@@ -1241,22 +1172,19 @@ func (*LispEidTableVniDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispEidTableVniDetails) Size() int {
+func (m *LispEidTableVniDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Vni
        return size
 }
 func (m *LispEidTableVniDetails) 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.Vni))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.Vni)
        return buf.Bytes(), nil
 }
 func (m *LispEidTableVniDetails) Unmarshal(b []byte) error {
@@ -1275,20 +1203,17 @@ func (*LispEidTableVniDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispEidTableVniDump) Size() int {
+func (m *LispEidTableVniDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *LispEidTableVniDump) 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 *LispEidTableVniDump) Unmarshal(b []byte) error {
@@ -1307,21 +1232,18 @@ func (*LispEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispEnableDisable) Size() int {
+func (m *LispEnableDisable) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsEnable
        return size
 }
 func (m *LispEnableDisable) 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.IsEnable)
        return buf.Bytes(), nil
 }
@@ -1343,27 +1265,24 @@ func (*LispEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispEnableDisableReply) Size() int {
+func (m *LispEnableDisableReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispEnableDisableReply) 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 *LispEnableDisableReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -1377,20 +1296,17 @@ func (*LispGetMapRequestItrRlocs) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispGetMapRequestItrRlocs) Size() int {
+func (m *LispGetMapRequestItrRlocs) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *LispGetMapRequestItrRlocs) 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 *LispGetMapRequestItrRlocs) Unmarshal(b []byte) error {
@@ -1412,29 +1328,26 @@ func (*LispGetMapRequestItrRlocsReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispGetMapRequestItrRlocsReply) Size() int {
+func (m *LispGetMapRequestItrRlocsReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4  // m.Retval
        size += 64 // m.LocatorSetName
        return size
 }
 func (m *LispGetMapRequestItrRlocsReply) 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)
        buf.EncodeString(m.LocatorSetName, 64)
        return buf.Bytes(), nil
 }
 func (m *LispGetMapRequestItrRlocsReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.LocatorSetName = buf.DecodeString(64)
        return nil
 }
@@ -1450,16 +1363,15 @@ type LispLocatorDetails struct {
 
 func (m *LispLocatorDetails) Reset()               { *m = LispLocatorDetails{} }
 func (*LispLocatorDetails) GetMessageName() string { return "lisp_locator_details" }
-func (*LispLocatorDetails) GetCrcString() string   { return "c0c4c2a7" }
+func (*LispLocatorDetails) GetCrcString() string   { return "2c620ffe" }
 func (*LispLocatorDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispLocatorDetails) Size() int {
+func (m *LispLocatorDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.Local
        size += 4      // m.SwIfIndex
        size += 1      // m.IPAddress.Af
@@ -1469,18 +1381,16 @@ func (m *LispLocatorDetails) Size() int {
        return size
 }
 func (m *LispLocatorDetails) 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.EncodeUint8(uint8(m.Local))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint8(m.Local)
        buf.EncodeUint32(uint32(m.SwIfIndex))
        buf.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
-       buf.EncodeUint8(uint8(m.Priority))
-       buf.EncodeUint8(uint8(m.Weight))
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
+       buf.EncodeUint8(m.Priority)
+       buf.EncodeUint8(m.Weight)
        return buf.Bytes(), nil
 }
 func (m *LispLocatorDetails) Unmarshal(b []byte) error {
@@ -1508,26 +1418,23 @@ func (*LispLocatorDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispLocatorDump) Size() int {
+func (m *LispLocatorDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4  // m.LsIndex
        size += 64 // m.LsName
        size += 1  // m.IsIndexSet
        return size
 }
 func (m *LispLocatorDump) 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.LsIndex))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.LsIndex)
        buf.EncodeString(m.LsName, 64)
-       buf.EncodeUint8(uint8(m.IsIndexSet))
+       buf.EncodeUint8(m.IsIndexSet)
        return buf.Bytes(), nil
 }
 func (m *LispLocatorDump) Unmarshal(b []byte) error {
@@ -1551,23 +1458,20 @@ func (*LispLocatorSetDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispLocatorSetDetails) Size() int {
+func (m *LispLocatorSetDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4  // m.LsIndex
        size += 64 // m.LsName
        return size
 }
 func (m *LispLocatorSetDetails) 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.LsIndex))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.LsIndex)
        buf.EncodeString(m.LsName, 64)
        return buf.Bytes(), nil
 }
@@ -1590,21 +1494,18 @@ func (*LispLocatorSetDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispLocatorSetDump) Size() int {
+func (m *LispLocatorSetDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.Filter
        return size
 }
 func (m *LispLocatorSetDump) 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.EncodeUint8(uint8(m.Filter))
        return buf.Bytes(), nil
 }
@@ -1628,21 +1529,18 @@ func (*LispMapRegisterEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispMapRegisterEnableDisable) Size() int {
+func (m *LispMapRegisterEnableDisable) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsEnable
        return size
 }
 func (m *LispMapRegisterEnableDisable) 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.IsEnable)
        return buf.Bytes(), nil
 }
@@ -1666,27 +1564,24 @@ func (*LispMapRegisterEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispMapRegisterEnableDisableReply) Size() int {
+func (m *LispMapRegisterEnableDisableReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispMapRegisterEnableDisableReply) 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 *LispMapRegisterEnableDisableReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -1702,21 +1597,18 @@ func (*LispMapRequestMode) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispMapRequestMode) Size() int {
+func (m *LispMapRequestMode) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsSrcDst
        return size
 }
 func (m *LispMapRequestMode) 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.IsSrcDst)
        return buf.Bytes(), nil
 }
@@ -1738,27 +1630,24 @@ func (*LispMapRequestModeReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispMapRequestModeReply) Size() int {
+func (m *LispMapRequestModeReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispMapRequestModeReply) 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 *LispMapRequestModeReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -1769,29 +1658,26 @@ type LispMapResolverDetails struct {
 
 func (m *LispMapResolverDetails) Reset()               { *m = LispMapResolverDetails{} }
 func (*LispMapResolverDetails) GetMessageName() string { return "lisp_map_resolver_details" }
-func (*LispMapResolverDetails) GetCrcString() string   { return "82a09deb" }
+func (*LispMapResolverDetails) GetCrcString() string   { return "3e78fc57" }
 func (*LispMapResolverDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispMapResolverDetails) Size() int {
+func (m *LispMapResolverDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IPAddress.Af
        size += 1 * 16 // m.IPAddress.Un
        return size
 }
 func (m *LispMapResolverDetails) 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.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        return buf.Bytes(), nil
 }
 func (m *LispMapResolverDetails) Unmarshal(b []byte) error {
@@ -1811,20 +1697,17 @@ func (*LispMapResolverDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispMapResolverDump) Size() int {
+func (m *LispMapResolverDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *LispMapResolverDump) 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 *LispMapResolverDump) Unmarshal(b []byte) error {
@@ -1838,29 +1721,26 @@ type LispMapServerDetails struct {
 
 func (m *LispMapServerDetails) Reset()               { *m = LispMapServerDetails{} }
 func (*LispMapServerDetails) GetMessageName() string { return "lisp_map_server_details" }
-func (*LispMapServerDetails) GetCrcString() string   { return "82a09deb" }
+func (*LispMapServerDetails) GetCrcString() string   { return "3e78fc57" }
 func (*LispMapServerDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispMapServerDetails) Size() int {
+func (m *LispMapServerDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IPAddress.Af
        size += 1 * 16 // m.IPAddress.Un
        return size
 }
 func (m *LispMapServerDetails) 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.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        return buf.Bytes(), nil
 }
 func (m *LispMapServerDetails) Unmarshal(b []byte) error {
@@ -1880,20 +1760,17 @@ func (*LispMapServerDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispMapServerDump) Size() int {
+func (m *LispMapServerDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *LispMapServerDump) 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 *LispMapServerDump) Unmarshal(b []byte) error {
@@ -1913,22 +1790,19 @@ func (*LispPitrSetLocatorSet) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispPitrSetLocatorSet) Size() int {
+func (m *LispPitrSetLocatorSet) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1  // m.IsAdd
        size += 64 // m.LsName
        return size
 }
 func (m *LispPitrSetLocatorSet) 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.EncodeString(m.LsName, 64)
        return buf.Bytes(), nil
@@ -1952,27 +1826,24 @@ func (*LispPitrSetLocatorSetReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispPitrSetLocatorSetReply) Size() int {
+func (m *LispPitrSetLocatorSetReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispPitrSetLocatorSetReply) 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 *LispPitrSetLocatorSetReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -1988,21 +1859,18 @@ func (*LispRlocProbeEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispRlocProbeEnableDisable) Size() int {
+func (m *LispRlocProbeEnableDisable) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.IsEnable
        return size
 }
 func (m *LispRlocProbeEnableDisable) 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.IsEnable)
        return buf.Bytes(), nil
 }
@@ -2026,27 +1894,24 @@ func (*LispRlocProbeEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispRlocProbeEnableDisableReply) Size() int {
+func (m *LispRlocProbeEnableDisableReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispRlocProbeEnableDisableReply) 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 *LispRlocProbeEnableDisableReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -2058,30 +1923,27 @@ type LispUsePetr struct {
 
 func (m *LispUsePetr) Reset()               { *m = LispUsePetr{} }
 func (*LispUsePetr) GetMessageName() string { return "lisp_use_petr" }
-func (*LispUsePetr) GetCrcString() string   { return "9e141831" }
+func (*LispUsePetr) GetCrcString() string   { return "d87dbad9" }
 func (*LispUsePetr) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *LispUsePetr) Size() int {
+func (m *LispUsePetr) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IPAddress.Af
        size += 1 * 16 // m.IPAddress.Un
        size += 1      // m.IsAdd
        return size
 }
 func (m *LispUsePetr) 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.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        buf.EncodeBool(m.IsAdd)
        return buf.Bytes(), nil
 }
@@ -2105,27 +1967,24 @@ func (*LispUsePetrReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *LispUsePetrReply) Size() int {
+func (m *LispUsePetrReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *LispUsePetrReply) 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 *LispUsePetrReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -2139,20 +1998,17 @@ func (*ShowLispMapRegisterState) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispMapRegisterState) Size() int {
+func (m *ShowLispMapRegisterState) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispMapRegisterState) 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 *ShowLispMapRegisterState) Unmarshal(b []byte) error {
@@ -2162,7 +2018,7 @@ func (m *ShowLispMapRegisterState) Unmarshal(b []byte) error {
 // ShowLispMapRegisterStateReply defines message 'show_lisp_map_register_state_reply'.
 type ShowLispMapRegisterStateReply struct {
        Retval    int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
-       IsEnabled bool  `binapi:"bool,name=is_enabled,default=true" json:"is_enabled,omitempty"`
+       IsEnabled bool  `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
 }
 
 func (m *ShowLispMapRegisterStateReply) Reset() { *m = ShowLispMapRegisterStateReply{} }
@@ -2174,29 +2030,26 @@ func (*ShowLispMapRegisterStateReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispMapRegisterStateReply) Size() int {
+func (m *ShowLispMapRegisterStateReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 1 // m.IsEnabled
        return size
 }
 func (m *ShowLispMapRegisterStateReply) 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)
        buf.EncodeBool(m.IsEnabled)
        return buf.Bytes(), nil
 }
 func (m *ShowLispMapRegisterStateReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsEnabled = buf.DecodeBool()
        return nil
 }
@@ -2211,20 +2064,17 @@ func (*ShowLispMapRequestMode) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispMapRequestMode) Size() int {
+func (m *ShowLispMapRequestMode) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispMapRequestMode) 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 *ShowLispMapRequestMode) Unmarshal(b []byte) error {
@@ -2246,29 +2096,26 @@ func (*ShowLispMapRequestModeReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispMapRequestModeReply) Size() int {
+func (m *ShowLispMapRequestModeReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 1 // m.IsSrcDst
        return size
 }
 func (m *ShowLispMapRequestModeReply) 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)
        buf.EncodeBool(m.IsSrcDst)
        return buf.Bytes(), nil
 }
 func (m *ShowLispMapRequestModeReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsSrcDst = buf.DecodeBool()
        return nil
 }
@@ -2283,20 +2130,17 @@ func (*ShowLispPitr) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispPitr) Size() int {
+func (m *ShowLispPitr) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispPitr) 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 *ShowLispPitr) Unmarshal(b []byte) error {
@@ -2317,31 +2161,28 @@ func (*ShowLispPitrReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispPitrReply) Size() int {
+func (m *ShowLispPitrReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4  // m.Retval
        size += 1  // m.IsEnabled
        size += 64 // m.LocatorSetName
        return size
 }
 func (m *ShowLispPitrReply) 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)
        buf.EncodeBool(m.IsEnabled)
        buf.EncodeString(m.LocatorSetName, 64)
        return buf.Bytes(), nil
 }
 func (m *ShowLispPitrReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsEnabled = buf.DecodeBool()
        m.LocatorSetName = buf.DecodeString(64)
        return nil
@@ -2357,20 +2198,17 @@ func (*ShowLispRlocProbeState) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispRlocProbeState) Size() int {
+func (m *ShowLispRlocProbeState) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispRlocProbeState) 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 *ShowLispRlocProbeState) Unmarshal(b []byte) error {
@@ -2380,7 +2218,7 @@ func (m *ShowLispRlocProbeState) Unmarshal(b []byte) error {
 // ShowLispRlocProbeStateReply defines message 'show_lisp_rloc_probe_state_reply'.
 type ShowLispRlocProbeStateReply struct {
        Retval    int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
-       IsEnabled bool  `binapi:"bool,name=is_enabled,default=true" json:"is_enabled,omitempty"`
+       IsEnabled bool  `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
 }
 
 func (m *ShowLispRlocProbeStateReply) Reset() { *m = ShowLispRlocProbeStateReply{} }
@@ -2392,29 +2230,26 @@ func (*ShowLispRlocProbeStateReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispRlocProbeStateReply) Size() int {
+func (m *ShowLispRlocProbeStateReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 1 // m.IsEnabled
        return size
 }
 func (m *ShowLispRlocProbeStateReply) 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)
        buf.EncodeBool(m.IsEnabled)
        return buf.Bytes(), nil
 }
 func (m *ShowLispRlocProbeStateReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsEnabled = buf.DecodeBool()
        return nil
 }
@@ -2429,20 +2264,17 @@ func (*ShowLispStatus) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispStatus) Size() int {
+func (m *ShowLispStatus) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispStatus) 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 *ShowLispStatus) Unmarshal(b []byte) error {
@@ -2463,31 +2295,28 @@ func (*ShowLispStatusReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispStatusReply) Size() int {
+func (m *ShowLispStatusReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 1 // m.IsLispEnabled
        size += 1 // m.IsGpeEnabled
        return size
 }
 func (m *ShowLispStatusReply) 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)
        buf.EncodeBool(m.IsLispEnabled)
        buf.EncodeBool(m.IsGpeEnabled)
        return buf.Bytes(), nil
 }
 func (m *ShowLispStatusReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsLispEnabled = buf.DecodeBool()
        m.IsGpeEnabled = buf.DecodeBool()
        return nil
@@ -2503,20 +2332,17 @@ func (*ShowLispUsePetr) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *ShowLispUsePetr) Size() int {
+func (m *ShowLispUsePetr) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        return size
 }
 func (m *ShowLispUsePetr) 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 *ShowLispUsePetr) Unmarshal(b []byte) error {
@@ -2526,22 +2352,21 @@ func (m *ShowLispUsePetr) Unmarshal(b []byte) error {
 // ShowLispUsePetrReply defines message 'show_lisp_use_petr_reply'.
 type ShowLispUsePetrReply struct {
        Retval       int32            `binapi:"i32,name=retval" json:"retval,omitempty"`
-       IsPetrEnable bool             `binapi:"bool,name=is_petr_enable,default=true" json:"is_petr_enable,omitempty"`
+       IsPetrEnable bool             `binapi:"bool,name=is_petr_enable" json:"is_petr_enable,omitempty"`
        IPAddress    ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
 }
 
 func (m *ShowLispUsePetrReply) Reset()               { *m = ShowLispUsePetrReply{} }
 func (*ShowLispUsePetrReply) GetMessageName() string { return "show_lisp_use_petr_reply" }
-func (*ShowLispUsePetrReply) GetCrcString() string   { return "dcad8a81" }
+func (*ShowLispUsePetrReply) GetCrcString() string   { return "22b9a4b0" }
 func (*ShowLispUsePetrReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *ShowLispUsePetrReply) Size() int {
+func (m *ShowLispUsePetrReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4      // m.Retval
        size += 1      // m.IsPetrEnable
        size += 1      // m.IPAddress.Af
@@ -2549,21 +2374,19 @@ func (m *ShowLispUsePetrReply) Size() int {
        return size
 }
 func (m *ShowLispUsePetrReply) 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)
        buf.EncodeBool(m.IsPetrEnable)
        buf.EncodeUint8(uint8(m.IPAddress.Af))
-       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
        return buf.Bytes(), nil
 }
 func (m *ShowLispUsePetrReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.IsPetrEnable = buf.DecodeBool()
        m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
        copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
@@ -2572,9 +2395,9 @@ func (m *ShowLispUsePetrReply) Unmarshal(b []byte) error {
 
 func init() { file_lisp_binapi_init() }
 func file_lisp_binapi_init() {
-       api.RegisterMessage((*LispAddDelAdjacency)(nil), "lisp_add_del_adjacency_cf5edb61")
+       api.RegisterMessage((*LispAddDelAdjacency)(nil), "lisp_add_del_adjacency_2ce0e6f6")
        api.RegisterMessage((*LispAddDelAdjacencyReply)(nil), "lisp_add_del_adjacency_reply_e8d4e804")
-       api.RegisterMessage((*LispAddDelLocalEid)(nil), "lisp_add_del_local_eid_21f573bd")
+       api.RegisterMessage((*LispAddDelLocalEid)(nil), "lisp_add_del_local_eid_4e5a83a2")
        api.RegisterMessage((*LispAddDelLocalEidReply)(nil), "lisp_add_del_local_eid_reply_e8d4e804")
        api.RegisterMessage((*LispAddDelLocator)(nil), "lisp_add_del_locator_af4d8f13")
        api.RegisterMessage((*LispAddDelLocatorReply)(nil), "lisp_add_del_locator_reply_e8d4e804")
@@ -2582,18 +2405,18 @@ func file_lisp_binapi_init() {
        api.RegisterMessage((*LispAddDelLocatorSetReply)(nil), "lisp_add_del_locator_set_reply_b6666db4")
        api.RegisterMessage((*LispAddDelMapRequestItrRlocs)(nil), "lisp_add_del_map_request_itr_rlocs_6be88e45")
        api.RegisterMessage((*LispAddDelMapRequestItrRlocsReply)(nil), "lisp_add_del_map_request_itr_rlocs_reply_e8d4e804")
-       api.RegisterMessage((*LispAddDelMapResolver)(nil), "lisp_add_del_map_resolver_6598ea7c")
+       api.RegisterMessage((*LispAddDelMapResolver)(nil), "lisp_add_del_map_resolver_ce19e32d")
        api.RegisterMessage((*LispAddDelMapResolverReply)(nil), "lisp_add_del_map_resolver_reply_e8d4e804")
-       api.RegisterMessage((*LispAddDelMapServer)(nil), "lisp_add_del_map_server_6598ea7c")
+       api.RegisterMessage((*LispAddDelMapServer)(nil), "lisp_add_del_map_server_ce19e32d")
        api.RegisterMessage((*LispAddDelMapServerReply)(nil), "lisp_add_del_map_server_reply_e8d4e804")
-       api.RegisterMessage((*LispAddDelRemoteMapping)(nil), "lisp_add_del_remote_mapping_fae8ed77")
+       api.RegisterMessage((*LispAddDelRemoteMapping)(nil), "lisp_add_del_remote_mapping_6d5c789e")
        api.RegisterMessage((*LispAddDelRemoteMappingReply)(nil), "lisp_add_del_remote_mapping_reply_e8d4e804")
        api.RegisterMessage((*LispAdjacenciesGet)(nil), "lisp_adjacencies_get_8d1f2fe9")
-       api.RegisterMessage((*LispAdjacenciesGetReply)(nil), "lisp_adjacencies_get_reply_3f97bcdd")
+       api.RegisterMessage((*LispAdjacenciesGetReply)(nil), "lisp_adjacencies_get_reply_807257bf")
        api.RegisterMessage((*LispEidTableAddDelMap)(nil), "lisp_eid_table_add_del_map_9481416b")
        api.RegisterMessage((*LispEidTableAddDelMapReply)(nil), "lisp_eid_table_add_del_map_reply_e8d4e804")
-       api.RegisterMessage((*LispEidTableDetails)(nil), "lisp_eid_table_details_4bc32e3a")
-       api.RegisterMessage((*LispEidTableDump)(nil), "lisp_eid_table_dump_b959b73b")
+       api.RegisterMessage((*LispEidTableDetails)(nil), "lisp_eid_table_details_1c29f792")
+       api.RegisterMessage((*LispEidTableDump)(nil), "lisp_eid_table_dump_629468b5")
        api.RegisterMessage((*LispEidTableMapDetails)(nil), "lisp_eid_table_map_details_0b6859e2")
        api.RegisterMessage((*LispEidTableMapDump)(nil), "lisp_eid_table_map_dump_d6cf0c3d")
        api.RegisterMessage((*LispEidTableVniDetails)(nil), "lisp_eid_table_vni_details_64abc01e")
@@ -2602,7 +2425,7 @@ func file_lisp_binapi_init() {
        api.RegisterMessage((*LispEnableDisableReply)(nil), "lisp_enable_disable_reply_e8d4e804")
        api.RegisterMessage((*LispGetMapRequestItrRlocs)(nil), "lisp_get_map_request_itr_rlocs_51077d14")
        api.RegisterMessage((*LispGetMapRequestItrRlocsReply)(nil), "lisp_get_map_request_itr_rlocs_reply_76580f3a")
-       api.RegisterMessage((*LispLocatorDetails)(nil), "lisp_locator_details_c0c4c2a7")
+       api.RegisterMessage((*LispLocatorDetails)(nil), "lisp_locator_details_2c620ffe")
        api.RegisterMessage((*LispLocatorDump)(nil), "lisp_locator_dump_b954fad7")
        api.RegisterMessage((*LispLocatorSetDetails)(nil), "lisp_locator_set_details_5b33a105")
        api.RegisterMessage((*LispLocatorSetDump)(nil), "lisp_locator_set_dump_c2cb5922")
@@ -2610,15 +2433,15 @@ func file_lisp_binapi_init() {
        api.RegisterMessage((*LispMapRegisterEnableDisableReply)(nil), "lisp_map_register_enable_disable_reply_e8d4e804")
        api.RegisterMessage((*LispMapRequestMode)(nil), "lisp_map_request_mode_f43c26ae")
        api.RegisterMessage((*LispMapRequestModeReply)(nil), "lisp_map_request_mode_reply_e8d4e804")
-       api.RegisterMessage((*LispMapResolverDetails)(nil), "lisp_map_resolver_details_82a09deb")
+       api.RegisterMessage((*LispMapResolverDetails)(nil), "lisp_map_resolver_details_3e78fc57")
        api.RegisterMessage((*LispMapResolverDump)(nil), "lisp_map_resolver_dump_51077d14")
-       api.RegisterMessage((*LispMapServerDetails)(nil), "lisp_map_server_details_82a09deb")
+       api.RegisterMessage((*LispMapServerDetails)(nil), "lisp_map_server_details_3e78fc57")
        api.RegisterMessage((*LispMapServerDump)(nil), "lisp_map_server_dump_51077d14")
        api.RegisterMessage((*LispPitrSetLocatorSet)(nil), "lisp_pitr_set_locator_set_486e2b76")
        api.RegisterMessage((*LispPitrSetLocatorSetReply)(nil), "lisp_pitr_set_locator_set_reply_e8d4e804")
        api.RegisterMessage((*LispRlocProbeEnableDisable)(nil), "lisp_rloc_probe_enable_disable_c264d7bf")
        api.RegisterMessage((*LispRlocProbeEnableDisableReply)(nil), "lisp_rloc_probe_enable_disable_reply_e8d4e804")
-       api.RegisterMessage((*LispUsePetr)(nil), "lisp_use_petr_9e141831")
+       api.RegisterMessage((*LispUsePetr)(nil), "lisp_use_petr_d87dbad9")
        api.RegisterMessage((*LispUsePetrReply)(nil), "lisp_use_petr_reply_e8d4e804")
        api.RegisterMessage((*ShowLispMapRegisterState)(nil), "show_lisp_map_register_state_51077d14")
        api.RegisterMessage((*ShowLispMapRegisterStateReply)(nil), "show_lisp_map_register_state_reply_e33a377b")
@@ -2631,7 +2454,7 @@ func file_lisp_binapi_init() {
        api.RegisterMessage((*ShowLispStatus)(nil), "show_lisp_status_51077d14")
        api.RegisterMessage((*ShowLispStatusReply)(nil), "show_lisp_status_reply_9e8f10c0")
        api.RegisterMessage((*ShowLispUsePetr)(nil), "show_lisp_use_petr_51077d14")
-       api.RegisterMessage((*ShowLispUsePetrReply)(nil), "show_lisp_use_petr_reply_dcad8a81")
+       api.RegisterMessage((*ShowLispUsePetrReply)(nil), "show_lisp_use_petr_reply_22b9a4b0")
 }
 
 // Messages returns list of all messages in this module.