go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2106/ipfix_export/ipfix_export.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 3 // Package ipfix_export contains generated bindings for API file ipfix_export.api. 4 // 5 // Contents: 6 // - 14 messages 7 package ipfix_export 8 9 import ( 10 api "go.fd.io/govpp/api" 11 codec "go.fd.io/govpp/codec" 12 ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/ip_types" 13 ) 14 15 // This is a compile-time assertion to ensure that this generated file 16 // is compatible with the GoVPP api package it is being compiled against. 17 // A compilation error at this line likely means your copy of the 18 // GoVPP api package needs to be updated. 19 const _ = api.GoVppAPIPackageIsVersion2 20 21 const ( 22 APIFile = "ipfix_export" 23 APIVersion = "2.0.3" 24 VersionCrc = 0x6ae99522 25 ) 26 27 // IpfixClassifyStreamDetails defines message 'ipfix_classify_stream_details'. 28 type IpfixClassifyStreamDetails struct { 29 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` 30 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` 31 } 32 33 func (m *IpfixClassifyStreamDetails) Reset() { *m = IpfixClassifyStreamDetails{} } 34 func (*IpfixClassifyStreamDetails) GetMessageName() string { return "ipfix_classify_stream_details" } 35 func (*IpfixClassifyStreamDetails) GetCrcString() string { return "2903539d" } 36 func (*IpfixClassifyStreamDetails) GetMessageType() api.MessageType { 37 return api.ReplyMessage 38 } 39 40 func (m *IpfixClassifyStreamDetails) Size() (size int) { 41 if m == nil { 42 return 0 43 } 44 size += 4 // m.DomainID 45 size += 2 // m.SrcPort 46 return size 47 } 48 func (m *IpfixClassifyStreamDetails) Marshal(b []byte) ([]byte, error) { 49 if b == nil { 50 b = make([]byte, m.Size()) 51 } 52 buf := codec.NewBuffer(b) 53 buf.EncodeUint32(m.DomainID) 54 buf.EncodeUint16(m.SrcPort) 55 return buf.Bytes(), nil 56 } 57 func (m *IpfixClassifyStreamDetails) Unmarshal(b []byte) error { 58 buf := codec.NewBuffer(b) 59 m.DomainID = buf.DecodeUint32() 60 m.SrcPort = buf.DecodeUint16() 61 return nil 62 } 63 64 // IpfixClassifyStreamDump defines message 'ipfix_classify_stream_dump'. 65 type IpfixClassifyStreamDump struct{} 66 67 func (m *IpfixClassifyStreamDump) Reset() { *m = IpfixClassifyStreamDump{} } 68 func (*IpfixClassifyStreamDump) GetMessageName() string { return "ipfix_classify_stream_dump" } 69 func (*IpfixClassifyStreamDump) GetCrcString() string { return "51077d14" } 70 func (*IpfixClassifyStreamDump) GetMessageType() api.MessageType { 71 return api.RequestMessage 72 } 73 74 func (m *IpfixClassifyStreamDump) Size() (size int) { 75 if m == nil { 76 return 0 77 } 78 return size 79 } 80 func (m *IpfixClassifyStreamDump) Marshal(b []byte) ([]byte, error) { 81 if b == nil { 82 b = make([]byte, m.Size()) 83 } 84 buf := codec.NewBuffer(b) 85 return buf.Bytes(), nil 86 } 87 func (m *IpfixClassifyStreamDump) Unmarshal(b []byte) error { 88 return nil 89 } 90 91 // IpfixClassifyTableAddDel defines message 'ipfix_classify_table_add_del'. 92 type IpfixClassifyTableAddDel struct { 93 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` 94 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"` 95 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"` 96 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 97 } 98 99 func (m *IpfixClassifyTableAddDel) Reset() { *m = IpfixClassifyTableAddDel{} } 100 func (*IpfixClassifyTableAddDel) GetMessageName() string { return "ipfix_classify_table_add_del" } 101 func (*IpfixClassifyTableAddDel) GetCrcString() string { return "3e449bb9" } 102 func (*IpfixClassifyTableAddDel) GetMessageType() api.MessageType { 103 return api.RequestMessage 104 } 105 106 func (m *IpfixClassifyTableAddDel) Size() (size int) { 107 if m == nil { 108 return 0 109 } 110 size += 4 // m.TableID 111 size += 1 // m.IPVersion 112 size += 1 // m.TransportProtocol 113 size += 1 // m.IsAdd 114 return size 115 } 116 func (m *IpfixClassifyTableAddDel) Marshal(b []byte) ([]byte, error) { 117 if b == nil { 118 b = make([]byte, m.Size()) 119 } 120 buf := codec.NewBuffer(b) 121 buf.EncodeUint32(m.TableID) 122 buf.EncodeUint8(uint8(m.IPVersion)) 123 buf.EncodeUint8(uint8(m.TransportProtocol)) 124 buf.EncodeBool(m.IsAdd) 125 return buf.Bytes(), nil 126 } 127 func (m *IpfixClassifyTableAddDel) Unmarshal(b []byte) error { 128 buf := codec.NewBuffer(b) 129 m.TableID = buf.DecodeUint32() 130 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8()) 131 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8()) 132 m.IsAdd = buf.DecodeBool() 133 return nil 134 } 135 136 // IpfixClassifyTableAddDelReply defines message 'ipfix_classify_table_add_del_reply'. 137 type IpfixClassifyTableAddDelReply struct { 138 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 139 } 140 141 func (m *IpfixClassifyTableAddDelReply) Reset() { *m = IpfixClassifyTableAddDelReply{} } 142 func (*IpfixClassifyTableAddDelReply) GetMessageName() string { 143 return "ipfix_classify_table_add_del_reply" 144 } 145 func (*IpfixClassifyTableAddDelReply) GetCrcString() string { return "e8d4e804" } 146 func (*IpfixClassifyTableAddDelReply) GetMessageType() api.MessageType { 147 return api.ReplyMessage 148 } 149 150 func (m *IpfixClassifyTableAddDelReply) Size() (size int) { 151 if m == nil { 152 return 0 153 } 154 size += 4 // m.Retval 155 return size 156 } 157 func (m *IpfixClassifyTableAddDelReply) Marshal(b []byte) ([]byte, error) { 158 if b == nil { 159 b = make([]byte, m.Size()) 160 } 161 buf := codec.NewBuffer(b) 162 buf.EncodeInt32(m.Retval) 163 return buf.Bytes(), nil 164 } 165 func (m *IpfixClassifyTableAddDelReply) Unmarshal(b []byte) error { 166 buf := codec.NewBuffer(b) 167 m.Retval = buf.DecodeInt32() 168 return nil 169 } 170 171 // IpfixClassifyTableDetails defines message 'ipfix_classify_table_details'. 172 type IpfixClassifyTableDetails struct { 173 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` 174 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"` 175 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"` 176 } 177 178 func (m *IpfixClassifyTableDetails) Reset() { *m = IpfixClassifyTableDetails{} } 179 func (*IpfixClassifyTableDetails) GetMessageName() string { return "ipfix_classify_table_details" } 180 func (*IpfixClassifyTableDetails) GetCrcString() string { return "1af8c28c" } 181 func (*IpfixClassifyTableDetails) GetMessageType() api.MessageType { 182 return api.ReplyMessage 183 } 184 185 func (m *IpfixClassifyTableDetails) Size() (size int) { 186 if m == nil { 187 return 0 188 } 189 size += 4 // m.TableID 190 size += 1 // m.IPVersion 191 size += 1 // m.TransportProtocol 192 return size 193 } 194 func (m *IpfixClassifyTableDetails) Marshal(b []byte) ([]byte, error) { 195 if b == nil { 196 b = make([]byte, m.Size()) 197 } 198 buf := codec.NewBuffer(b) 199 buf.EncodeUint32(m.TableID) 200 buf.EncodeUint8(uint8(m.IPVersion)) 201 buf.EncodeUint8(uint8(m.TransportProtocol)) 202 return buf.Bytes(), nil 203 } 204 func (m *IpfixClassifyTableDetails) Unmarshal(b []byte) error { 205 buf := codec.NewBuffer(b) 206 m.TableID = buf.DecodeUint32() 207 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8()) 208 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8()) 209 return nil 210 } 211 212 // IpfixClassifyTableDump defines message 'ipfix_classify_table_dump'. 213 type IpfixClassifyTableDump struct{} 214 215 func (m *IpfixClassifyTableDump) Reset() { *m = IpfixClassifyTableDump{} } 216 func (*IpfixClassifyTableDump) GetMessageName() string { return "ipfix_classify_table_dump" } 217 func (*IpfixClassifyTableDump) GetCrcString() string { return "51077d14" } 218 func (*IpfixClassifyTableDump) GetMessageType() api.MessageType { 219 return api.RequestMessage 220 } 221 222 func (m *IpfixClassifyTableDump) Size() (size int) { 223 if m == nil { 224 return 0 225 } 226 return size 227 } 228 func (m *IpfixClassifyTableDump) Marshal(b []byte) ([]byte, error) { 229 if b == nil { 230 b = make([]byte, m.Size()) 231 } 232 buf := codec.NewBuffer(b) 233 return buf.Bytes(), nil 234 } 235 func (m *IpfixClassifyTableDump) Unmarshal(b []byte) error { 236 return nil 237 } 238 239 // IpfixExporterDetails defines message 'ipfix_exporter_details'. 240 type IpfixExporterDetails struct { 241 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 242 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 243 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 244 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 245 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 246 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 247 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 248 } 249 250 func (m *IpfixExporterDetails) Reset() { *m = IpfixExporterDetails{} } 251 func (*IpfixExporterDetails) GetMessageName() string { return "ipfix_exporter_details" } 252 func (*IpfixExporterDetails) GetCrcString() string { return "0dedbfe4" } 253 func (*IpfixExporterDetails) GetMessageType() api.MessageType { 254 return api.ReplyMessage 255 } 256 257 func (m *IpfixExporterDetails) Size() (size int) { 258 if m == nil { 259 return 0 260 } 261 size += 1 // m.CollectorAddress.Af 262 size += 1 * 16 // m.CollectorAddress.Un 263 size += 2 // m.CollectorPort 264 size += 1 // m.SrcAddress.Af 265 size += 1 * 16 // m.SrcAddress.Un 266 size += 4 // m.VrfID 267 size += 4 // m.PathMtu 268 size += 4 // m.TemplateInterval 269 size += 1 // m.UDPChecksum 270 return size 271 } 272 func (m *IpfixExporterDetails) Marshal(b []byte) ([]byte, error) { 273 if b == nil { 274 b = make([]byte, m.Size()) 275 } 276 buf := codec.NewBuffer(b) 277 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 278 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 279 buf.EncodeUint16(m.CollectorPort) 280 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 281 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 282 buf.EncodeUint32(m.VrfID) 283 buf.EncodeUint32(m.PathMtu) 284 buf.EncodeUint32(m.TemplateInterval) 285 buf.EncodeBool(m.UDPChecksum) 286 return buf.Bytes(), nil 287 } 288 func (m *IpfixExporterDetails) Unmarshal(b []byte) error { 289 buf := codec.NewBuffer(b) 290 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 291 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 292 m.CollectorPort = buf.DecodeUint16() 293 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 294 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 295 m.VrfID = buf.DecodeUint32() 296 m.PathMtu = buf.DecodeUint32() 297 m.TemplateInterval = buf.DecodeUint32() 298 m.UDPChecksum = buf.DecodeBool() 299 return nil 300 } 301 302 // IpfixExporterDump defines message 'ipfix_exporter_dump'. 303 type IpfixExporterDump struct{} 304 305 func (m *IpfixExporterDump) Reset() { *m = IpfixExporterDump{} } 306 func (*IpfixExporterDump) GetMessageName() string { return "ipfix_exporter_dump" } 307 func (*IpfixExporterDump) GetCrcString() string { return "51077d14" } 308 func (*IpfixExporterDump) GetMessageType() api.MessageType { 309 return api.RequestMessage 310 } 311 312 func (m *IpfixExporterDump) Size() (size int) { 313 if m == nil { 314 return 0 315 } 316 return size 317 } 318 func (m *IpfixExporterDump) Marshal(b []byte) ([]byte, error) { 319 if b == nil { 320 b = make([]byte, m.Size()) 321 } 322 buf := codec.NewBuffer(b) 323 return buf.Bytes(), nil 324 } 325 func (m *IpfixExporterDump) Unmarshal(b []byte) error { 326 return nil 327 } 328 329 // IpfixFlush defines message 'ipfix_flush'. 330 type IpfixFlush struct{} 331 332 func (m *IpfixFlush) Reset() { *m = IpfixFlush{} } 333 func (*IpfixFlush) GetMessageName() string { return "ipfix_flush" } 334 func (*IpfixFlush) GetCrcString() string { return "51077d14" } 335 func (*IpfixFlush) GetMessageType() api.MessageType { 336 return api.RequestMessage 337 } 338 339 func (m *IpfixFlush) Size() (size int) { 340 if m == nil { 341 return 0 342 } 343 return size 344 } 345 func (m *IpfixFlush) Marshal(b []byte) ([]byte, error) { 346 if b == nil { 347 b = make([]byte, m.Size()) 348 } 349 buf := codec.NewBuffer(b) 350 return buf.Bytes(), nil 351 } 352 func (m *IpfixFlush) Unmarshal(b []byte) error { 353 return nil 354 } 355 356 // IpfixFlushReply defines message 'ipfix_flush_reply'. 357 type IpfixFlushReply struct { 358 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 359 } 360 361 func (m *IpfixFlushReply) Reset() { *m = IpfixFlushReply{} } 362 func (*IpfixFlushReply) GetMessageName() string { return "ipfix_flush_reply" } 363 func (*IpfixFlushReply) GetCrcString() string { return "e8d4e804" } 364 func (*IpfixFlushReply) GetMessageType() api.MessageType { 365 return api.ReplyMessage 366 } 367 368 func (m *IpfixFlushReply) Size() (size int) { 369 if m == nil { 370 return 0 371 } 372 size += 4 // m.Retval 373 return size 374 } 375 func (m *IpfixFlushReply) Marshal(b []byte) ([]byte, error) { 376 if b == nil { 377 b = make([]byte, m.Size()) 378 } 379 buf := codec.NewBuffer(b) 380 buf.EncodeInt32(m.Retval) 381 return buf.Bytes(), nil 382 } 383 func (m *IpfixFlushReply) Unmarshal(b []byte) error { 384 buf := codec.NewBuffer(b) 385 m.Retval = buf.DecodeInt32() 386 return nil 387 } 388 389 // SetIpfixClassifyStream defines message 'set_ipfix_classify_stream'. 390 type SetIpfixClassifyStream struct { 391 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` 392 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` 393 } 394 395 func (m *SetIpfixClassifyStream) Reset() { *m = SetIpfixClassifyStream{} } 396 func (*SetIpfixClassifyStream) GetMessageName() string { return "set_ipfix_classify_stream" } 397 func (*SetIpfixClassifyStream) GetCrcString() string { return "c9cbe053" } 398 func (*SetIpfixClassifyStream) GetMessageType() api.MessageType { 399 return api.RequestMessage 400 } 401 402 func (m *SetIpfixClassifyStream) Size() (size int) { 403 if m == nil { 404 return 0 405 } 406 size += 4 // m.DomainID 407 size += 2 // m.SrcPort 408 return size 409 } 410 func (m *SetIpfixClassifyStream) Marshal(b []byte) ([]byte, error) { 411 if b == nil { 412 b = make([]byte, m.Size()) 413 } 414 buf := codec.NewBuffer(b) 415 buf.EncodeUint32(m.DomainID) 416 buf.EncodeUint16(m.SrcPort) 417 return buf.Bytes(), nil 418 } 419 func (m *SetIpfixClassifyStream) Unmarshal(b []byte) error { 420 buf := codec.NewBuffer(b) 421 m.DomainID = buf.DecodeUint32() 422 m.SrcPort = buf.DecodeUint16() 423 return nil 424 } 425 426 // SetIpfixClassifyStreamReply defines message 'set_ipfix_classify_stream_reply'. 427 type SetIpfixClassifyStreamReply struct { 428 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 429 } 430 431 func (m *SetIpfixClassifyStreamReply) Reset() { *m = SetIpfixClassifyStreamReply{} } 432 func (*SetIpfixClassifyStreamReply) GetMessageName() string { return "set_ipfix_classify_stream_reply" } 433 func (*SetIpfixClassifyStreamReply) GetCrcString() string { return "e8d4e804" } 434 func (*SetIpfixClassifyStreamReply) GetMessageType() api.MessageType { 435 return api.ReplyMessage 436 } 437 438 func (m *SetIpfixClassifyStreamReply) Size() (size int) { 439 if m == nil { 440 return 0 441 } 442 size += 4 // m.Retval 443 return size 444 } 445 func (m *SetIpfixClassifyStreamReply) Marshal(b []byte) ([]byte, error) { 446 if b == nil { 447 b = make([]byte, m.Size()) 448 } 449 buf := codec.NewBuffer(b) 450 buf.EncodeInt32(m.Retval) 451 return buf.Bytes(), nil 452 } 453 func (m *SetIpfixClassifyStreamReply) Unmarshal(b []byte) error { 454 buf := codec.NewBuffer(b) 455 m.Retval = buf.DecodeInt32() 456 return nil 457 } 458 459 // SetIpfixExporter defines message 'set_ipfix_exporter'. 460 type SetIpfixExporter struct { 461 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 462 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 463 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 464 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 465 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 466 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 467 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 468 } 469 470 func (m *SetIpfixExporter) Reset() { *m = SetIpfixExporter{} } 471 func (*SetIpfixExporter) GetMessageName() string { return "set_ipfix_exporter" } 472 func (*SetIpfixExporter) GetCrcString() string { return "5530c8a0" } 473 func (*SetIpfixExporter) GetMessageType() api.MessageType { 474 return api.RequestMessage 475 } 476 477 func (m *SetIpfixExporter) Size() (size int) { 478 if m == nil { 479 return 0 480 } 481 size += 1 // m.CollectorAddress.Af 482 size += 1 * 16 // m.CollectorAddress.Un 483 size += 2 // m.CollectorPort 484 size += 1 // m.SrcAddress.Af 485 size += 1 * 16 // m.SrcAddress.Un 486 size += 4 // m.VrfID 487 size += 4 // m.PathMtu 488 size += 4 // m.TemplateInterval 489 size += 1 // m.UDPChecksum 490 return size 491 } 492 func (m *SetIpfixExporter) Marshal(b []byte) ([]byte, error) { 493 if b == nil { 494 b = make([]byte, m.Size()) 495 } 496 buf := codec.NewBuffer(b) 497 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 498 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 499 buf.EncodeUint16(m.CollectorPort) 500 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 501 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 502 buf.EncodeUint32(m.VrfID) 503 buf.EncodeUint32(m.PathMtu) 504 buf.EncodeUint32(m.TemplateInterval) 505 buf.EncodeBool(m.UDPChecksum) 506 return buf.Bytes(), nil 507 } 508 func (m *SetIpfixExporter) Unmarshal(b []byte) error { 509 buf := codec.NewBuffer(b) 510 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 511 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 512 m.CollectorPort = buf.DecodeUint16() 513 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 514 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 515 m.VrfID = buf.DecodeUint32() 516 m.PathMtu = buf.DecodeUint32() 517 m.TemplateInterval = buf.DecodeUint32() 518 m.UDPChecksum = buf.DecodeBool() 519 return nil 520 } 521 522 // SetIpfixExporterReply defines message 'set_ipfix_exporter_reply'. 523 type SetIpfixExporterReply struct { 524 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 525 } 526 527 func (m *SetIpfixExporterReply) Reset() { *m = SetIpfixExporterReply{} } 528 func (*SetIpfixExporterReply) GetMessageName() string { return "set_ipfix_exporter_reply" } 529 func (*SetIpfixExporterReply) GetCrcString() string { return "e8d4e804" } 530 func (*SetIpfixExporterReply) GetMessageType() api.MessageType { 531 return api.ReplyMessage 532 } 533 534 func (m *SetIpfixExporterReply) Size() (size int) { 535 if m == nil { 536 return 0 537 } 538 size += 4 // m.Retval 539 return size 540 } 541 func (m *SetIpfixExporterReply) Marshal(b []byte) ([]byte, error) { 542 if b == nil { 543 b = make([]byte, m.Size()) 544 } 545 buf := codec.NewBuffer(b) 546 buf.EncodeInt32(m.Retval) 547 return buf.Bytes(), nil 548 } 549 func (m *SetIpfixExporterReply) Unmarshal(b []byte) error { 550 buf := codec.NewBuffer(b) 551 m.Retval = buf.DecodeInt32() 552 return nil 553 } 554 555 func init() { file_ipfix_export_binapi_init() } 556 func file_ipfix_export_binapi_init() { 557 api.RegisterMessage((*IpfixClassifyStreamDetails)(nil), "ipfix_classify_stream_details_2903539d") 558 api.RegisterMessage((*IpfixClassifyStreamDump)(nil), "ipfix_classify_stream_dump_51077d14") 559 api.RegisterMessage((*IpfixClassifyTableAddDel)(nil), "ipfix_classify_table_add_del_3e449bb9") 560 api.RegisterMessage((*IpfixClassifyTableAddDelReply)(nil), "ipfix_classify_table_add_del_reply_e8d4e804") 561 api.RegisterMessage((*IpfixClassifyTableDetails)(nil), "ipfix_classify_table_details_1af8c28c") 562 api.RegisterMessage((*IpfixClassifyTableDump)(nil), "ipfix_classify_table_dump_51077d14") 563 api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_0dedbfe4") 564 api.RegisterMessage((*IpfixExporterDump)(nil), "ipfix_exporter_dump_51077d14") 565 api.RegisterMessage((*IpfixFlush)(nil), "ipfix_flush_51077d14") 566 api.RegisterMessage((*IpfixFlushReply)(nil), "ipfix_flush_reply_e8d4e804") 567 api.RegisterMessage((*SetIpfixClassifyStream)(nil), "set_ipfix_classify_stream_c9cbe053") 568 api.RegisterMessage((*SetIpfixClassifyStreamReply)(nil), "set_ipfix_classify_stream_reply_e8d4e804") 569 api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_5530c8a0") 570 api.RegisterMessage((*SetIpfixExporterReply)(nil), "set_ipfix_exporter_reply_e8d4e804") 571 } 572 573 // Messages returns list of all messages in this module. 574 func AllMessages() []api.Message { 575 return []api.Message{ 576 (*IpfixClassifyStreamDetails)(nil), 577 (*IpfixClassifyStreamDump)(nil), 578 (*IpfixClassifyTableAddDel)(nil), 579 (*IpfixClassifyTableAddDelReply)(nil), 580 (*IpfixClassifyTableDetails)(nil), 581 (*IpfixClassifyTableDump)(nil), 582 (*IpfixExporterDetails)(nil), 583 (*IpfixExporterDump)(nil), 584 (*IpfixFlush)(nil), 585 (*IpfixFlushReply)(nil), 586 (*SetIpfixClassifyStream)(nil), 587 (*SetIpfixClassifyStreamReply)(nil), 588 (*SetIpfixExporter)(nil), 589 (*SetIpfixExporterReply)(nil), 590 } 591 }