go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2202/ipip/ipip.ba.go (about)

     1  // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
     2  
     3  // Package ipip contains generated bindings for API file ipip.api.
     4  //
     5  // Contents:
     6  // -  1 struct
     7  // - 10 messages
     8  package ipip
     9  
    10  import (
    11  	api "go.fd.io/govpp/api"
    12  	codec "go.fd.io/govpp/codec"
    13  	interface_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/interface_types"
    14  	ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/ip_types"
    15  	tunnel_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/tunnel_types"
    16  )
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the GoVPP api package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // GoVPP api package needs to be updated.
    22  const _ = api.GoVppAPIPackageIsVersion2
    23  
    24  const (
    25  	APIFile    = "ipip"
    26  	APIVersion = "2.0.2"
    27  	VersionCrc = 0x4609caba
    28  )
    29  
    30  // IpipTunnel defines type 'ipip_tunnel'.
    31  type IpipTunnel struct {
    32  	Instance  uint32                             `binapi:"u32,name=instance" json:"instance,omitempty"`
    33  	Src       ip_types.Address                   `binapi:"address,name=src" json:"src,omitempty"`
    34  	Dst       ip_types.Address                   `binapi:"address,name=dst" json:"dst,omitempty"`
    35  	SwIfIndex interface_types.InterfaceIndex     `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
    36  	TableID   uint32                             `binapi:"u32,name=table_id" json:"table_id,omitempty"`
    37  	Flags     tunnel_types.TunnelEncapDecapFlags `binapi:"tunnel_encap_decap_flags,name=flags" json:"flags,omitempty"`
    38  	Mode      tunnel_types.TunnelMode            `binapi:"tunnel_mode,name=mode" json:"mode,omitempty"`
    39  	Dscp      ip_types.IPDscp                    `binapi:"ip_dscp,name=dscp" json:"dscp,omitempty"`
    40  }
    41  
    42  // Ipip6rdAddTunnel defines message 'ipip_6rd_add_tunnel'.
    43  type Ipip6rdAddTunnel struct {
    44  	IP6TableID    uint32              `binapi:"u32,name=ip6_table_id" json:"ip6_table_id,omitempty"`
    45  	IP4TableID    uint32              `binapi:"u32,name=ip4_table_id" json:"ip4_table_id,omitempty"`
    46  	IP6Prefix     ip_types.IP6Prefix  `binapi:"ip6_prefix,name=ip6_prefix" json:"ip6_prefix,omitempty"`
    47  	IP4Prefix     ip_types.IP4Prefix  `binapi:"ip4_prefix,name=ip4_prefix" json:"ip4_prefix,omitempty"`
    48  	IP4Src        ip_types.IP4Address `binapi:"ip4_address,name=ip4_src" json:"ip4_src,omitempty"`
    49  	SecurityCheck bool                `binapi:"bool,name=security_check" json:"security_check,omitempty"`
    50  	TcTos         uint8               `binapi:"u8,name=tc_tos" json:"tc_tos,omitempty"`
    51  }
    52  
    53  func (m *Ipip6rdAddTunnel) Reset()               { *m = Ipip6rdAddTunnel{} }
    54  func (*Ipip6rdAddTunnel) GetMessageName() string { return "ipip_6rd_add_tunnel" }
    55  func (*Ipip6rdAddTunnel) GetCrcString() string   { return "b9ec1863" }
    56  func (*Ipip6rdAddTunnel) GetMessageType() api.MessageType {
    57  	return api.RequestMessage
    58  }
    59  
    60  func (m *Ipip6rdAddTunnel) Size() (size int) {
    61  	if m == nil {
    62  		return 0
    63  	}
    64  	size += 4      // m.IP6TableID
    65  	size += 4      // m.IP4TableID
    66  	size += 1 * 16 // m.IP6Prefix.Address
    67  	size += 1      // m.IP6Prefix.Len
    68  	size += 1 * 4  // m.IP4Prefix.Address
    69  	size += 1      // m.IP4Prefix.Len
    70  	size += 1 * 4  // m.IP4Src
    71  	size += 1      // m.SecurityCheck
    72  	size += 1      // m.TcTos
    73  	return size
    74  }
    75  func (m *Ipip6rdAddTunnel) Marshal(b []byte) ([]byte, error) {
    76  	if b == nil {
    77  		b = make([]byte, m.Size())
    78  	}
    79  	buf := codec.NewBuffer(b)
    80  	buf.EncodeUint32(m.IP6TableID)
    81  	buf.EncodeUint32(m.IP4TableID)
    82  	buf.EncodeBytes(m.IP6Prefix.Address[:], 16)
    83  	buf.EncodeUint8(m.IP6Prefix.Len)
    84  	buf.EncodeBytes(m.IP4Prefix.Address[:], 4)
    85  	buf.EncodeUint8(m.IP4Prefix.Len)
    86  	buf.EncodeBytes(m.IP4Src[:], 4)
    87  	buf.EncodeBool(m.SecurityCheck)
    88  	buf.EncodeUint8(m.TcTos)
    89  	return buf.Bytes(), nil
    90  }
    91  func (m *Ipip6rdAddTunnel) Unmarshal(b []byte) error {
    92  	buf := codec.NewBuffer(b)
    93  	m.IP6TableID = buf.DecodeUint32()
    94  	m.IP4TableID = buf.DecodeUint32()
    95  	copy(m.IP6Prefix.Address[:], buf.DecodeBytes(16))
    96  	m.IP6Prefix.Len = buf.DecodeUint8()
    97  	copy(m.IP4Prefix.Address[:], buf.DecodeBytes(4))
    98  	m.IP4Prefix.Len = buf.DecodeUint8()
    99  	copy(m.IP4Src[:], buf.DecodeBytes(4))
   100  	m.SecurityCheck = buf.DecodeBool()
   101  	m.TcTos = buf.DecodeUint8()
   102  	return nil
   103  }
   104  
   105  // Ipip6rdAddTunnelReply defines message 'ipip_6rd_add_tunnel_reply'.
   106  type Ipip6rdAddTunnelReply struct {
   107  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   108  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   109  }
   110  
   111  func (m *Ipip6rdAddTunnelReply) Reset()               { *m = Ipip6rdAddTunnelReply{} }
   112  func (*Ipip6rdAddTunnelReply) GetMessageName() string { return "ipip_6rd_add_tunnel_reply" }
   113  func (*Ipip6rdAddTunnelReply) GetCrcString() string   { return "5383d31f" }
   114  func (*Ipip6rdAddTunnelReply) GetMessageType() api.MessageType {
   115  	return api.ReplyMessage
   116  }
   117  
   118  func (m *Ipip6rdAddTunnelReply) Size() (size int) {
   119  	if m == nil {
   120  		return 0
   121  	}
   122  	size += 4 // m.Retval
   123  	size += 4 // m.SwIfIndex
   124  	return size
   125  }
   126  func (m *Ipip6rdAddTunnelReply) Marshal(b []byte) ([]byte, error) {
   127  	if b == nil {
   128  		b = make([]byte, m.Size())
   129  	}
   130  	buf := codec.NewBuffer(b)
   131  	buf.EncodeInt32(m.Retval)
   132  	buf.EncodeUint32(uint32(m.SwIfIndex))
   133  	return buf.Bytes(), nil
   134  }
   135  func (m *Ipip6rdAddTunnelReply) Unmarshal(b []byte) error {
   136  	buf := codec.NewBuffer(b)
   137  	m.Retval = buf.DecodeInt32()
   138  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   139  	return nil
   140  }
   141  
   142  // Ipip6rdDelTunnel defines message 'ipip_6rd_del_tunnel'.
   143  type Ipip6rdDelTunnel struct {
   144  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   145  }
   146  
   147  func (m *Ipip6rdDelTunnel) Reset()               { *m = Ipip6rdDelTunnel{} }
   148  func (*Ipip6rdDelTunnel) GetMessageName() string { return "ipip_6rd_del_tunnel" }
   149  func (*Ipip6rdDelTunnel) GetCrcString() string   { return "f9e6675e" }
   150  func (*Ipip6rdDelTunnel) GetMessageType() api.MessageType {
   151  	return api.RequestMessage
   152  }
   153  
   154  func (m *Ipip6rdDelTunnel) Size() (size int) {
   155  	if m == nil {
   156  		return 0
   157  	}
   158  	size += 4 // m.SwIfIndex
   159  	return size
   160  }
   161  func (m *Ipip6rdDelTunnel) Marshal(b []byte) ([]byte, error) {
   162  	if b == nil {
   163  		b = make([]byte, m.Size())
   164  	}
   165  	buf := codec.NewBuffer(b)
   166  	buf.EncodeUint32(uint32(m.SwIfIndex))
   167  	return buf.Bytes(), nil
   168  }
   169  func (m *Ipip6rdDelTunnel) Unmarshal(b []byte) error {
   170  	buf := codec.NewBuffer(b)
   171  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   172  	return nil
   173  }
   174  
   175  // Ipip6rdDelTunnelReply defines message 'ipip_6rd_del_tunnel_reply'.
   176  type Ipip6rdDelTunnelReply struct {
   177  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   178  }
   179  
   180  func (m *Ipip6rdDelTunnelReply) Reset()               { *m = Ipip6rdDelTunnelReply{} }
   181  func (*Ipip6rdDelTunnelReply) GetMessageName() string { return "ipip_6rd_del_tunnel_reply" }
   182  func (*Ipip6rdDelTunnelReply) GetCrcString() string   { return "e8d4e804" }
   183  func (*Ipip6rdDelTunnelReply) GetMessageType() api.MessageType {
   184  	return api.ReplyMessage
   185  }
   186  
   187  func (m *Ipip6rdDelTunnelReply) Size() (size int) {
   188  	if m == nil {
   189  		return 0
   190  	}
   191  	size += 4 // m.Retval
   192  	return size
   193  }
   194  func (m *Ipip6rdDelTunnelReply) Marshal(b []byte) ([]byte, error) {
   195  	if b == nil {
   196  		b = make([]byte, m.Size())
   197  	}
   198  	buf := codec.NewBuffer(b)
   199  	buf.EncodeInt32(m.Retval)
   200  	return buf.Bytes(), nil
   201  }
   202  func (m *Ipip6rdDelTunnelReply) Unmarshal(b []byte) error {
   203  	buf := codec.NewBuffer(b)
   204  	m.Retval = buf.DecodeInt32()
   205  	return nil
   206  }
   207  
   208  // IpipAddTunnel defines message 'ipip_add_tunnel'.
   209  type IpipAddTunnel struct {
   210  	Tunnel IpipTunnel `binapi:"ipip_tunnel,name=tunnel" json:"tunnel,omitempty"`
   211  }
   212  
   213  func (m *IpipAddTunnel) Reset()               { *m = IpipAddTunnel{} }
   214  func (*IpipAddTunnel) GetMessageName() string { return "ipip_add_tunnel" }
   215  func (*IpipAddTunnel) GetCrcString() string   { return "2ac399f5" }
   216  func (*IpipAddTunnel) GetMessageType() api.MessageType {
   217  	return api.RequestMessage
   218  }
   219  
   220  func (m *IpipAddTunnel) Size() (size int) {
   221  	if m == nil {
   222  		return 0
   223  	}
   224  	size += 4      // m.Tunnel.Instance
   225  	size += 1      // m.Tunnel.Src.Af
   226  	size += 1 * 16 // m.Tunnel.Src.Un
   227  	size += 1      // m.Tunnel.Dst.Af
   228  	size += 1 * 16 // m.Tunnel.Dst.Un
   229  	size += 4      // m.Tunnel.SwIfIndex
   230  	size += 4      // m.Tunnel.TableID
   231  	size += 1      // m.Tunnel.Flags
   232  	size += 1      // m.Tunnel.Mode
   233  	size += 1      // m.Tunnel.Dscp
   234  	return size
   235  }
   236  func (m *IpipAddTunnel) Marshal(b []byte) ([]byte, error) {
   237  	if b == nil {
   238  		b = make([]byte, m.Size())
   239  	}
   240  	buf := codec.NewBuffer(b)
   241  	buf.EncodeUint32(m.Tunnel.Instance)
   242  	buf.EncodeUint8(uint8(m.Tunnel.Src.Af))
   243  	buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 16)
   244  	buf.EncodeUint8(uint8(m.Tunnel.Dst.Af))
   245  	buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 16)
   246  	buf.EncodeUint32(uint32(m.Tunnel.SwIfIndex))
   247  	buf.EncodeUint32(m.Tunnel.TableID)
   248  	buf.EncodeUint8(uint8(m.Tunnel.Flags))
   249  	buf.EncodeUint8(uint8(m.Tunnel.Mode))
   250  	buf.EncodeUint8(uint8(m.Tunnel.Dscp))
   251  	return buf.Bytes(), nil
   252  }
   253  func (m *IpipAddTunnel) Unmarshal(b []byte) error {
   254  	buf := codec.NewBuffer(b)
   255  	m.Tunnel.Instance = buf.DecodeUint32()
   256  	m.Tunnel.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
   257  	copy(m.Tunnel.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   258  	m.Tunnel.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
   259  	copy(m.Tunnel.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   260  	m.Tunnel.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   261  	m.Tunnel.TableID = buf.DecodeUint32()
   262  	m.Tunnel.Flags = tunnel_types.TunnelEncapDecapFlags(buf.DecodeUint8())
   263  	m.Tunnel.Mode = tunnel_types.TunnelMode(buf.DecodeUint8())
   264  	m.Tunnel.Dscp = ip_types.IPDscp(buf.DecodeUint8())
   265  	return nil
   266  }
   267  
   268  // IpipAddTunnelReply defines message 'ipip_add_tunnel_reply'.
   269  type IpipAddTunnelReply struct {
   270  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   271  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   272  }
   273  
   274  func (m *IpipAddTunnelReply) Reset()               { *m = IpipAddTunnelReply{} }
   275  func (*IpipAddTunnelReply) GetMessageName() string { return "ipip_add_tunnel_reply" }
   276  func (*IpipAddTunnelReply) GetCrcString() string   { return "5383d31f" }
   277  func (*IpipAddTunnelReply) GetMessageType() api.MessageType {
   278  	return api.ReplyMessage
   279  }
   280  
   281  func (m *IpipAddTunnelReply) Size() (size int) {
   282  	if m == nil {
   283  		return 0
   284  	}
   285  	size += 4 // m.Retval
   286  	size += 4 // m.SwIfIndex
   287  	return size
   288  }
   289  func (m *IpipAddTunnelReply) Marshal(b []byte) ([]byte, error) {
   290  	if b == nil {
   291  		b = make([]byte, m.Size())
   292  	}
   293  	buf := codec.NewBuffer(b)
   294  	buf.EncodeInt32(m.Retval)
   295  	buf.EncodeUint32(uint32(m.SwIfIndex))
   296  	return buf.Bytes(), nil
   297  }
   298  func (m *IpipAddTunnelReply) Unmarshal(b []byte) error {
   299  	buf := codec.NewBuffer(b)
   300  	m.Retval = buf.DecodeInt32()
   301  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   302  	return nil
   303  }
   304  
   305  // IpipDelTunnel defines message 'ipip_del_tunnel'.
   306  type IpipDelTunnel struct {
   307  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   308  }
   309  
   310  func (m *IpipDelTunnel) Reset()               { *m = IpipDelTunnel{} }
   311  func (*IpipDelTunnel) GetMessageName() string { return "ipip_del_tunnel" }
   312  func (*IpipDelTunnel) GetCrcString() string   { return "f9e6675e" }
   313  func (*IpipDelTunnel) GetMessageType() api.MessageType {
   314  	return api.RequestMessage
   315  }
   316  
   317  func (m *IpipDelTunnel) Size() (size int) {
   318  	if m == nil {
   319  		return 0
   320  	}
   321  	size += 4 // m.SwIfIndex
   322  	return size
   323  }
   324  func (m *IpipDelTunnel) Marshal(b []byte) ([]byte, error) {
   325  	if b == nil {
   326  		b = make([]byte, m.Size())
   327  	}
   328  	buf := codec.NewBuffer(b)
   329  	buf.EncodeUint32(uint32(m.SwIfIndex))
   330  	return buf.Bytes(), nil
   331  }
   332  func (m *IpipDelTunnel) Unmarshal(b []byte) error {
   333  	buf := codec.NewBuffer(b)
   334  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   335  	return nil
   336  }
   337  
   338  // IpipDelTunnelReply defines message 'ipip_del_tunnel_reply'.
   339  type IpipDelTunnelReply struct {
   340  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   341  }
   342  
   343  func (m *IpipDelTunnelReply) Reset()               { *m = IpipDelTunnelReply{} }
   344  func (*IpipDelTunnelReply) GetMessageName() string { return "ipip_del_tunnel_reply" }
   345  func (*IpipDelTunnelReply) GetCrcString() string   { return "e8d4e804" }
   346  func (*IpipDelTunnelReply) GetMessageType() api.MessageType {
   347  	return api.ReplyMessage
   348  }
   349  
   350  func (m *IpipDelTunnelReply) Size() (size int) {
   351  	if m == nil {
   352  		return 0
   353  	}
   354  	size += 4 // m.Retval
   355  	return size
   356  }
   357  func (m *IpipDelTunnelReply) Marshal(b []byte) ([]byte, error) {
   358  	if b == nil {
   359  		b = make([]byte, m.Size())
   360  	}
   361  	buf := codec.NewBuffer(b)
   362  	buf.EncodeInt32(m.Retval)
   363  	return buf.Bytes(), nil
   364  }
   365  func (m *IpipDelTunnelReply) Unmarshal(b []byte) error {
   366  	buf := codec.NewBuffer(b)
   367  	m.Retval = buf.DecodeInt32()
   368  	return nil
   369  }
   370  
   371  // IpipTunnelDetails defines message 'ipip_tunnel_details'.
   372  type IpipTunnelDetails struct {
   373  	Tunnel IpipTunnel `binapi:"ipip_tunnel,name=tunnel" json:"tunnel,omitempty"`
   374  }
   375  
   376  func (m *IpipTunnelDetails) Reset()               { *m = IpipTunnelDetails{} }
   377  func (*IpipTunnelDetails) GetMessageName() string { return "ipip_tunnel_details" }
   378  func (*IpipTunnelDetails) GetCrcString() string   { return "d31cb34e" }
   379  func (*IpipTunnelDetails) GetMessageType() api.MessageType {
   380  	return api.ReplyMessage
   381  }
   382  
   383  func (m *IpipTunnelDetails) Size() (size int) {
   384  	if m == nil {
   385  		return 0
   386  	}
   387  	size += 4      // m.Tunnel.Instance
   388  	size += 1      // m.Tunnel.Src.Af
   389  	size += 1 * 16 // m.Tunnel.Src.Un
   390  	size += 1      // m.Tunnel.Dst.Af
   391  	size += 1 * 16 // m.Tunnel.Dst.Un
   392  	size += 4      // m.Tunnel.SwIfIndex
   393  	size += 4      // m.Tunnel.TableID
   394  	size += 1      // m.Tunnel.Flags
   395  	size += 1      // m.Tunnel.Mode
   396  	size += 1      // m.Tunnel.Dscp
   397  	return size
   398  }
   399  func (m *IpipTunnelDetails) Marshal(b []byte) ([]byte, error) {
   400  	if b == nil {
   401  		b = make([]byte, m.Size())
   402  	}
   403  	buf := codec.NewBuffer(b)
   404  	buf.EncodeUint32(m.Tunnel.Instance)
   405  	buf.EncodeUint8(uint8(m.Tunnel.Src.Af))
   406  	buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 16)
   407  	buf.EncodeUint8(uint8(m.Tunnel.Dst.Af))
   408  	buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 16)
   409  	buf.EncodeUint32(uint32(m.Tunnel.SwIfIndex))
   410  	buf.EncodeUint32(m.Tunnel.TableID)
   411  	buf.EncodeUint8(uint8(m.Tunnel.Flags))
   412  	buf.EncodeUint8(uint8(m.Tunnel.Mode))
   413  	buf.EncodeUint8(uint8(m.Tunnel.Dscp))
   414  	return buf.Bytes(), nil
   415  }
   416  func (m *IpipTunnelDetails) Unmarshal(b []byte) error {
   417  	buf := codec.NewBuffer(b)
   418  	m.Tunnel.Instance = buf.DecodeUint32()
   419  	m.Tunnel.Src.Af = ip_types.AddressFamily(buf.DecodeUint8())
   420  	copy(m.Tunnel.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   421  	m.Tunnel.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8())
   422  	copy(m.Tunnel.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   423  	m.Tunnel.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   424  	m.Tunnel.TableID = buf.DecodeUint32()
   425  	m.Tunnel.Flags = tunnel_types.TunnelEncapDecapFlags(buf.DecodeUint8())
   426  	m.Tunnel.Mode = tunnel_types.TunnelMode(buf.DecodeUint8())
   427  	m.Tunnel.Dscp = ip_types.IPDscp(buf.DecodeUint8())
   428  	return nil
   429  }
   430  
   431  // IpipTunnelDump defines message 'ipip_tunnel_dump'.
   432  type IpipTunnelDump struct {
   433  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   434  }
   435  
   436  func (m *IpipTunnelDump) Reset()               { *m = IpipTunnelDump{} }
   437  func (*IpipTunnelDump) GetMessageName() string { return "ipip_tunnel_dump" }
   438  func (*IpipTunnelDump) GetCrcString() string   { return "f9e6675e" }
   439  func (*IpipTunnelDump) GetMessageType() api.MessageType {
   440  	return api.RequestMessage
   441  }
   442  
   443  func (m *IpipTunnelDump) Size() (size int) {
   444  	if m == nil {
   445  		return 0
   446  	}
   447  	size += 4 // m.SwIfIndex
   448  	return size
   449  }
   450  func (m *IpipTunnelDump) Marshal(b []byte) ([]byte, error) {
   451  	if b == nil {
   452  		b = make([]byte, m.Size())
   453  	}
   454  	buf := codec.NewBuffer(b)
   455  	buf.EncodeUint32(uint32(m.SwIfIndex))
   456  	return buf.Bytes(), nil
   457  }
   458  func (m *IpipTunnelDump) Unmarshal(b []byte) error {
   459  	buf := codec.NewBuffer(b)
   460  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   461  	return nil
   462  }
   463  
   464  func init() { file_ipip_binapi_init() }
   465  func file_ipip_binapi_init() {
   466  	api.RegisterMessage((*Ipip6rdAddTunnel)(nil), "ipip_6rd_add_tunnel_b9ec1863")
   467  	api.RegisterMessage((*Ipip6rdAddTunnelReply)(nil), "ipip_6rd_add_tunnel_reply_5383d31f")
   468  	api.RegisterMessage((*Ipip6rdDelTunnel)(nil), "ipip_6rd_del_tunnel_f9e6675e")
   469  	api.RegisterMessage((*Ipip6rdDelTunnelReply)(nil), "ipip_6rd_del_tunnel_reply_e8d4e804")
   470  	api.RegisterMessage((*IpipAddTunnel)(nil), "ipip_add_tunnel_2ac399f5")
   471  	api.RegisterMessage((*IpipAddTunnelReply)(nil), "ipip_add_tunnel_reply_5383d31f")
   472  	api.RegisterMessage((*IpipDelTunnel)(nil), "ipip_del_tunnel_f9e6675e")
   473  	api.RegisterMessage((*IpipDelTunnelReply)(nil), "ipip_del_tunnel_reply_e8d4e804")
   474  	api.RegisterMessage((*IpipTunnelDetails)(nil), "ipip_tunnel_details_d31cb34e")
   475  	api.RegisterMessage((*IpipTunnelDump)(nil), "ipip_tunnel_dump_f9e6675e")
   476  }
   477  
   478  // Messages returns list of all messages in this module.
   479  func AllMessages() []api.Message {
   480  	return []api.Message{
   481  		(*Ipip6rdAddTunnel)(nil),
   482  		(*Ipip6rdAddTunnelReply)(nil),
   483  		(*Ipip6rdDelTunnel)(nil),
   484  		(*Ipip6rdDelTunnelReply)(nil),
   485  		(*IpipAddTunnel)(nil),
   486  		(*IpipAddTunnelReply)(nil),
   487  		(*IpipDelTunnel)(nil),
   488  		(*IpipDelTunnelReply)(nil),
   489  		(*IpipTunnelDetails)(nil),
   490  		(*IpipTunnelDump)(nil),
   491  	}
   492  }