github.com/edwarnicke/govpp@v0.0.0-20230130211138-14ef5d20b1d0/binapi/gtpu/gtpu.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/gtpu.api.json
     6  
     7  // Package gtpu contains generated bindings for API file gtpu.api.
     8  //
     9  // Contents:
    10  //  10 messages
    11  //
    12  package gtpu
    13  
    14  import (
    15  	api "git.fd.io/govpp.git/api"
    16  	codec "git.fd.io/govpp.git/codec"
    17  	interface_types "github.com/edwarnicke/govpp/binapi/interface_types"
    18  	ip_types "github.com/edwarnicke/govpp/binapi/ip_types"
    19  )
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the GoVPP api package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // GoVPP api package needs to be updated.
    25  const _ = api.GoVppAPIPackageIsVersion2
    26  
    27  const (
    28  	APIFile    = "gtpu"
    29  	APIVersion = "2.0.1"
    30  	VersionCrc = 0x1462473
    31  )
    32  
    33  // GtpuAddDelTunnel defines message 'gtpu_add_del_tunnel'.
    34  type GtpuAddDelTunnel struct {
    35  	IsAdd          bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
    36  	SrcAddress     ip_types.Address               `binapi:"address,name=src_address" json:"src_address,omitempty"`
    37  	DstAddress     ip_types.Address               `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
    38  	McastSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=mcast_sw_if_index" json:"mcast_sw_if_index,omitempty"`
    39  	EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
    40  	DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
    41  	Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
    42  	Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
    43  }
    44  
    45  func (m *GtpuAddDelTunnel) Reset()               { *m = GtpuAddDelTunnel{} }
    46  func (*GtpuAddDelTunnel) GetMessageName() string { return "gtpu_add_del_tunnel" }
    47  func (*GtpuAddDelTunnel) GetCrcString() string   { return "ca983a2b" }
    48  func (*GtpuAddDelTunnel) GetMessageType() api.MessageType {
    49  	return api.RequestMessage
    50  }
    51  
    52  func (m *GtpuAddDelTunnel) Size() (size int) {
    53  	if m == nil {
    54  		return 0
    55  	}
    56  	size += 1      // m.IsAdd
    57  	size += 1      // m.SrcAddress.Af
    58  	size += 1 * 16 // m.SrcAddress.Un
    59  	size += 1      // m.DstAddress.Af
    60  	size += 1 * 16 // m.DstAddress.Un
    61  	size += 4      // m.McastSwIfIndex
    62  	size += 4      // m.EncapVrfID
    63  	size += 4      // m.DecapNextIndex
    64  	size += 4      // m.Teid
    65  	size += 4      // m.Tteid
    66  	return size
    67  }
    68  func (m *GtpuAddDelTunnel) Marshal(b []byte) ([]byte, error) {
    69  	if b == nil {
    70  		b = make([]byte, m.Size())
    71  	}
    72  	buf := codec.NewBuffer(b)
    73  	buf.EncodeBool(m.IsAdd)
    74  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
    75  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
    76  	buf.EncodeUint8(uint8(m.DstAddress.Af))
    77  	buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
    78  	buf.EncodeUint32(uint32(m.McastSwIfIndex))
    79  	buf.EncodeUint32(m.EncapVrfID)
    80  	buf.EncodeUint32(m.DecapNextIndex)
    81  	buf.EncodeUint32(m.Teid)
    82  	buf.EncodeUint32(m.Tteid)
    83  	return buf.Bytes(), nil
    84  }
    85  func (m *GtpuAddDelTunnel) Unmarshal(b []byte) error {
    86  	buf := codec.NewBuffer(b)
    87  	m.IsAdd = buf.DecodeBool()
    88  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
    89  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
    90  	m.DstAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
    91  	copy(m.DstAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
    92  	m.McastSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
    93  	m.EncapVrfID = buf.DecodeUint32()
    94  	m.DecapNextIndex = buf.DecodeUint32()
    95  	m.Teid = buf.DecodeUint32()
    96  	m.Tteid = buf.DecodeUint32()
    97  	return nil
    98  }
    99  
   100  // GtpuAddDelTunnelReply defines message 'gtpu_add_del_tunnel_reply'.
   101  type GtpuAddDelTunnelReply struct {
   102  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   103  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   104  }
   105  
   106  func (m *GtpuAddDelTunnelReply) Reset()               { *m = GtpuAddDelTunnelReply{} }
   107  func (*GtpuAddDelTunnelReply) GetMessageName() string { return "gtpu_add_del_tunnel_reply" }
   108  func (*GtpuAddDelTunnelReply) GetCrcString() string   { return "5383d31f" }
   109  func (*GtpuAddDelTunnelReply) GetMessageType() api.MessageType {
   110  	return api.ReplyMessage
   111  }
   112  
   113  func (m *GtpuAddDelTunnelReply) Size() (size int) {
   114  	if m == nil {
   115  		return 0
   116  	}
   117  	size += 4 // m.Retval
   118  	size += 4 // m.SwIfIndex
   119  	return size
   120  }
   121  func (m *GtpuAddDelTunnelReply) Marshal(b []byte) ([]byte, error) {
   122  	if b == nil {
   123  		b = make([]byte, m.Size())
   124  	}
   125  	buf := codec.NewBuffer(b)
   126  	buf.EncodeInt32(m.Retval)
   127  	buf.EncodeUint32(uint32(m.SwIfIndex))
   128  	return buf.Bytes(), nil
   129  }
   130  func (m *GtpuAddDelTunnelReply) Unmarshal(b []byte) error {
   131  	buf := codec.NewBuffer(b)
   132  	m.Retval = buf.DecodeInt32()
   133  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   134  	return nil
   135  }
   136  
   137  // GtpuOffloadRx defines message 'gtpu_offload_rx'.
   138  type GtpuOffloadRx struct {
   139  	HwIfIndex uint32 `binapi:"u32,name=hw_if_index" json:"hw_if_index,omitempty"`
   140  	SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
   141  	Enable    uint8  `binapi:"u8,name=enable" json:"enable,omitempty"`
   142  }
   143  
   144  func (m *GtpuOffloadRx) Reset()               { *m = GtpuOffloadRx{} }
   145  func (*GtpuOffloadRx) GetMessageName() string { return "gtpu_offload_rx" }
   146  func (*GtpuOffloadRx) GetCrcString() string   { return "f0b08786" }
   147  func (*GtpuOffloadRx) GetMessageType() api.MessageType {
   148  	return api.RequestMessage
   149  }
   150  
   151  func (m *GtpuOffloadRx) Size() (size int) {
   152  	if m == nil {
   153  		return 0
   154  	}
   155  	size += 4 // m.HwIfIndex
   156  	size += 4 // m.SwIfIndex
   157  	size += 1 // m.Enable
   158  	return size
   159  }
   160  func (m *GtpuOffloadRx) Marshal(b []byte) ([]byte, error) {
   161  	if b == nil {
   162  		b = make([]byte, m.Size())
   163  	}
   164  	buf := codec.NewBuffer(b)
   165  	buf.EncodeUint32(m.HwIfIndex)
   166  	buf.EncodeUint32(m.SwIfIndex)
   167  	buf.EncodeUint8(m.Enable)
   168  	return buf.Bytes(), nil
   169  }
   170  func (m *GtpuOffloadRx) Unmarshal(b []byte) error {
   171  	buf := codec.NewBuffer(b)
   172  	m.HwIfIndex = buf.DecodeUint32()
   173  	m.SwIfIndex = buf.DecodeUint32()
   174  	m.Enable = buf.DecodeUint8()
   175  	return nil
   176  }
   177  
   178  // GtpuOffloadRxReply defines message 'gtpu_offload_rx_reply'.
   179  type GtpuOffloadRxReply struct {
   180  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   181  }
   182  
   183  func (m *GtpuOffloadRxReply) Reset()               { *m = GtpuOffloadRxReply{} }
   184  func (*GtpuOffloadRxReply) GetMessageName() string { return "gtpu_offload_rx_reply" }
   185  func (*GtpuOffloadRxReply) GetCrcString() string   { return "e8d4e804" }
   186  func (*GtpuOffloadRxReply) GetMessageType() api.MessageType {
   187  	return api.ReplyMessage
   188  }
   189  
   190  func (m *GtpuOffloadRxReply) Size() (size int) {
   191  	if m == nil {
   192  		return 0
   193  	}
   194  	size += 4 // m.Retval
   195  	return size
   196  }
   197  func (m *GtpuOffloadRxReply) Marshal(b []byte) ([]byte, error) {
   198  	if b == nil {
   199  		b = make([]byte, m.Size())
   200  	}
   201  	buf := codec.NewBuffer(b)
   202  	buf.EncodeInt32(m.Retval)
   203  	return buf.Bytes(), nil
   204  }
   205  func (m *GtpuOffloadRxReply) Unmarshal(b []byte) error {
   206  	buf := codec.NewBuffer(b)
   207  	m.Retval = buf.DecodeInt32()
   208  	return nil
   209  }
   210  
   211  // GtpuTunnelDetails defines message 'gtpu_tunnel_details'.
   212  type GtpuTunnelDetails struct {
   213  	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   214  	SrcAddress     ip_types.Address               `binapi:"address,name=src_address" json:"src_address,omitempty"`
   215  	DstAddress     ip_types.Address               `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
   216  	McastSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=mcast_sw_if_index" json:"mcast_sw_if_index,omitempty"`
   217  	EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
   218  	DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
   219  	Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
   220  	Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
   221  }
   222  
   223  func (m *GtpuTunnelDetails) Reset()               { *m = GtpuTunnelDetails{} }
   224  func (*GtpuTunnelDetails) GetMessageName() string { return "gtpu_tunnel_details" }
   225  func (*GtpuTunnelDetails) GetCrcString() string   { return "27f434ae" }
   226  func (*GtpuTunnelDetails) GetMessageType() api.MessageType {
   227  	return api.ReplyMessage
   228  }
   229  
   230  func (m *GtpuTunnelDetails) Size() (size int) {
   231  	if m == nil {
   232  		return 0
   233  	}
   234  	size += 4      // m.SwIfIndex
   235  	size += 1      // m.SrcAddress.Af
   236  	size += 1 * 16 // m.SrcAddress.Un
   237  	size += 1      // m.DstAddress.Af
   238  	size += 1 * 16 // m.DstAddress.Un
   239  	size += 4      // m.McastSwIfIndex
   240  	size += 4      // m.EncapVrfID
   241  	size += 4      // m.DecapNextIndex
   242  	size += 4      // m.Teid
   243  	size += 4      // m.Tteid
   244  	return size
   245  }
   246  func (m *GtpuTunnelDetails) Marshal(b []byte) ([]byte, error) {
   247  	if b == nil {
   248  		b = make([]byte, m.Size())
   249  	}
   250  	buf := codec.NewBuffer(b)
   251  	buf.EncodeUint32(uint32(m.SwIfIndex))
   252  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
   253  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
   254  	buf.EncodeUint8(uint8(m.DstAddress.Af))
   255  	buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
   256  	buf.EncodeUint32(uint32(m.McastSwIfIndex))
   257  	buf.EncodeUint32(m.EncapVrfID)
   258  	buf.EncodeUint32(m.DecapNextIndex)
   259  	buf.EncodeUint32(m.Teid)
   260  	buf.EncodeUint32(m.Tteid)
   261  	return buf.Bytes(), nil
   262  }
   263  func (m *GtpuTunnelDetails) Unmarshal(b []byte) error {
   264  	buf := codec.NewBuffer(b)
   265  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   266  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   267  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   268  	m.DstAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   269  	copy(m.DstAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   270  	m.McastSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   271  	m.EncapVrfID = buf.DecodeUint32()
   272  	m.DecapNextIndex = buf.DecodeUint32()
   273  	m.Teid = buf.DecodeUint32()
   274  	m.Tteid = buf.DecodeUint32()
   275  	return nil
   276  }
   277  
   278  // GtpuTunnelDump defines message 'gtpu_tunnel_dump'.
   279  type GtpuTunnelDump struct {
   280  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   281  }
   282  
   283  func (m *GtpuTunnelDump) Reset()               { *m = GtpuTunnelDump{} }
   284  func (*GtpuTunnelDump) GetMessageName() string { return "gtpu_tunnel_dump" }
   285  func (*GtpuTunnelDump) GetCrcString() string   { return "f9e6675e" }
   286  func (*GtpuTunnelDump) GetMessageType() api.MessageType {
   287  	return api.RequestMessage
   288  }
   289  
   290  func (m *GtpuTunnelDump) Size() (size int) {
   291  	if m == nil {
   292  		return 0
   293  	}
   294  	size += 4 // m.SwIfIndex
   295  	return size
   296  }
   297  func (m *GtpuTunnelDump) Marshal(b []byte) ([]byte, error) {
   298  	if b == nil {
   299  		b = make([]byte, m.Size())
   300  	}
   301  	buf := codec.NewBuffer(b)
   302  	buf.EncodeUint32(uint32(m.SwIfIndex))
   303  	return buf.Bytes(), nil
   304  }
   305  func (m *GtpuTunnelDump) Unmarshal(b []byte) error {
   306  	buf := codec.NewBuffer(b)
   307  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   308  	return nil
   309  }
   310  
   311  // GtpuTunnelUpdateTteid defines message 'gtpu_tunnel_update_tteid'.
   312  type GtpuTunnelUpdateTteid struct {
   313  	DstAddress ip_types.Address `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
   314  	EncapVrfID uint32           `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
   315  	Teid       uint32           `binapi:"u32,name=teid" json:"teid,omitempty"`
   316  	Tteid      uint32           `binapi:"u32,name=tteid" json:"tteid,omitempty"`
   317  }
   318  
   319  func (m *GtpuTunnelUpdateTteid) Reset()               { *m = GtpuTunnelUpdateTteid{} }
   320  func (*GtpuTunnelUpdateTteid) GetMessageName() string { return "gtpu_tunnel_update_tteid" }
   321  func (*GtpuTunnelUpdateTteid) GetCrcString() string   { return "79f33816" }
   322  func (*GtpuTunnelUpdateTteid) GetMessageType() api.MessageType {
   323  	return api.RequestMessage
   324  }
   325  
   326  func (m *GtpuTunnelUpdateTteid) Size() (size int) {
   327  	if m == nil {
   328  		return 0
   329  	}
   330  	size += 1      // m.DstAddress.Af
   331  	size += 1 * 16 // m.DstAddress.Un
   332  	size += 4      // m.EncapVrfID
   333  	size += 4      // m.Teid
   334  	size += 4      // m.Tteid
   335  	return size
   336  }
   337  func (m *GtpuTunnelUpdateTteid) Marshal(b []byte) ([]byte, error) {
   338  	if b == nil {
   339  		b = make([]byte, m.Size())
   340  	}
   341  	buf := codec.NewBuffer(b)
   342  	buf.EncodeUint8(uint8(m.DstAddress.Af))
   343  	buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
   344  	buf.EncodeUint32(m.EncapVrfID)
   345  	buf.EncodeUint32(m.Teid)
   346  	buf.EncodeUint32(m.Tteid)
   347  	return buf.Bytes(), nil
   348  }
   349  func (m *GtpuTunnelUpdateTteid) Unmarshal(b []byte) error {
   350  	buf := codec.NewBuffer(b)
   351  	m.DstAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   352  	copy(m.DstAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   353  	m.EncapVrfID = buf.DecodeUint32()
   354  	m.Teid = buf.DecodeUint32()
   355  	m.Tteid = buf.DecodeUint32()
   356  	return nil
   357  }
   358  
   359  // GtpuTunnelUpdateTteidReply defines message 'gtpu_tunnel_update_tteid_reply'.
   360  type GtpuTunnelUpdateTteidReply struct {
   361  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   362  }
   363  
   364  func (m *GtpuTunnelUpdateTteidReply) Reset()               { *m = GtpuTunnelUpdateTteidReply{} }
   365  func (*GtpuTunnelUpdateTteidReply) GetMessageName() string { return "gtpu_tunnel_update_tteid_reply" }
   366  func (*GtpuTunnelUpdateTteidReply) GetCrcString() string   { return "e8d4e804" }
   367  func (*GtpuTunnelUpdateTteidReply) GetMessageType() api.MessageType {
   368  	return api.ReplyMessage
   369  }
   370  
   371  func (m *GtpuTunnelUpdateTteidReply) Size() (size int) {
   372  	if m == nil {
   373  		return 0
   374  	}
   375  	size += 4 // m.Retval
   376  	return size
   377  }
   378  func (m *GtpuTunnelUpdateTteidReply) Marshal(b []byte) ([]byte, error) {
   379  	if b == nil {
   380  		b = make([]byte, m.Size())
   381  	}
   382  	buf := codec.NewBuffer(b)
   383  	buf.EncodeInt32(m.Retval)
   384  	return buf.Bytes(), nil
   385  }
   386  func (m *GtpuTunnelUpdateTteidReply) Unmarshal(b []byte) error {
   387  	buf := codec.NewBuffer(b)
   388  	m.Retval = buf.DecodeInt32()
   389  	return nil
   390  }
   391  
   392  // SwInterfaceSetGtpuBypass defines message 'sw_interface_set_gtpu_bypass'.
   393  type SwInterfaceSetGtpuBypass struct {
   394  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   395  	IsIPv6    bool                           `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
   396  	Enable    bool                           `binapi:"bool,name=enable" json:"enable,omitempty"`
   397  }
   398  
   399  func (m *SwInterfaceSetGtpuBypass) Reset()               { *m = SwInterfaceSetGtpuBypass{} }
   400  func (*SwInterfaceSetGtpuBypass) GetMessageName() string { return "sw_interface_set_gtpu_bypass" }
   401  func (*SwInterfaceSetGtpuBypass) GetCrcString() string   { return "65247409" }
   402  func (*SwInterfaceSetGtpuBypass) GetMessageType() api.MessageType {
   403  	return api.RequestMessage
   404  }
   405  
   406  func (m *SwInterfaceSetGtpuBypass) Size() (size int) {
   407  	if m == nil {
   408  		return 0
   409  	}
   410  	size += 4 // m.SwIfIndex
   411  	size += 1 // m.IsIPv6
   412  	size += 1 // m.Enable
   413  	return size
   414  }
   415  func (m *SwInterfaceSetGtpuBypass) Marshal(b []byte) ([]byte, error) {
   416  	if b == nil {
   417  		b = make([]byte, m.Size())
   418  	}
   419  	buf := codec.NewBuffer(b)
   420  	buf.EncodeUint32(uint32(m.SwIfIndex))
   421  	buf.EncodeBool(m.IsIPv6)
   422  	buf.EncodeBool(m.Enable)
   423  	return buf.Bytes(), nil
   424  }
   425  func (m *SwInterfaceSetGtpuBypass) Unmarshal(b []byte) error {
   426  	buf := codec.NewBuffer(b)
   427  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   428  	m.IsIPv6 = buf.DecodeBool()
   429  	m.Enable = buf.DecodeBool()
   430  	return nil
   431  }
   432  
   433  // SwInterfaceSetGtpuBypassReply defines message 'sw_interface_set_gtpu_bypass_reply'.
   434  type SwInterfaceSetGtpuBypassReply struct {
   435  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   436  }
   437  
   438  func (m *SwInterfaceSetGtpuBypassReply) Reset() { *m = SwInterfaceSetGtpuBypassReply{} }
   439  func (*SwInterfaceSetGtpuBypassReply) GetMessageName() string {
   440  	return "sw_interface_set_gtpu_bypass_reply"
   441  }
   442  func (*SwInterfaceSetGtpuBypassReply) GetCrcString() string { return "e8d4e804" }
   443  func (*SwInterfaceSetGtpuBypassReply) GetMessageType() api.MessageType {
   444  	return api.ReplyMessage
   445  }
   446  
   447  func (m *SwInterfaceSetGtpuBypassReply) Size() (size int) {
   448  	if m == nil {
   449  		return 0
   450  	}
   451  	size += 4 // m.Retval
   452  	return size
   453  }
   454  func (m *SwInterfaceSetGtpuBypassReply) Marshal(b []byte) ([]byte, error) {
   455  	if b == nil {
   456  		b = make([]byte, m.Size())
   457  	}
   458  	buf := codec.NewBuffer(b)
   459  	buf.EncodeInt32(m.Retval)
   460  	return buf.Bytes(), nil
   461  }
   462  func (m *SwInterfaceSetGtpuBypassReply) Unmarshal(b []byte) error {
   463  	buf := codec.NewBuffer(b)
   464  	m.Retval = buf.DecodeInt32()
   465  	return nil
   466  }
   467  
   468  func init() { file_gtpu_binapi_init() }
   469  func file_gtpu_binapi_init() {
   470  	api.RegisterMessage((*GtpuAddDelTunnel)(nil), "gtpu_add_del_tunnel_ca983a2b")
   471  	api.RegisterMessage((*GtpuAddDelTunnelReply)(nil), "gtpu_add_del_tunnel_reply_5383d31f")
   472  	api.RegisterMessage((*GtpuOffloadRx)(nil), "gtpu_offload_rx_f0b08786")
   473  	api.RegisterMessage((*GtpuOffloadRxReply)(nil), "gtpu_offload_rx_reply_e8d4e804")
   474  	api.RegisterMessage((*GtpuTunnelDetails)(nil), "gtpu_tunnel_details_27f434ae")
   475  	api.RegisterMessage((*GtpuTunnelDump)(nil), "gtpu_tunnel_dump_f9e6675e")
   476  	api.RegisterMessage((*GtpuTunnelUpdateTteid)(nil), "gtpu_tunnel_update_tteid_79f33816")
   477  	api.RegisterMessage((*GtpuTunnelUpdateTteidReply)(nil), "gtpu_tunnel_update_tteid_reply_e8d4e804")
   478  	api.RegisterMessage((*SwInterfaceSetGtpuBypass)(nil), "sw_interface_set_gtpu_bypass_65247409")
   479  	api.RegisterMessage((*SwInterfaceSetGtpuBypassReply)(nil), "sw_interface_set_gtpu_bypass_reply_e8d4e804")
   480  }
   481  
   482  // Messages returns list of all messages in this module.
   483  func AllMessages() []api.Message {
   484  	return []api.Message{
   485  		(*GtpuAddDelTunnel)(nil),
   486  		(*GtpuAddDelTunnelReply)(nil),
   487  		(*GtpuOffloadRx)(nil),
   488  		(*GtpuOffloadRxReply)(nil),
   489  		(*GtpuTunnelDetails)(nil),
   490  		(*GtpuTunnelDump)(nil),
   491  		(*GtpuTunnelUpdateTteid)(nil),
   492  		(*GtpuTunnelUpdateTteidReply)(nil),
   493  		(*SwInterfaceSetGtpuBypass)(nil),
   494  		(*SwInterfaceSetGtpuBypassReply)(nil),
   495  	}
   496  }