-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipfix_types.go
48 lines (42 loc) · 1.11 KB
/
ipfix_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
type IoamNode struct {
TraceType uint32 // not transmitted
Namespace uint16
HopLimit uint8
NodeId uint32 // 24 bits used.
IngressId, EgressId uint16
TimestampSecs uint32
TimestampFrac uint32
NamespaceData uint32
QueueDepth uint32
NodeIdWide uint64 // 56 bits used.
IngressIdWide, EgressIdWide uint32
NamespaceDataWide uint64
OssLen uint8 // unused
OssSchema uint32 // 24 bits used.
Snapshot []byte
DexFlowID uint32
DexSeqNum uint32
hasDexFlowID bool
hasDexSeqNum bool
}
type IPFIXHeader struct {
Version uint16
Length uint16
ExportTime uint32
SeqNumber uint32
DomainID uint32
}
type IPFIXSetHeader struct {
SetId uint16
SetLength uint16
}
type IPFIXFieldSpecifier struct {
FieldId uint16
FieldLen uint16
}
type IPFIXTemplateRecord struct {
TemplateId uint16
FieldCount uint16
Fields []IPFIXFieldSpecifier
}