1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.5.0-dev
5 // source: /usr/share/vpp/api/core/ipfix_export.api.json
7 // Package ipfix_export contains generated bindings for API file ipfix_export.api.
15 api "git.fd.io/govpp.git/api"
16 ip_types "git.fd.io/govpp.git/binapi/ip_types"
17 codec "git.fd.io/govpp.git/codec"
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
27 APIFile = "ipfix_export"
29 VersionCrc = 0x63e0810a
32 // IpfixAllExporterDetails defines message 'ipfix_all_exporter_details'.
33 type IpfixAllExporterDetails struct {
34 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
35 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
36 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
37 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
38 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
39 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
40 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
43 func (m *IpfixAllExporterDetails) Reset() { *m = IpfixAllExporterDetails{} }
44 func (*IpfixAllExporterDetails) GetMessageName() string { return "ipfix_all_exporter_details" }
45 func (*IpfixAllExporterDetails) GetCrcString() string { return "0dedbfe4" }
46 func (*IpfixAllExporterDetails) GetMessageType() api.MessageType {
47 return api.ReplyMessage
50 func (m *IpfixAllExporterDetails) Size() (size int) {
54 size += 1 // m.CollectorAddress.Af
55 size += 1 * 16 // m.CollectorAddress.Un
56 size += 2 // m.CollectorPort
57 size += 1 // m.SrcAddress.Af
58 size += 1 * 16 // m.SrcAddress.Un
60 size += 4 // m.PathMtu
61 size += 4 // m.TemplateInterval
62 size += 1 // m.UDPChecksum
65 func (m *IpfixAllExporterDetails) Marshal(b []byte) ([]byte, error) {
67 b = make([]byte, m.Size())
69 buf := codec.NewBuffer(b)
70 buf.EncodeUint8(uint8(m.CollectorAddress.Af))
71 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
72 buf.EncodeUint16(m.CollectorPort)
73 buf.EncodeUint8(uint8(m.SrcAddress.Af))
74 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
75 buf.EncodeUint32(m.VrfID)
76 buf.EncodeUint32(m.PathMtu)
77 buf.EncodeUint32(m.TemplateInterval)
78 buf.EncodeBool(m.UDPChecksum)
79 return buf.Bytes(), nil
81 func (m *IpfixAllExporterDetails) Unmarshal(b []byte) error {
82 buf := codec.NewBuffer(b)
83 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
84 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
85 m.CollectorPort = buf.DecodeUint16()
86 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
87 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
88 m.VrfID = buf.DecodeUint32()
89 m.PathMtu = buf.DecodeUint32()
90 m.TemplateInterval = buf.DecodeUint32()
91 m.UDPChecksum = buf.DecodeBool()
95 // IpfixAllExporterGet defines message 'ipfix_all_exporter_get'.
96 type IpfixAllExporterGet struct {
97 Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
100 func (m *IpfixAllExporterGet) Reset() { *m = IpfixAllExporterGet{} }
101 func (*IpfixAllExporterGet) GetMessageName() string { return "ipfix_all_exporter_get" }
102 func (*IpfixAllExporterGet) GetCrcString() string { return "f75ba505" }
103 func (*IpfixAllExporterGet) GetMessageType() api.MessageType {
104 return api.RequestMessage
107 func (m *IpfixAllExporterGet) Size() (size int) {
111 size += 4 // m.Cursor
114 func (m *IpfixAllExporterGet) Marshal(b []byte) ([]byte, error) {
116 b = make([]byte, m.Size())
118 buf := codec.NewBuffer(b)
119 buf.EncodeUint32(m.Cursor)
120 return buf.Bytes(), nil
122 func (m *IpfixAllExporterGet) Unmarshal(b []byte) error {
123 buf := codec.NewBuffer(b)
124 m.Cursor = buf.DecodeUint32()
128 // IpfixAllExporterGetReply defines message 'ipfix_all_exporter_get_reply'.
129 type IpfixAllExporterGetReply struct {
130 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
131 Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
134 func (m *IpfixAllExporterGetReply) Reset() { *m = IpfixAllExporterGetReply{} }
135 func (*IpfixAllExporterGetReply) GetMessageName() string { return "ipfix_all_exporter_get_reply" }
136 func (*IpfixAllExporterGetReply) GetCrcString() string { return "53b48f5d" }
137 func (*IpfixAllExporterGetReply) GetMessageType() api.MessageType {
138 return api.ReplyMessage
141 func (m *IpfixAllExporterGetReply) Size() (size int) {
145 size += 4 // m.Retval
146 size += 4 // m.Cursor
149 func (m *IpfixAllExporterGetReply) Marshal(b []byte) ([]byte, error) {
151 b = make([]byte, m.Size())
153 buf := codec.NewBuffer(b)
154 buf.EncodeInt32(m.Retval)
155 buf.EncodeUint32(m.Cursor)
156 return buf.Bytes(), nil
158 func (m *IpfixAllExporterGetReply) Unmarshal(b []byte) error {
159 buf := codec.NewBuffer(b)
160 m.Retval = buf.DecodeInt32()
161 m.Cursor = buf.DecodeUint32()
165 // IpfixClassifyStreamDetails defines message 'ipfix_classify_stream_details'.
166 type IpfixClassifyStreamDetails struct {
167 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
168 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
171 func (m *IpfixClassifyStreamDetails) Reset() { *m = IpfixClassifyStreamDetails{} }
172 func (*IpfixClassifyStreamDetails) GetMessageName() string { return "ipfix_classify_stream_details" }
173 func (*IpfixClassifyStreamDetails) GetCrcString() string { return "2903539d" }
174 func (*IpfixClassifyStreamDetails) GetMessageType() api.MessageType {
175 return api.ReplyMessage
178 func (m *IpfixClassifyStreamDetails) Size() (size int) {
182 size += 4 // m.DomainID
183 size += 2 // m.SrcPort
186 func (m *IpfixClassifyStreamDetails) Marshal(b []byte) ([]byte, error) {
188 b = make([]byte, m.Size())
190 buf := codec.NewBuffer(b)
191 buf.EncodeUint32(m.DomainID)
192 buf.EncodeUint16(m.SrcPort)
193 return buf.Bytes(), nil
195 func (m *IpfixClassifyStreamDetails) Unmarshal(b []byte) error {
196 buf := codec.NewBuffer(b)
197 m.DomainID = buf.DecodeUint32()
198 m.SrcPort = buf.DecodeUint16()
202 // IpfixClassifyStreamDump defines message 'ipfix_classify_stream_dump'.
203 type IpfixClassifyStreamDump struct{}
205 func (m *IpfixClassifyStreamDump) Reset() { *m = IpfixClassifyStreamDump{} }
206 func (*IpfixClassifyStreamDump) GetMessageName() string { return "ipfix_classify_stream_dump" }
207 func (*IpfixClassifyStreamDump) GetCrcString() string { return "51077d14" }
208 func (*IpfixClassifyStreamDump) GetMessageType() api.MessageType {
209 return api.RequestMessage
212 func (m *IpfixClassifyStreamDump) Size() (size int) {
218 func (m *IpfixClassifyStreamDump) Marshal(b []byte) ([]byte, error) {
220 b = make([]byte, m.Size())
222 buf := codec.NewBuffer(b)
223 return buf.Bytes(), nil
225 func (m *IpfixClassifyStreamDump) Unmarshal(b []byte) error {
229 // IpfixClassifyTableAddDel defines message 'ipfix_classify_table_add_del'.
230 type IpfixClassifyTableAddDel struct {
231 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
232 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"`
233 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"`
234 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
237 func (m *IpfixClassifyTableAddDel) Reset() { *m = IpfixClassifyTableAddDel{} }
238 func (*IpfixClassifyTableAddDel) GetMessageName() string { return "ipfix_classify_table_add_del" }
239 func (*IpfixClassifyTableAddDel) GetCrcString() string { return "3e449bb9" }
240 func (*IpfixClassifyTableAddDel) GetMessageType() api.MessageType {
241 return api.RequestMessage
244 func (m *IpfixClassifyTableAddDel) Size() (size int) {
248 size += 4 // m.TableID
249 size += 1 // m.IPVersion
250 size += 1 // m.TransportProtocol
254 func (m *IpfixClassifyTableAddDel) Marshal(b []byte) ([]byte, error) {
256 b = make([]byte, m.Size())
258 buf := codec.NewBuffer(b)
259 buf.EncodeUint32(m.TableID)
260 buf.EncodeUint8(uint8(m.IPVersion))
261 buf.EncodeUint8(uint8(m.TransportProtocol))
262 buf.EncodeBool(m.IsAdd)
263 return buf.Bytes(), nil
265 func (m *IpfixClassifyTableAddDel) Unmarshal(b []byte) error {
266 buf := codec.NewBuffer(b)
267 m.TableID = buf.DecodeUint32()
268 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8())
269 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8())
270 m.IsAdd = buf.DecodeBool()
274 // IpfixClassifyTableAddDelReply defines message 'ipfix_classify_table_add_del_reply'.
275 type IpfixClassifyTableAddDelReply struct {
276 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
279 func (m *IpfixClassifyTableAddDelReply) Reset() { *m = IpfixClassifyTableAddDelReply{} }
280 func (*IpfixClassifyTableAddDelReply) GetMessageName() string {
281 return "ipfix_classify_table_add_del_reply"
283 func (*IpfixClassifyTableAddDelReply) GetCrcString() string { return "e8d4e804" }
284 func (*IpfixClassifyTableAddDelReply) GetMessageType() api.MessageType {
285 return api.ReplyMessage
288 func (m *IpfixClassifyTableAddDelReply) Size() (size int) {
292 size += 4 // m.Retval
295 func (m *IpfixClassifyTableAddDelReply) Marshal(b []byte) ([]byte, error) {
297 b = make([]byte, m.Size())
299 buf := codec.NewBuffer(b)
300 buf.EncodeInt32(m.Retval)
301 return buf.Bytes(), nil
303 func (m *IpfixClassifyTableAddDelReply) Unmarshal(b []byte) error {
304 buf := codec.NewBuffer(b)
305 m.Retval = buf.DecodeInt32()
309 // IpfixClassifyTableDetails defines message 'ipfix_classify_table_details'.
310 type IpfixClassifyTableDetails struct {
311 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
312 IPVersion ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"`
313 TransportProtocol ip_types.IPProto `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"`
316 func (m *IpfixClassifyTableDetails) Reset() { *m = IpfixClassifyTableDetails{} }
317 func (*IpfixClassifyTableDetails) GetMessageName() string { return "ipfix_classify_table_details" }
318 func (*IpfixClassifyTableDetails) GetCrcString() string { return "1af8c28c" }
319 func (*IpfixClassifyTableDetails) GetMessageType() api.MessageType {
320 return api.ReplyMessage
323 func (m *IpfixClassifyTableDetails) Size() (size int) {
327 size += 4 // m.TableID
328 size += 1 // m.IPVersion
329 size += 1 // m.TransportProtocol
332 func (m *IpfixClassifyTableDetails) Marshal(b []byte) ([]byte, error) {
334 b = make([]byte, m.Size())
336 buf := codec.NewBuffer(b)
337 buf.EncodeUint32(m.TableID)
338 buf.EncodeUint8(uint8(m.IPVersion))
339 buf.EncodeUint8(uint8(m.TransportProtocol))
340 return buf.Bytes(), nil
342 func (m *IpfixClassifyTableDetails) Unmarshal(b []byte) error {
343 buf := codec.NewBuffer(b)
344 m.TableID = buf.DecodeUint32()
345 m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8())
346 m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8())
350 // IpfixClassifyTableDump defines message 'ipfix_classify_table_dump'.
351 type IpfixClassifyTableDump struct{}
353 func (m *IpfixClassifyTableDump) Reset() { *m = IpfixClassifyTableDump{} }
354 func (*IpfixClassifyTableDump) GetMessageName() string { return "ipfix_classify_table_dump" }
355 func (*IpfixClassifyTableDump) GetCrcString() string { return "51077d14" }
356 func (*IpfixClassifyTableDump) GetMessageType() api.MessageType {
357 return api.RequestMessage
360 func (m *IpfixClassifyTableDump) Size() (size int) {
366 func (m *IpfixClassifyTableDump) Marshal(b []byte) ([]byte, error) {
368 b = make([]byte, m.Size())
370 buf := codec.NewBuffer(b)
371 return buf.Bytes(), nil
373 func (m *IpfixClassifyTableDump) Unmarshal(b []byte) error {
377 // IpfixExporterCreateDelete defines message 'ipfix_exporter_create_delete'.
378 type IpfixExporterCreateDelete struct {
379 IsCreate bool `binapi:"bool,name=is_create" json:"is_create,omitempty"`
380 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
381 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
382 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
383 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
384 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
385 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
386 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
389 func (m *IpfixExporterCreateDelete) Reset() { *m = IpfixExporterCreateDelete{} }
390 func (*IpfixExporterCreateDelete) GetMessageName() string { return "ipfix_exporter_create_delete" }
391 func (*IpfixExporterCreateDelete) GetCrcString() string { return "0753a768" }
392 func (*IpfixExporterCreateDelete) GetMessageType() api.MessageType {
393 return api.RequestMessage
396 func (m *IpfixExporterCreateDelete) Size() (size int) {
400 size += 1 // m.IsCreate
401 size += 1 // m.CollectorAddress.Af
402 size += 1 * 16 // m.CollectorAddress.Un
403 size += 2 // m.CollectorPort
404 size += 1 // m.SrcAddress.Af
405 size += 1 * 16 // m.SrcAddress.Un
407 size += 4 // m.PathMtu
408 size += 4 // m.TemplateInterval
409 size += 1 // m.UDPChecksum
412 func (m *IpfixExporterCreateDelete) Marshal(b []byte) ([]byte, error) {
414 b = make([]byte, m.Size())
416 buf := codec.NewBuffer(b)
417 buf.EncodeBool(m.IsCreate)
418 buf.EncodeUint8(uint8(m.CollectorAddress.Af))
419 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
420 buf.EncodeUint16(m.CollectorPort)
421 buf.EncodeUint8(uint8(m.SrcAddress.Af))
422 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
423 buf.EncodeUint32(m.VrfID)
424 buf.EncodeUint32(m.PathMtu)
425 buf.EncodeUint32(m.TemplateInterval)
426 buf.EncodeBool(m.UDPChecksum)
427 return buf.Bytes(), nil
429 func (m *IpfixExporterCreateDelete) Unmarshal(b []byte) error {
430 buf := codec.NewBuffer(b)
431 m.IsCreate = buf.DecodeBool()
432 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
433 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
434 m.CollectorPort = buf.DecodeUint16()
435 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
436 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
437 m.VrfID = buf.DecodeUint32()
438 m.PathMtu = buf.DecodeUint32()
439 m.TemplateInterval = buf.DecodeUint32()
440 m.UDPChecksum = buf.DecodeBool()
444 // IpfixExporterCreateDeleteReply defines message 'ipfix_exporter_create_delete_reply'.
445 type IpfixExporterCreateDeleteReply struct {
446 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
447 StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
450 func (m *IpfixExporterCreateDeleteReply) Reset() { *m = IpfixExporterCreateDeleteReply{} }
451 func (*IpfixExporterCreateDeleteReply) GetMessageName() string {
452 return "ipfix_exporter_create_delete_reply"
454 func (*IpfixExporterCreateDeleteReply) GetCrcString() string { return "9ffac24b" }
455 func (*IpfixExporterCreateDeleteReply) GetMessageType() api.MessageType {
456 return api.ReplyMessage
459 func (m *IpfixExporterCreateDeleteReply) Size() (size int) {
463 size += 4 // m.Retval
464 size += 4 // m.StatIndex
467 func (m *IpfixExporterCreateDeleteReply) Marshal(b []byte) ([]byte, error) {
469 b = make([]byte, m.Size())
471 buf := codec.NewBuffer(b)
472 buf.EncodeInt32(m.Retval)
473 buf.EncodeUint32(m.StatIndex)
474 return buf.Bytes(), nil
476 func (m *IpfixExporterCreateDeleteReply) Unmarshal(b []byte) error {
477 buf := codec.NewBuffer(b)
478 m.Retval = buf.DecodeInt32()
479 m.StatIndex = buf.DecodeUint32()
483 // IpfixExporterDetails defines message 'ipfix_exporter_details'.
484 type IpfixExporterDetails struct {
485 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
486 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
487 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
488 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
489 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
490 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
491 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
494 func (m *IpfixExporterDetails) Reset() { *m = IpfixExporterDetails{} }
495 func (*IpfixExporterDetails) GetMessageName() string { return "ipfix_exporter_details" }
496 func (*IpfixExporterDetails) GetCrcString() string { return "0dedbfe4" }
497 func (*IpfixExporterDetails) GetMessageType() api.MessageType {
498 return api.ReplyMessage
501 func (m *IpfixExporterDetails) Size() (size int) {
505 size += 1 // m.CollectorAddress.Af
506 size += 1 * 16 // m.CollectorAddress.Un
507 size += 2 // m.CollectorPort
508 size += 1 // m.SrcAddress.Af
509 size += 1 * 16 // m.SrcAddress.Un
511 size += 4 // m.PathMtu
512 size += 4 // m.TemplateInterval
513 size += 1 // m.UDPChecksum
516 func (m *IpfixExporterDetails) Marshal(b []byte) ([]byte, error) {
518 b = make([]byte, m.Size())
520 buf := codec.NewBuffer(b)
521 buf.EncodeUint8(uint8(m.CollectorAddress.Af))
522 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
523 buf.EncodeUint16(m.CollectorPort)
524 buf.EncodeUint8(uint8(m.SrcAddress.Af))
525 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
526 buf.EncodeUint32(m.VrfID)
527 buf.EncodeUint32(m.PathMtu)
528 buf.EncodeUint32(m.TemplateInterval)
529 buf.EncodeBool(m.UDPChecksum)
530 return buf.Bytes(), nil
532 func (m *IpfixExporterDetails) Unmarshal(b []byte) error {
533 buf := codec.NewBuffer(b)
534 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
535 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
536 m.CollectorPort = buf.DecodeUint16()
537 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
538 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
539 m.VrfID = buf.DecodeUint32()
540 m.PathMtu = buf.DecodeUint32()
541 m.TemplateInterval = buf.DecodeUint32()
542 m.UDPChecksum = buf.DecodeBool()
546 // IpfixExporterDump defines message 'ipfix_exporter_dump'.
547 type IpfixExporterDump struct{}
549 func (m *IpfixExporterDump) Reset() { *m = IpfixExporterDump{} }
550 func (*IpfixExporterDump) GetMessageName() string { return "ipfix_exporter_dump" }
551 func (*IpfixExporterDump) GetCrcString() string { return "51077d14" }
552 func (*IpfixExporterDump) GetMessageType() api.MessageType {
553 return api.RequestMessage
556 func (m *IpfixExporterDump) Size() (size int) {
562 func (m *IpfixExporterDump) Marshal(b []byte) ([]byte, error) {
564 b = make([]byte, m.Size())
566 buf := codec.NewBuffer(b)
567 return buf.Bytes(), nil
569 func (m *IpfixExporterDump) Unmarshal(b []byte) error {
573 // IpfixFlush defines message 'ipfix_flush'.
574 type IpfixFlush struct{}
576 func (m *IpfixFlush) Reset() { *m = IpfixFlush{} }
577 func (*IpfixFlush) GetMessageName() string { return "ipfix_flush" }
578 func (*IpfixFlush) GetCrcString() string { return "51077d14" }
579 func (*IpfixFlush) GetMessageType() api.MessageType {
580 return api.RequestMessage
583 func (m *IpfixFlush) Size() (size int) {
589 func (m *IpfixFlush) Marshal(b []byte) ([]byte, error) {
591 b = make([]byte, m.Size())
593 buf := codec.NewBuffer(b)
594 return buf.Bytes(), nil
596 func (m *IpfixFlush) Unmarshal(b []byte) error {
600 // IpfixFlushReply defines message 'ipfix_flush_reply'.
601 type IpfixFlushReply struct {
602 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
605 func (m *IpfixFlushReply) Reset() { *m = IpfixFlushReply{} }
606 func (*IpfixFlushReply) GetMessageName() string { return "ipfix_flush_reply" }
607 func (*IpfixFlushReply) GetCrcString() string { return "e8d4e804" }
608 func (*IpfixFlushReply) GetMessageType() api.MessageType {
609 return api.ReplyMessage
612 func (m *IpfixFlushReply) Size() (size int) {
616 size += 4 // m.Retval
619 func (m *IpfixFlushReply) Marshal(b []byte) ([]byte, error) {
621 b = make([]byte, m.Size())
623 buf := codec.NewBuffer(b)
624 buf.EncodeInt32(m.Retval)
625 return buf.Bytes(), nil
627 func (m *IpfixFlushReply) Unmarshal(b []byte) error {
628 buf := codec.NewBuffer(b)
629 m.Retval = buf.DecodeInt32()
633 // SetIpfixClassifyStream defines message 'set_ipfix_classify_stream'.
634 type SetIpfixClassifyStream struct {
635 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
636 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
639 func (m *SetIpfixClassifyStream) Reset() { *m = SetIpfixClassifyStream{} }
640 func (*SetIpfixClassifyStream) GetMessageName() string { return "set_ipfix_classify_stream" }
641 func (*SetIpfixClassifyStream) GetCrcString() string { return "c9cbe053" }
642 func (*SetIpfixClassifyStream) GetMessageType() api.MessageType {
643 return api.RequestMessage
646 func (m *SetIpfixClassifyStream) Size() (size int) {
650 size += 4 // m.DomainID
651 size += 2 // m.SrcPort
654 func (m *SetIpfixClassifyStream) Marshal(b []byte) ([]byte, error) {
656 b = make([]byte, m.Size())
658 buf := codec.NewBuffer(b)
659 buf.EncodeUint32(m.DomainID)
660 buf.EncodeUint16(m.SrcPort)
661 return buf.Bytes(), nil
663 func (m *SetIpfixClassifyStream) Unmarshal(b []byte) error {
664 buf := codec.NewBuffer(b)
665 m.DomainID = buf.DecodeUint32()
666 m.SrcPort = buf.DecodeUint16()
670 // SetIpfixClassifyStreamReply defines message 'set_ipfix_classify_stream_reply'.
671 type SetIpfixClassifyStreamReply struct {
672 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
675 func (m *SetIpfixClassifyStreamReply) Reset() { *m = SetIpfixClassifyStreamReply{} }
676 func (*SetIpfixClassifyStreamReply) GetMessageName() string { return "set_ipfix_classify_stream_reply" }
677 func (*SetIpfixClassifyStreamReply) GetCrcString() string { return "e8d4e804" }
678 func (*SetIpfixClassifyStreamReply) GetMessageType() api.MessageType {
679 return api.ReplyMessage
682 func (m *SetIpfixClassifyStreamReply) Size() (size int) {
686 size += 4 // m.Retval
689 func (m *SetIpfixClassifyStreamReply) Marshal(b []byte) ([]byte, error) {
691 b = make([]byte, m.Size())
693 buf := codec.NewBuffer(b)
694 buf.EncodeInt32(m.Retval)
695 return buf.Bytes(), nil
697 func (m *SetIpfixClassifyStreamReply) Unmarshal(b []byte) error {
698 buf := codec.NewBuffer(b)
699 m.Retval = buf.DecodeInt32()
703 // SetIpfixExporter defines message 'set_ipfix_exporter'.
704 type SetIpfixExporter struct {
705 CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
706 CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
707 SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
708 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
709 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
710 TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
711 UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
714 func (m *SetIpfixExporter) Reset() { *m = SetIpfixExporter{} }
715 func (*SetIpfixExporter) GetMessageName() string { return "set_ipfix_exporter" }
716 func (*SetIpfixExporter) GetCrcString() string { return "5530c8a0" }
717 func (*SetIpfixExporter) GetMessageType() api.MessageType {
718 return api.RequestMessage
721 func (m *SetIpfixExporter) Size() (size int) {
725 size += 1 // m.CollectorAddress.Af
726 size += 1 * 16 // m.CollectorAddress.Un
727 size += 2 // m.CollectorPort
728 size += 1 // m.SrcAddress.Af
729 size += 1 * 16 // m.SrcAddress.Un
731 size += 4 // m.PathMtu
732 size += 4 // m.TemplateInterval
733 size += 1 // m.UDPChecksum
736 func (m *SetIpfixExporter) Marshal(b []byte) ([]byte, error) {
738 b = make([]byte, m.Size())
740 buf := codec.NewBuffer(b)
741 buf.EncodeUint8(uint8(m.CollectorAddress.Af))
742 buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
743 buf.EncodeUint16(m.CollectorPort)
744 buf.EncodeUint8(uint8(m.SrcAddress.Af))
745 buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
746 buf.EncodeUint32(m.VrfID)
747 buf.EncodeUint32(m.PathMtu)
748 buf.EncodeUint32(m.TemplateInterval)
749 buf.EncodeBool(m.UDPChecksum)
750 return buf.Bytes(), nil
752 func (m *SetIpfixExporter) Unmarshal(b []byte) error {
753 buf := codec.NewBuffer(b)
754 m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
755 copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
756 m.CollectorPort = buf.DecodeUint16()
757 m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
758 copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
759 m.VrfID = buf.DecodeUint32()
760 m.PathMtu = buf.DecodeUint32()
761 m.TemplateInterval = buf.DecodeUint32()
762 m.UDPChecksum = buf.DecodeBool()
766 // SetIpfixExporterReply defines message 'set_ipfix_exporter_reply'.
767 type SetIpfixExporterReply struct {
768 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
771 func (m *SetIpfixExporterReply) Reset() { *m = SetIpfixExporterReply{} }
772 func (*SetIpfixExporterReply) GetMessageName() string { return "set_ipfix_exporter_reply" }
773 func (*SetIpfixExporterReply) GetCrcString() string { return "e8d4e804" }
774 func (*SetIpfixExporterReply) GetMessageType() api.MessageType {
775 return api.ReplyMessage
778 func (m *SetIpfixExporterReply) Size() (size int) {
782 size += 4 // m.Retval
785 func (m *SetIpfixExporterReply) Marshal(b []byte) ([]byte, error) {
787 b = make([]byte, m.Size())
789 buf := codec.NewBuffer(b)
790 buf.EncodeInt32(m.Retval)
791 return buf.Bytes(), nil
793 func (m *SetIpfixExporterReply) Unmarshal(b []byte) error {
794 buf := codec.NewBuffer(b)
795 m.Retval = buf.DecodeInt32()
799 func init() { file_ipfix_export_binapi_init() }
800 func file_ipfix_export_binapi_init() {
801 api.RegisterMessage((*IpfixAllExporterDetails)(nil), "ipfix_all_exporter_details_0dedbfe4")
802 api.RegisterMessage((*IpfixAllExporterGet)(nil), "ipfix_all_exporter_get_f75ba505")
803 api.RegisterMessage((*IpfixAllExporterGetReply)(nil), "ipfix_all_exporter_get_reply_53b48f5d")
804 api.RegisterMessage((*IpfixClassifyStreamDetails)(nil), "ipfix_classify_stream_details_2903539d")
805 api.RegisterMessage((*IpfixClassifyStreamDump)(nil), "ipfix_classify_stream_dump_51077d14")
806 api.RegisterMessage((*IpfixClassifyTableAddDel)(nil), "ipfix_classify_table_add_del_3e449bb9")
807 api.RegisterMessage((*IpfixClassifyTableAddDelReply)(nil), "ipfix_classify_table_add_del_reply_e8d4e804")
808 api.RegisterMessage((*IpfixClassifyTableDetails)(nil), "ipfix_classify_table_details_1af8c28c")
809 api.RegisterMessage((*IpfixClassifyTableDump)(nil), "ipfix_classify_table_dump_51077d14")
810 api.RegisterMessage((*IpfixExporterCreateDelete)(nil), "ipfix_exporter_create_delete_0753a768")
811 api.RegisterMessage((*IpfixExporterCreateDeleteReply)(nil), "ipfix_exporter_create_delete_reply_9ffac24b")
812 api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_0dedbfe4")
813 api.RegisterMessage((*IpfixExporterDump)(nil), "ipfix_exporter_dump_51077d14")
814 api.RegisterMessage((*IpfixFlush)(nil), "ipfix_flush_51077d14")
815 api.RegisterMessage((*IpfixFlushReply)(nil), "ipfix_flush_reply_e8d4e804")
816 api.RegisterMessage((*SetIpfixClassifyStream)(nil), "set_ipfix_classify_stream_c9cbe053")
817 api.RegisterMessage((*SetIpfixClassifyStreamReply)(nil), "set_ipfix_classify_stream_reply_e8d4e804")
818 api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_5530c8a0")
819 api.RegisterMessage((*SetIpfixExporterReply)(nil), "set_ipfix_exporter_reply_e8d4e804")
822 // Messages returns list of all messages in this module.
823 func AllMessages() []api.Message {
824 return []api.Message{
825 (*IpfixAllExporterDetails)(nil),
826 (*IpfixAllExporterGet)(nil),
827 (*IpfixAllExporterGetReply)(nil),
828 (*IpfixClassifyStreamDetails)(nil),
829 (*IpfixClassifyStreamDump)(nil),
830 (*IpfixClassifyTableAddDel)(nil),
831 (*IpfixClassifyTableAddDelReply)(nil),
832 (*IpfixClassifyTableDetails)(nil),
833 (*IpfixClassifyTableDump)(nil),
834 (*IpfixExporterCreateDelete)(nil),
835 (*IpfixExporterCreateDeleteReply)(nil),
836 (*IpfixExporterDetails)(nil),
837 (*IpfixExporterDump)(nil),
839 (*IpfixFlushReply)(nil),
840 (*SetIpfixClassifyStream)(nil),
841 (*SetIpfixClassifyStreamReply)(nil),
842 (*SetIpfixExporter)(nil),
843 (*SetIpfixExporterReply)(nil),