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