github.com/edwarnicke/govpp@v0.0.0-20230130211138-14ef5d20b1d0/binapi/lcp/lcp.ba.go (about)

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