github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/lcp/lcp.ba.go (about)

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