go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2210/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 // - 19 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/vpp2210/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 = 0x63e0810a 25 ) 26 27 // IpfixAllExporterDetails defines message 'ipfix_all_exporter_details'. 28 type IpfixAllExporterDetails struct { 29 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 30 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 31 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 32 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 33 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 34 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 35 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 36 } 37 38 func (m *IpfixAllExporterDetails) Reset() { *m = IpfixAllExporterDetails{} } 39 func (*IpfixAllExporterDetails) GetMessageName() string { return "ipfix_all_exporter_details" } 40 func (*IpfixAllExporterDetails) GetCrcString() string { return "0dedbfe4" } 41 func (*IpfixAllExporterDetails) GetMessageType() api.MessageType { 42 return api.ReplyMessage 43 } 44 45 func (m *IpfixAllExporterDetails) Size() (size int) { 46 if m == nil { 47 return 0 48 } 49 size += 1 // m.CollectorAddress.Af 50 size += 1 * 16 // m.CollectorAddress.Un 51 size += 2 // m.CollectorPort 52 size += 1 // m.SrcAddress.Af 53 size += 1 * 16 // m.SrcAddress.Un 54 size += 4 // m.VrfID 55 size += 4 // m.PathMtu 56 size += 4 // m.TemplateInterval 57 size += 1 // m.UDPChecksum 58 return size 59 } 60 func (m *IpfixAllExporterDetails) Marshal(b []byte) ([]byte, error) { 61 if b == nil { 62 b = make([]byte, m.Size()) 63 } 64 buf := codec.NewBuffer(b) 65 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 66 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 67 buf.EncodeUint16(m.CollectorPort) 68 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 69 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 70 buf.EncodeUint32(m.VrfID) 71 buf.EncodeUint32(m.PathMtu) 72 buf.EncodeUint32(m.TemplateInterval) 73 buf.EncodeBool(m.UDPChecksum) 74 return buf.Bytes(), nil 75 } 76 func (m *IpfixAllExporterDetails) Unmarshal(b []byte) error { 77 buf := codec.NewBuffer(b) 78 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 79 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 80 m.CollectorPort = buf.DecodeUint16() 81 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 82 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 83 m.VrfID = buf.DecodeUint32() 84 m.PathMtu = buf.DecodeUint32() 85 m.TemplateInterval = buf.DecodeUint32() 86 m.UDPChecksum = buf.DecodeBool() 87 return nil 88 } 89 90 // IpfixAllExporterGet defines message 'ipfix_all_exporter_get'. 91 type IpfixAllExporterGet struct { 92 Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` 93 } 94 95 func (m *IpfixAllExporterGet) Reset() { *m = IpfixAllExporterGet{} } 96 func (*IpfixAllExporterGet) GetMessageName() string { return "ipfix_all_exporter_get" } 97 func (*IpfixAllExporterGet) GetCrcString() string { return "f75ba505" } 98 func (*IpfixAllExporterGet) GetMessageType() api.MessageType { 99 return api.RequestMessage 100 } 101 102 func (m *IpfixAllExporterGet) Size() (size int) { 103 if m == nil { 104 return 0 105 } 106 size += 4 // m.Cursor 107 return size 108 } 109 func (m *IpfixAllExporterGet) Marshal(b []byte) ([]byte, error) { 110 if b == nil { 111 b = make([]byte, m.Size()) 112 } 113 buf := codec.NewBuffer(b) 114 buf.EncodeUint32(m.Cursor) 115 return buf.Bytes(), nil 116 } 117 func (m *IpfixAllExporterGet) Unmarshal(b []byte) error { 118 buf := codec.NewBuffer(b) 119 m.Cursor = buf.DecodeUint32() 120 return nil 121 } 122 123 // IpfixAllExporterGetReply defines message 'ipfix_all_exporter_get_reply'. 124 type IpfixAllExporterGetReply struct { 125 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 126 Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` 127 } 128 129 func (m *IpfixAllExporterGetReply) Reset() { *m = IpfixAllExporterGetReply{} } 130 func (*IpfixAllExporterGetReply) GetMessageName() string { return "ipfix_all_exporter_get_reply" } 131 func (*IpfixAllExporterGetReply) GetCrcString() string { return "53b48f5d" } 132 func (*IpfixAllExporterGetReply) GetMessageType() api.MessageType { 133 return api.ReplyMessage 134 } 135 136 func (m *IpfixAllExporterGetReply) Size() (size int) { 137 if m == nil { 138 return 0 139 } 140 size += 4 // m.Retval 141 size += 4 // m.Cursor 142 return size 143 } 144 func (m *IpfixAllExporterGetReply) Marshal(b []byte) ([]byte, error) { 145 if b == nil { 146 b = make([]byte, m.Size()) 147 } 148 buf := codec.NewBuffer(b) 149 buf.EncodeInt32(m.Retval) 150 buf.EncodeUint32(m.Cursor) 151 return buf.Bytes(), nil 152 } 153 func (m *IpfixAllExporterGetReply) Unmarshal(b []byte) error { 154 buf := codec.NewBuffer(b) 155 m.Retval = buf.DecodeInt32() 156 m.Cursor = buf.DecodeUint32() 157 return nil 158 } 159 160 // IpfixClassifyStreamDetails defines message 'ipfix_classify_stream_details'. 161 type IpfixClassifyStreamDetails struct { 162 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` 163 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` 164 } 165 166 func (m *IpfixClassifyStreamDetails) Reset() { *m = IpfixClassifyStreamDetails{} } 167 func (*IpfixClassifyStreamDetails) GetMessageName() string { return "ipfix_classify_stream_details" } 168 func (*IpfixClassifyStreamDetails) GetCrcString() string { return "2903539d" } 169 func (*IpfixClassifyStreamDetails) GetMessageType() api.MessageType { 170 return api.ReplyMessage 171 } 172 173 func (m *IpfixClassifyStreamDetails) Size() (size int) { 174 if m == nil { 175 return 0 176 } 177 size += 4 // m.DomainID 178 size += 2 // m.SrcPort 179 return size 180 } 181 func (m *IpfixClassifyStreamDetails) Marshal(b []byte) ([]byte, error) { 182 if b == nil { 183 b = make([]byte, m.Size()) 184 } 185 buf := codec.NewBuffer(b) 186 buf.EncodeUint32(m.DomainID) 187 buf.EncodeUint16(m.SrcPort) 188 return buf.Bytes(), nil 189 } 190 func (m *IpfixClassifyStreamDetails) Unmarshal(b []byte) error { 191 buf := codec.NewBuffer(b) 192 m.DomainID = buf.DecodeUint32() 193 m.SrcPort = buf.DecodeUint16() 194 return nil 195 } 196 197 // IpfixClassifyStreamDump defines message 'ipfix_classify_stream_dump'. 198 type IpfixClassifyStreamDump struct{} 199 200 func (m *IpfixClassifyStreamDump) Reset() { *m = IpfixClassifyStreamDump{} } 201 func (*IpfixClassifyStreamDump) GetMessageName() string { return "ipfix_classify_stream_dump" } 202 func (*IpfixClassifyStreamDump) GetCrcString() string { return "51077d14" } 203 func (*IpfixClassifyStreamDump) GetMessageType() api.MessageType { 204 return api.RequestMessage 205 } 206 207 func (m *IpfixClassifyStreamDump) Size() (size int) { 208 if m == nil { 209 return 0 210 } 211 return size 212 } 213 func (m *IpfixClassifyStreamDump) Marshal(b []byte) ([]byte, error) { 214 if b == nil { 215 b = make([]byte, m.Size()) 216 } 217 buf := codec.NewBuffer(b) 218 return buf.Bytes(), nil 219 } 220 func (m *IpfixClassifyStreamDump) Unmarshal(b []byte) error { 221 return nil 222 } 223 224 // IpfixClassifyTableAddDel defines message 'ipfix_classify_table_add_del'. 225 type IpfixClassifyTableAddDel struct { 226 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` 227 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"` 228 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"` 229 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 230 } 231 232 func (m *IpfixClassifyTableAddDel) Reset() { *m = IpfixClassifyTableAddDel{} } 233 func (*IpfixClassifyTableAddDel) GetMessageName() string { return "ipfix_classify_table_add_del" } 234 func (*IpfixClassifyTableAddDel) GetCrcString() string { return "3e449bb9" } 235 func (*IpfixClassifyTableAddDel) GetMessageType() api.MessageType { 236 return api.RequestMessage 237 } 238 239 func (m *IpfixClassifyTableAddDel) Size() (size int) { 240 if m == nil { 241 return 0 242 } 243 size += 4 // m.TableID 244 size += 1 // m.IPVersion 245 size += 1 // m.TransportProtocol 246 size += 1 // m.IsAdd 247 return size 248 } 249 func (m *IpfixClassifyTableAddDel) Marshal(b []byte) ([]byte, error) { 250 if b == nil { 251 b = make([]byte, m.Size()) 252 } 253 buf := codec.NewBuffer(b) 254 buf.EncodeUint32(m.TableID) 255 buf.EncodeUint8(uint8(m.IPVersion)) 256 buf.EncodeUint8(uint8(m.TransportProtocol)) 257 buf.EncodeBool(m.IsAdd) 258 return buf.Bytes(), nil 259 } 260 func (m *IpfixClassifyTableAddDel) Unmarshal(b []byte) error { 261 buf := codec.NewBuffer(b) 262 m.TableID = buf.DecodeUint32() 263 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8()) 264 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8()) 265 m.IsAdd = buf.DecodeBool() 266 return nil 267 } 268 269 // IpfixClassifyTableAddDelReply defines message 'ipfix_classify_table_add_del_reply'. 270 type IpfixClassifyTableAddDelReply struct { 271 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 272 } 273 274 func (m *IpfixClassifyTableAddDelReply) Reset() { *m = IpfixClassifyTableAddDelReply{} } 275 func (*IpfixClassifyTableAddDelReply) GetMessageName() string { 276 return "ipfix_classify_table_add_del_reply" 277 } 278 func (*IpfixClassifyTableAddDelReply) GetCrcString() string { return "e8d4e804" } 279 func (*IpfixClassifyTableAddDelReply) GetMessageType() api.MessageType { 280 return api.ReplyMessage 281 } 282 283 func (m *IpfixClassifyTableAddDelReply) Size() (size int) { 284 if m == nil { 285 return 0 286 } 287 size += 4 // m.Retval 288 return size 289 } 290 func (m *IpfixClassifyTableAddDelReply) Marshal(b []byte) ([]byte, error) { 291 if b == nil { 292 b = make([]byte, m.Size()) 293 } 294 buf := codec.NewBuffer(b) 295 buf.EncodeInt32(m.Retval) 296 return buf.Bytes(), nil 297 } 298 func (m *IpfixClassifyTableAddDelReply) Unmarshal(b []byte) error { 299 buf := codec.NewBuffer(b) 300 m.Retval = buf.DecodeInt32() 301 return nil 302 } 303 304 // IpfixClassifyTableDetails defines message 'ipfix_classify_table_details'. 305 type IpfixClassifyTableDetails struct { 306 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` 307 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"` 308 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"` 309 } 310 311 func (m *IpfixClassifyTableDetails) Reset() { *m = IpfixClassifyTableDetails{} } 312 func (*IpfixClassifyTableDetails) GetMessageName() string { return "ipfix_classify_table_details" } 313 func (*IpfixClassifyTableDetails) GetCrcString() string { return "1af8c28c" } 314 func (*IpfixClassifyTableDetails) GetMessageType() api.MessageType { 315 return api.ReplyMessage 316 } 317 318 func (m *IpfixClassifyTableDetails) Size() (size int) { 319 if m == nil { 320 return 0 321 } 322 size += 4 // m.TableID 323 size += 1 // m.IPVersion 324 size += 1 // m.TransportProtocol 325 return size 326 } 327 func (m *IpfixClassifyTableDetails) Marshal(b []byte) ([]byte, error) { 328 if b == nil { 329 b = make([]byte, m.Size()) 330 } 331 buf := codec.NewBuffer(b) 332 buf.EncodeUint32(m.TableID) 333 buf.EncodeUint8(uint8(m.IPVersion)) 334 buf.EncodeUint8(uint8(m.TransportProtocol)) 335 return buf.Bytes(), nil 336 } 337 func (m *IpfixClassifyTableDetails) Unmarshal(b []byte) error { 338 buf := codec.NewBuffer(b) 339 m.TableID = buf.DecodeUint32() 340 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8()) 341 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8()) 342 return nil 343 } 344 345 // IpfixClassifyTableDump defines message 'ipfix_classify_table_dump'. 346 type IpfixClassifyTableDump struct{} 347 348 func (m *IpfixClassifyTableDump) Reset() { *m = IpfixClassifyTableDump{} } 349 func (*IpfixClassifyTableDump) GetMessageName() string { return "ipfix_classify_table_dump" } 350 func (*IpfixClassifyTableDump) GetCrcString() string { return "51077d14" } 351 func (*IpfixClassifyTableDump) GetMessageType() api.MessageType { 352 return api.RequestMessage 353 } 354 355 func (m *IpfixClassifyTableDump) Size() (size int) { 356 if m == nil { 357 return 0 358 } 359 return size 360 } 361 func (m *IpfixClassifyTableDump) Marshal(b []byte) ([]byte, error) { 362 if b == nil { 363 b = make([]byte, m.Size()) 364 } 365 buf := codec.NewBuffer(b) 366 return buf.Bytes(), nil 367 } 368 func (m *IpfixClassifyTableDump) Unmarshal(b []byte) error { 369 return nil 370 } 371 372 // IpfixExporterCreateDelete defines message 'ipfix_exporter_create_delete'. 373 type IpfixExporterCreateDelete struct { 374 IsCreate bool `binapi:"bool,name=is_create" json:"is_create,omitempty"` 375 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 376 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 377 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 378 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 379 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 380 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 381 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 382 } 383 384 func (m *IpfixExporterCreateDelete) Reset() { *m = IpfixExporterCreateDelete{} } 385 func (*IpfixExporterCreateDelete) GetMessageName() string { return "ipfix_exporter_create_delete" } 386 func (*IpfixExporterCreateDelete) GetCrcString() string { return "0753a768" } 387 func (*IpfixExporterCreateDelete) GetMessageType() api.MessageType { 388 return api.RequestMessage 389 } 390 391 func (m *IpfixExporterCreateDelete) Size() (size int) { 392 if m == nil { 393 return 0 394 } 395 size += 1 // m.IsCreate 396 size += 1 // m.CollectorAddress.Af 397 size += 1 * 16 // m.CollectorAddress.Un 398 size += 2 // m.CollectorPort 399 size += 1 // m.SrcAddress.Af 400 size += 1 * 16 // m.SrcAddress.Un 401 size += 4 // m.VrfID 402 size += 4 // m.PathMtu 403 size += 4 // m.TemplateInterval 404 size += 1 // m.UDPChecksum 405 return size 406 } 407 func (m *IpfixExporterCreateDelete) Marshal(b []byte) ([]byte, error) { 408 if b == nil { 409 b = make([]byte, m.Size()) 410 } 411 buf := codec.NewBuffer(b) 412 buf.EncodeBool(m.IsCreate) 413 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 414 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 415 buf.EncodeUint16(m.CollectorPort) 416 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 417 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 418 buf.EncodeUint32(m.VrfID) 419 buf.EncodeUint32(m.PathMtu) 420 buf.EncodeUint32(m.TemplateInterval) 421 buf.EncodeBool(m.UDPChecksum) 422 return buf.Bytes(), nil 423 } 424 func (m *IpfixExporterCreateDelete) Unmarshal(b []byte) error { 425 buf := codec.NewBuffer(b) 426 m.IsCreate = buf.DecodeBool() 427 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 428 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 429 m.CollectorPort = buf.DecodeUint16() 430 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 431 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 432 m.VrfID = buf.DecodeUint32() 433 m.PathMtu = buf.DecodeUint32() 434 m.TemplateInterval = buf.DecodeUint32() 435 m.UDPChecksum = buf.DecodeBool() 436 return nil 437 } 438 439 // IpfixExporterCreateDeleteReply defines message 'ipfix_exporter_create_delete_reply'. 440 type IpfixExporterCreateDeleteReply struct { 441 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 442 StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"` 443 } 444 445 func (m *IpfixExporterCreateDeleteReply) Reset() { *m = IpfixExporterCreateDeleteReply{} } 446 func (*IpfixExporterCreateDeleteReply) GetMessageName() string { 447 return "ipfix_exporter_create_delete_reply" 448 } 449 func (*IpfixExporterCreateDeleteReply) GetCrcString() string { return "9ffac24b" } 450 func (*IpfixExporterCreateDeleteReply) GetMessageType() api.MessageType { 451 return api.ReplyMessage 452 } 453 454 func (m *IpfixExporterCreateDeleteReply) Size() (size int) { 455 if m == nil { 456 return 0 457 } 458 size += 4 // m.Retval 459 size += 4 // m.StatIndex 460 return size 461 } 462 func (m *IpfixExporterCreateDeleteReply) Marshal(b []byte) ([]byte, error) { 463 if b == nil { 464 b = make([]byte, m.Size()) 465 } 466 buf := codec.NewBuffer(b) 467 buf.EncodeInt32(m.Retval) 468 buf.EncodeUint32(m.StatIndex) 469 return buf.Bytes(), nil 470 } 471 func (m *IpfixExporterCreateDeleteReply) Unmarshal(b []byte) error { 472 buf := codec.NewBuffer(b) 473 m.Retval = buf.DecodeInt32() 474 m.StatIndex = buf.DecodeUint32() 475 return nil 476 } 477 478 // IpfixExporterDetails defines message 'ipfix_exporter_details'. 479 type IpfixExporterDetails struct { 480 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 481 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 482 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 483 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 484 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 485 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 486 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 487 } 488 489 func (m *IpfixExporterDetails) Reset() { *m = IpfixExporterDetails{} } 490 func (*IpfixExporterDetails) GetMessageName() string { return "ipfix_exporter_details" } 491 func (*IpfixExporterDetails) GetCrcString() string { return "0dedbfe4" } 492 func (*IpfixExporterDetails) GetMessageType() api.MessageType { 493 return api.ReplyMessage 494 } 495 496 func (m *IpfixExporterDetails) Size() (size int) { 497 if m == nil { 498 return 0 499 } 500 size += 1 // m.CollectorAddress.Af 501 size += 1 * 16 // m.CollectorAddress.Un 502 size += 2 // m.CollectorPort 503 size += 1 // m.SrcAddress.Af 504 size += 1 * 16 // m.SrcAddress.Un 505 size += 4 // m.VrfID 506 size += 4 // m.PathMtu 507 size += 4 // m.TemplateInterval 508 size += 1 // m.UDPChecksum 509 return size 510 } 511 func (m *IpfixExporterDetails) Marshal(b []byte) ([]byte, error) { 512 if b == nil { 513 b = make([]byte, m.Size()) 514 } 515 buf := codec.NewBuffer(b) 516 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 517 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 518 buf.EncodeUint16(m.CollectorPort) 519 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 520 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 521 buf.EncodeUint32(m.VrfID) 522 buf.EncodeUint32(m.PathMtu) 523 buf.EncodeUint32(m.TemplateInterval) 524 buf.EncodeBool(m.UDPChecksum) 525 return buf.Bytes(), nil 526 } 527 func (m *IpfixExporterDetails) Unmarshal(b []byte) error { 528 buf := codec.NewBuffer(b) 529 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 530 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 531 m.CollectorPort = buf.DecodeUint16() 532 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 533 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 534 m.VrfID = buf.DecodeUint32() 535 m.PathMtu = buf.DecodeUint32() 536 m.TemplateInterval = buf.DecodeUint32() 537 m.UDPChecksum = buf.DecodeBool() 538 return nil 539 } 540 541 // IpfixExporterDump defines message 'ipfix_exporter_dump'. 542 type IpfixExporterDump struct{} 543 544 func (m *IpfixExporterDump) Reset() { *m = IpfixExporterDump{} } 545 func (*IpfixExporterDump) GetMessageName() string { return "ipfix_exporter_dump" } 546 func (*IpfixExporterDump) GetCrcString() string { return "51077d14" } 547 func (*IpfixExporterDump) GetMessageType() api.MessageType { 548 return api.RequestMessage 549 } 550 551 func (m *IpfixExporterDump) Size() (size int) { 552 if m == nil { 553 return 0 554 } 555 return size 556 } 557 func (m *IpfixExporterDump) Marshal(b []byte) ([]byte, error) { 558 if b == nil { 559 b = make([]byte, m.Size()) 560 } 561 buf := codec.NewBuffer(b) 562 return buf.Bytes(), nil 563 } 564 func (m *IpfixExporterDump) Unmarshal(b []byte) error { 565 return nil 566 } 567 568 // IpfixFlush defines message 'ipfix_flush'. 569 type IpfixFlush struct{} 570 571 func (m *IpfixFlush) Reset() { *m = IpfixFlush{} } 572 func (*IpfixFlush) GetMessageName() string { return "ipfix_flush" } 573 func (*IpfixFlush) GetCrcString() string { return "51077d14" } 574 func (*IpfixFlush) GetMessageType() api.MessageType { 575 return api.RequestMessage 576 } 577 578 func (m *IpfixFlush) Size() (size int) { 579 if m == nil { 580 return 0 581 } 582 return size 583 } 584 func (m *IpfixFlush) Marshal(b []byte) ([]byte, error) { 585 if b == nil { 586 b = make([]byte, m.Size()) 587 } 588 buf := codec.NewBuffer(b) 589 return buf.Bytes(), nil 590 } 591 func (m *IpfixFlush) Unmarshal(b []byte) error { 592 return nil 593 } 594 595 // IpfixFlushReply defines message 'ipfix_flush_reply'. 596 type IpfixFlushReply struct { 597 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 598 } 599 600 func (m *IpfixFlushReply) Reset() { *m = IpfixFlushReply{} } 601 func (*IpfixFlushReply) GetMessageName() string { return "ipfix_flush_reply" } 602 func (*IpfixFlushReply) GetCrcString() string { return "e8d4e804" } 603 func (*IpfixFlushReply) GetMessageType() api.MessageType { 604 return api.ReplyMessage 605 } 606 607 func (m *IpfixFlushReply) Size() (size int) { 608 if m == nil { 609 return 0 610 } 611 size += 4 // m.Retval 612 return size 613 } 614 func (m *IpfixFlushReply) Marshal(b []byte) ([]byte, error) { 615 if b == nil { 616 b = make([]byte, m.Size()) 617 } 618 buf := codec.NewBuffer(b) 619 buf.EncodeInt32(m.Retval) 620 return buf.Bytes(), nil 621 } 622 func (m *IpfixFlushReply) Unmarshal(b []byte) error { 623 buf := codec.NewBuffer(b) 624 m.Retval = buf.DecodeInt32() 625 return nil 626 } 627 628 // SetIpfixClassifyStream defines message 'set_ipfix_classify_stream'. 629 type SetIpfixClassifyStream struct { 630 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` 631 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` 632 } 633 634 func (m *SetIpfixClassifyStream) Reset() { *m = SetIpfixClassifyStream{} } 635 func (*SetIpfixClassifyStream) GetMessageName() string { return "set_ipfix_classify_stream" } 636 func (*SetIpfixClassifyStream) GetCrcString() string { return "c9cbe053" } 637 func (*SetIpfixClassifyStream) GetMessageType() api.MessageType { 638 return api.RequestMessage 639 } 640 641 func (m *SetIpfixClassifyStream) Size() (size int) { 642 if m == nil { 643 return 0 644 } 645 size += 4 // m.DomainID 646 size += 2 // m.SrcPort 647 return size 648 } 649 func (m *SetIpfixClassifyStream) Marshal(b []byte) ([]byte, error) { 650 if b == nil { 651 b = make([]byte, m.Size()) 652 } 653 buf := codec.NewBuffer(b) 654 buf.EncodeUint32(m.DomainID) 655 buf.EncodeUint16(m.SrcPort) 656 return buf.Bytes(), nil 657 } 658 func (m *SetIpfixClassifyStream) Unmarshal(b []byte) error { 659 buf := codec.NewBuffer(b) 660 m.DomainID = buf.DecodeUint32() 661 m.SrcPort = buf.DecodeUint16() 662 return nil 663 } 664 665 // SetIpfixClassifyStreamReply defines message 'set_ipfix_classify_stream_reply'. 666 type SetIpfixClassifyStreamReply struct { 667 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 668 } 669 670 func (m *SetIpfixClassifyStreamReply) Reset() { *m = SetIpfixClassifyStreamReply{} } 671 func (*SetIpfixClassifyStreamReply) GetMessageName() string { return "set_ipfix_classify_stream_reply" } 672 func (*SetIpfixClassifyStreamReply) GetCrcString() string { return "e8d4e804" } 673 func (*SetIpfixClassifyStreamReply) GetMessageType() api.MessageType { 674 return api.ReplyMessage 675 } 676 677 func (m *SetIpfixClassifyStreamReply) Size() (size int) { 678 if m == nil { 679 return 0 680 } 681 size += 4 // m.Retval 682 return size 683 } 684 func (m *SetIpfixClassifyStreamReply) Marshal(b []byte) ([]byte, error) { 685 if b == nil { 686 b = make([]byte, m.Size()) 687 } 688 buf := codec.NewBuffer(b) 689 buf.EncodeInt32(m.Retval) 690 return buf.Bytes(), nil 691 } 692 func (m *SetIpfixClassifyStreamReply) Unmarshal(b []byte) error { 693 buf := codec.NewBuffer(b) 694 m.Retval = buf.DecodeInt32() 695 return nil 696 } 697 698 // SetIpfixExporter defines message 'set_ipfix_exporter'. 699 type SetIpfixExporter struct { 700 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` 701 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` 702 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` 703 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 704 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 705 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` 706 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` 707 } 708 709 func (m *SetIpfixExporter) Reset() { *m = SetIpfixExporter{} } 710 func (*SetIpfixExporter) GetMessageName() string { return "set_ipfix_exporter" } 711 func (*SetIpfixExporter) GetCrcString() string { return "5530c8a0" } 712 func (*SetIpfixExporter) GetMessageType() api.MessageType { 713 return api.RequestMessage 714 } 715 716 func (m *SetIpfixExporter) Size() (size int) { 717 if m == nil { 718 return 0 719 } 720 size += 1 // m.CollectorAddress.Af 721 size += 1 * 16 // m.CollectorAddress.Un 722 size += 2 // m.CollectorPort 723 size += 1 // m.SrcAddress.Af 724 size += 1 * 16 // m.SrcAddress.Un 725 size += 4 // m.VrfID 726 size += 4 // m.PathMtu 727 size += 4 // m.TemplateInterval 728 size += 1 // m.UDPChecksum 729 return size 730 } 731 func (m *SetIpfixExporter) Marshal(b []byte) ([]byte, error) { 732 if b == nil { 733 b = make([]byte, m.Size()) 734 } 735 buf := codec.NewBuffer(b) 736 buf.EncodeUint8(uint8(m.CollectorAddress.Af)) 737 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) 738 buf.EncodeUint16(m.CollectorPort) 739 buf.EncodeUint8(uint8(m.SrcAddress.Af)) 740 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) 741 buf.EncodeUint32(m.VrfID) 742 buf.EncodeUint32(m.PathMtu) 743 buf.EncodeUint32(m.TemplateInterval) 744 buf.EncodeBool(m.UDPChecksum) 745 return buf.Bytes(), nil 746 } 747 func (m *SetIpfixExporter) Unmarshal(b []byte) error { 748 buf := codec.NewBuffer(b) 749 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 750 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 751 m.CollectorPort = buf.DecodeUint16() 752 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) 753 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 754 m.VrfID = buf.DecodeUint32() 755 m.PathMtu = buf.DecodeUint32() 756 m.TemplateInterval = buf.DecodeUint32() 757 m.UDPChecksum = buf.DecodeBool() 758 return nil 759 } 760 761 // SetIpfixExporterReply defines message 'set_ipfix_exporter_reply'. 762 type SetIpfixExporterReply struct { 763 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 764 } 765 766 func (m *SetIpfixExporterReply) Reset() { *m = SetIpfixExporterReply{} } 767 func (*SetIpfixExporterReply) GetMessageName() string { return "set_ipfix_exporter_reply" } 768 func (*SetIpfixExporterReply) GetCrcString() string { return "e8d4e804" } 769 func (*SetIpfixExporterReply) GetMessageType() api.MessageType { 770 return api.ReplyMessage 771 } 772 773 func (m *SetIpfixExporterReply) Size() (size int) { 774 if m == nil { 775 return 0 776 } 777 size += 4 // m.Retval 778 return size 779 } 780 func (m *SetIpfixExporterReply) Marshal(b []byte) ([]byte, error) { 781 if b == nil { 782 b = make([]byte, m.Size()) 783 } 784 buf := codec.NewBuffer(b) 785 buf.EncodeInt32(m.Retval) 786 return buf.Bytes(), nil 787 } 788 func (m *SetIpfixExporterReply) Unmarshal(b []byte) error { 789 buf := codec.NewBuffer(b) 790 m.Retval = buf.DecodeInt32() 791 return nil 792 } 793 794 func init() { file_ipfix_export_binapi_init() } 795 func file_ipfix_export_binapi_init() { 796 api.RegisterMessage((*IpfixAllExporterDetails)(nil), "ipfix_all_exporter_details_0dedbfe4") 797 api.RegisterMessage((*IpfixAllExporterGet)(nil), "ipfix_all_exporter_get_f75ba505") 798 api.RegisterMessage((*IpfixAllExporterGetReply)(nil), "ipfix_all_exporter_get_reply_53b48f5d") 799 api.RegisterMessage((*IpfixClassifyStreamDetails)(nil), "ipfix_classify_stream_details_2903539d") 800 api.RegisterMessage((*IpfixClassifyStreamDump)(nil), "ipfix_classify_stream_dump_51077d14") 801 api.RegisterMessage((*IpfixClassifyTableAddDel)(nil), "ipfix_classify_table_add_del_3e449bb9") 802 api.RegisterMessage((*IpfixClassifyTableAddDelReply)(nil), "ipfix_classify_table_add_del_reply_e8d4e804") 803 api.RegisterMessage((*IpfixClassifyTableDetails)(nil), "ipfix_classify_table_details_1af8c28c") 804 api.RegisterMessage((*IpfixClassifyTableDump)(nil), "ipfix_classify_table_dump_51077d14") 805 api.RegisterMessage((*IpfixExporterCreateDelete)(nil), "ipfix_exporter_create_delete_0753a768") 806 api.RegisterMessage((*IpfixExporterCreateDeleteReply)(nil), "ipfix_exporter_create_delete_reply_9ffac24b") 807 api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_0dedbfe4") 808 api.RegisterMessage((*IpfixExporterDump)(nil), "ipfix_exporter_dump_51077d14") 809 api.RegisterMessage((*IpfixFlush)(nil), "ipfix_flush_51077d14") 810 api.RegisterMessage((*IpfixFlushReply)(nil), "ipfix_flush_reply_e8d4e804") 811 api.RegisterMessage((*SetIpfixClassifyStream)(nil), "set_ipfix_classify_stream_c9cbe053") 812 api.RegisterMessage((*SetIpfixClassifyStreamReply)(nil), "set_ipfix_classify_stream_reply_e8d4e804") 813 api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_5530c8a0") 814 api.RegisterMessage((*SetIpfixExporterReply)(nil), "set_ipfix_exporter_reply_e8d4e804") 815 } 816 817 // Messages returns list of all messages in this module. 818 func AllMessages() []api.Message { 819 return []api.Message{ 820 (*IpfixAllExporterDetails)(nil), 821 (*IpfixAllExporterGet)(nil), 822 (*IpfixAllExporterGetReply)(nil), 823 (*IpfixClassifyStreamDetails)(nil), 824 (*IpfixClassifyStreamDump)(nil), 825 (*IpfixClassifyTableAddDel)(nil), 826 (*IpfixClassifyTableAddDelReply)(nil), 827 (*IpfixClassifyTableDetails)(nil), 828 (*IpfixClassifyTableDump)(nil), 829 (*IpfixExporterCreateDelete)(nil), 830 (*IpfixExporterCreateDeleteReply)(nil), 831 (*IpfixExporterDetails)(nil), 832 (*IpfixExporterDump)(nil), 833 (*IpfixFlush)(nil), 834 (*IpfixFlushReply)(nil), 835 (*SetIpfixClassifyStream)(nil), 836 (*SetIpfixClassifyStreamReply)(nil), 837 (*SetIpfixExporter)(nil), 838 (*SetIpfixExporterReply)(nil), 839 } 840 }