forked from chelaxe/NetFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetFlow.ncp
228 lines (228 loc) · 10 KB
/
NetFlow.ncp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<Project>
<Name>System.Net</Name>
<ProjectItem type="NClass.DiagramEditor.ClassDiagram.Diagram" assembly="NClass.DiagramEditor, Version=2.4.1823.0, Culture=neutral, PublicKeyToken=null">
<Name>NetFlow</Name>
<Language>CSharp</Language>
<Entities>
<Entity type="Class">
<Name>Field</Name>
<Access>Public</Access>
<Location left="10" top="10" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Field">private UInt16 _type</Member>
<Member type="Field">private UInt16 _length</Member>
<Member type="Field">private List<Byte> _value</Member>
<Member type="Field">private Byte[] _bytes</Member>
<Member type="Property">public String Type { get; }</Member>
<Member type="Property">public UInt16 Length { get; }</Member>
<Member type="Property">public List<Byte> Value { get; set; }</Member>
<Member type="Method">public UInt16 GetTypes()</Member>
<Member type="Constructor">public Field(Byte[] bytes)</Member>
<Member type="Method">private void Parse()</Member>
<Member type="Method">public static String FieldTypes(UInt16 Types)</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Template</Name>
<Access>Public</Access>
<Location left="365" top="10" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Field">private UInt16 _id</Member>
<Member type="Field">private UInt16 _count</Member>
<Member type="Field">private List<Field> _field</Member>
<Member type="Field">private Byte[] _bytes</Member>
<Member type="Property">public UInt16 ID { get; }</Member>
<Member type="Property">public UInt16 Count { get; }</Member>
<Member type="Property">public List<Field> Field { get; }</Member>
<Member type="Property">public UInt16 FieldLength { get; }</Member>
<Member type="Constructor">public Template(Byte[] bytes)</Member>
<Member type="Method">private void Parse()</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>FlowSet</Name>
<Access>Public</Access>
<Location left="717" top="10" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Field">private UInt16 _id</Member>
<Member type="Field">private UInt16 _length</Member>
<Member type="Field">private List<Template> _template</Member>
<Member type="Field">private List<Byte> _valuebyte</Member>
<Member type="Field">private Byte[] _bytes</Member>
<Member type="Property">public UInt16 ID { get; }</Member>
<Member type="Property">public UInt16 Length { get; }</Member>
<Member type="Property">public List<Template> Template { get; }</Member>
<Member type="Property">public List<Byte> ValueByte { get; }</Member>
<Member type="Constructor">public FlowSet(Byte[] bytes, Templates templates)</Member>
<Member type="Method">private void Parse(Templates templates)</Member>
<Member type="Method">public static object DeepClone(object obj)</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Enum">
<Name>FieldType</Name>
<Access>Public</Access>
<Location left="10" top="379" />
<Size width="262" height="1166" />
<Collapsed>True</Collapsed>
<Value>IN_BYTES = 1</Value>
<Value>IN_PKTS</Value>
<Value>FLOWS</Value>
<Value>PROTOCOL</Value>
<Value>TOS</Value>
<Value>TCP_FLAGS</Value>
<Value>L4_SRC_PORT</Value>
<Value>IPV4_SRC_ADDR</Value>
<Value>SRC_MASK</Value>
<Value>INPUT_SNMP</Value>
<Value>L4_DST_PORT</Value>
<Value>IPV4_DST_ADDR</Value>
<Value>DST_MASK</Value>
<Value>OUTPUT_SNMP</Value>
<Value>IPV4_NEXT_HOP</Value>
<Value>SRC_AS</Value>
<Value>DST_AS</Value>
<Value>BGP_IPV4_NEXT_HOP</Value>
<Value>MUL_DST_PKTS</Value>
<Value>MUL_DST_BYTES</Value>
<Value>LAST_SWITCHED</Value>
<Value>FIRST_SWITCHED</Value>
<Value>OUT_BYTES</Value>
<Value>OUT_PKTS</Value>
<Value>IPV6_SRC_ADDR = 27</Value>
<Value>IPV6_DST_ADDR</Value>
<Value>IPV6_SRC_MASK</Value>
<Value>IPV6_DST_MASK</Value>
<Value>IPV6_FLOW_LABEL</Value>
<Value>ICMP_TYPE</Value>
<Value>MUL_IGMP_TYPE</Value>
<Value>SAMPLING_INTERVAL</Value>
<Value>SAMPLING_ALGORITHM</Value>
<Value>FLOW_ACTIVE_TIMEOUT</Value>
<Value>FLOW_INACTIVE_TIMEOUT</Value>
<Value>ENGINE_TYPE</Value>
<Value>ENGINE_ID</Value>
<Value>TOTAL_BYTES_EXP</Value>
<Value>TOTAL_PKTS_EXP</Value>
<Value>TOTAL_FLOWS_EXP</Value>
<Value>MPLS_TOP_LABEL_TYPE = 46</Value>
<Value>MPLS_TOP_LABEL_IP_ADDR</Value>
<Value>FLOW_SAMPLER_ID</Value>
<Value>FLOW_SAMPLER_MODE</Value>
<Value>FLOW_SAMPLER_RANDOM_INTERVAL</Value>
<Value>DST_TOS = 55</Value>
<Value>SRC_MAC</Value>
<Value>DST_MAC</Value>
<Value>SRC_VLAN</Value>
<Value>DST_VLAN</Value>
<Value>IP_PROTOCOL_VERSION</Value>
<Value>DIRECTION</Value>
<Value>IPV6_NEXT_HOP</Value>
<Value>BGP_IPV6_NEXT_HOP</Value>
<Value>IPV6_OPTION_HEADERS</Value>
<Value>MPLS_LABEL_1 = 70</Value>
<Value>MPLS_LABEL_2</Value>
<Value>MPLS_LABEL_3</Value>
<Value>MPLS_LABEL_4</Value>
<Value>MPLS_LABEL_5</Value>
<Value>MPLS_LABEL_6</Value>
<Value>MPLS_LABEL_7</Value>
<Value>MPLS_LABEL_8</Value>
<Value>MPLS_LABEL_9</Value>
<Value>MPLS_LABEL_10</Value>
</Entity>
<Entity type="Class">
<Name>Packet</Name>
<Access>Public</Access>
<Location left="1105" top="234" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Field">private Header _header</Member>
<Member type="Field">private List<FlowSet> _flowset</Member>
<Member type="Field">private Byte[] _bytes</Member>
<Member type="Constructor">public Packet(Byte[] bytes, Templates templates)</Member>
<Member type="Property">public Header Header { get; }</Member>
<Member type="Property">public FlowSet FlowSet { get; }</Member>
<Member type="Method">private void Parse(Templates templates)</Member>
<Member type="Method">public override string ToString()</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Header</Name>
<Access>Public</Access>
<Location left="717" top="379" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Field">private UInt16 _version</Member>
<Member type="Field">private UInt16 _count</Member>
<Member type="Field">private UInt32 _uptime</Member>
<Member type="Field">private Byte[] _bytes</Member>
<Member type="Field">private UInt32 _secs</Member>
<Member type="Field">private UInt32 _sequence</Member>
<Member type="Field">private UInt32 _id</Member>
<Member type="Property">public UInt16 Version { get; }</Member>
<Member type="Property">public UInt16 Count { get; }</Member>
<Member type="Property">public TimeSpan UpTime { get; }</Member>
<Member type="Property">public DateTime Secs { get; }</Member>
<Member type="Constructor">public Header(Byte[] bytes)</Member>
<Member type="Property">public UInt32 Sequence { get; }</Member>
<Member type="Property">public UInt32 ID { get; }</Member>
<Member type="Method">private void Parse()</Member>
<Modifier>None</Modifier>
</Entity>
<Entity type="Class">
<Name>Templates</Name>
<Access>Public</Access>
<Location left="365" top="379" />
<Size width="262" height="332" />
<Collapsed>False</Collapsed>
<Member type="Property">public List<Template> Templats { get; set; }</Member>
<Member type="Property">public Int32 Count { get; }</Member>
<Member type="Constructor">public Templates()</Member>
<Modifier>None</Modifier>
</Entity>
</Entities>
<Relationships>
<Relationship type="Association" first="1" second="0">
<Label>
</Label>
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Composition</AssociationType>
<StartMultiplicity>1</StartMultiplicity>
<EndMultiplicity>1..*</EndMultiplicity>
</Relationship>
<Relationship type="Association" first="2" second="1">
<Label>
</Label>
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Composition</AssociationType>
<StartMultiplicity>1</StartMultiplicity>
<EndMultiplicity>0..*</EndMultiplicity>
</Relationship>
<Relationship type="Association" first="4" second="2">
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Composition</AssociationType>
<StartMultiplicity>1</StartMultiplicity>
<EndMultiplicity>1..*</EndMultiplicity>
</Relationship>
<Relationship type="Association" first="4" second="5">
<Label>
</Label>
<StartOrientation>Horizontal</StartOrientation>
<EndOrientation>Horizontal</EndOrientation>
<Direction>Unidirectional</Direction>
<AssociationType>Composition</AssociationType>
<StartMultiplicity>1</StartMultiplicity>
<EndMultiplicity>1</EndMultiplicity>
</Relationship>
</Relationships>
</ProjectItem>
</Project>