-
Notifications
You must be signed in to change notification settings - Fork 8
/
etl_Microsoft-Windows-PktMon-Events.npl
513 lines (513 loc) · 22.9 KB
/
etl_Microsoft-Windows-PktMon-Events.npl
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
//# (c) 2009 Microsoft Corporation
//#
//# Title: Microsoft-Windows-Microsoft-Windows-PktMon-Events
//#
//# Details:
//#
//# Public References: Microsoft-Windows-PktMon-Events.man
//#
//# Comments:
//#
//# Revision Class and Date:Minor, 8/16/2018
//#
//####
[RegisterBefore(NetEvent.UserData, MicrosoftWindowsPktMon, "{4d4f80d9-c8bd-4d73-bb5b-19c90402c5ac}")]
Protocol PktMon_MicrosoftWindowsPktMon = property.ETLSummary
{
[BuildConversationWithParent, conversation.ConversationDescription = ""]
switch(property.EventID)
{
case 10: [property.ETLSummary = this.ToString] PktMon_DriverEntryFailed DriverEntryFailed;
case 20: [property.ETLSummary = this.ToString] PktMon_ComponentInfo ComponentInfo;
case 30: [property.ETLSummary = this.ToString] PktMon_CompPropUint CompPropUint;
case 40: [property.ETLSummary = this.ToString] PktMon_CompPropGuid CompPropGuid;
case 50: [property.ETLSummary = this.ToString] PktMon_CompPropHex32 CompPropHex32;
case 60: [property.ETLSummary = this.ToString] PktMon_CompPropNdisMedium CompPropNdisMedium;
case 70: [property.ETLSummary = this.ToString] PktMon_CompPropBinary CompPropBinary;
case 73: [property.ETLSummary = this.ToString] PktMon_CompPropString CompPropString;
case 75: [property.ETLSummary = this.ToString] PktMon_CompPropEtherType CompPropEtherType;
case 80: [property.ETLSummary = this.ToString] PktMon_PacketDropCounters PacketDropCounters;
case 90: [property.ETLSummary = this.ToString] PktMon_PacketFlowCounters PacketFlowCounters;
case 100: [property.ETLSummary = this.ToString] PktMon_PktFilterIPv4 PktFilterIPv4;
case 110: [property.ETLSummary = this.ToString] PktMon_PktFilterIPv6 PktFilterIPv6;
case 120: [property.ETLSummary = this.ToString] PktMon_NblParsedIpv4 NblParsedIpv4;
case 130: [property.ETLSummary = this.ToString] PktMon_NblParsedIpv6 NblParsedIpv6;
case 140: [property.ETLSummary = this.ToString] PktMon_NblParsedDropIpv4 NblParsedDropIpv4;
case 150: [property.ETLSummary = this.ToString] PktMon_NblParsedDropIpv6 NblParsedDropIpv6;
case 160: [property.ETLSummary = this.ToString] PktMon_FramePayload FramePayload;
case 170: [property.ETLSummary = this.ToString] PktMon_FrameDropPayload FrameDropPayload;
case 180: [property.ETLSummary = this.ToString] PktMon_PktNblInfo PktNblInfo;
case 190: [property.ETLSummary = this.ToString] PktMon_PktDropNblInfo PktDropNblInfo;
default: [property.ETLSummary = "Not exist EventID"]struct{};
}
}
Table PktMon_ComponentType(value)
{
switch(value)
{
case 1: "NDIS";
case 2: "Miniport";
case 3: "Filter";
case 4: "Protocol";
case 5: "VmsVmNic";
case 6: "VmsMiniport";
case 7: "VmsExtMiniport";
case 8: "VmsProtocolNic";
case 9: "NetVsc Miniport";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_PropertyType(value)
{
switch(value)
{
case 1: "IfIndex";
case 2: "MiniportIfIndex";
case 3: "LowerIfIndex";
case 4: "IfGuid";
case 5: "NdisMedium";
case 6: "PhysAddress";
case 7: "EtherType";
case 8: "OptDataPath";
case 9: "NdisObject";
case 10: "VMSwitchName";
case 11: "VmsExtIfIndex";
case 12: "LowestIfIndex";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_NdisMedium(value)
{
switch(value)
{
case 0: "Ethernet";
case 16: "WiFi";
case 19: "MBB";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_PacketDirectionTag(value)
{
switch(value)
{
case 0: "None";
case 1: "In";
case 2: "Out";
case 3: "Rx";
case 4: "Tx";
case 5: "Ingress";
case 6: "Egress";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_PacketType(value)
{
switch(value)
{
case 0: "Unknown";
case 1: "Ethernet";
case 2: "WiFi";
case 3: "MBB";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_EtherType(value)
{
switch(value)
{
case 0x0800: "IPv4";
case 0x86DD: "IPv6";
case 0x0806: "ARP";
case 0x8100: "VLAN";
case 0x88CC: "LLDP";
case 0x88D9: "LLTD";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_IPProtocol(value)
{
switch(value)
{
case 0x01: "ICMP";
case 0x06: "TCP";
case 0x11: "UDP";
case 0x3A: "ICMPv6";
default:
FormatString("Unknown value: %d", value);
}
}
Table PktMon_DropReason(value)
{
switch(value)
{
case 0: "Unspecified";
case 1: "Invalid Data";
case 2: "Invalid Packet";
case 3: "Insufficient resources";
case 4: "Adapter not ready";
case 5: "Media Disconnected";
case 6: "Not accepted";
case 7: "Device busy";
case 8: "Filtered";
case 9: "Filtered VLAN";
case 10: "Unauthorized VLAN";
case 11: "Unauthorized MAC";
case 12: "Failed security policy";
case 13: "Failed pVlan setting";
case 14: "QoS drop";
case 15: "IPSec drop";
case 16: "Spoofed MAC address is not allowed";
case 17: "Failed DHCP guard";
case 18: "Failed Router Guard";
case 19: "Bridge is not allowed inside VM";
case 20: "Virtual Subnet ID does not match";
case 21: "Required vSwitch extension is missing";
case 22: "Creating vSwitch over another vSwitch is not allowed";
case 23: "MTU mismatch";
case 24: "Native forwarding required";
case 25: "Invalid VLAN format";
case 26: "Invalid destination MAC";
case 27: "Invalid source MAC";
case 28: "First NB too small";
case 29: "Windows Network Virtualization error";
case 30: "Storm limit exceeded";
case 31: "ICMP request injected by switch";
case 32: "Failed to update destination list";
case 33: "Destination NIC is disabled";
case 34: "Packet does not match destination NIC packet filter";
case 35: "vSwitch data flow is disabled";
case 36: "Port isolation setting does not allow untagged traffic";
case 37: "Invalid PD queue";
case 38: "Adapter is in low power state";
case 101: "Adapter paused";
case 102: "Adapter reset in progress";
case 103: "Send aborted";
case 104: "Unsupported EtherType";
case 201: "Microport error";
case 202: "VF not ready";
case 203: "Microport not ready";
case 204: "VMBus error";
default:
FormatString("Unknown value: %d", value);
}
}
struct PktMon_TCPFlags = Local.BitMapSummary
{
UINT8 BitfieldFIN:1 = FormatString("(%s) %s", this.ToBitString, this? "FIN":"");
UINT8 BitfieldSYN:1 = FormatString("(%s) %s", this.ToBitString, this? "SYN":"");
UINT8 BitfieldRST:1 = FormatString("(%s) %s", this.ToBitString, this? "RST":"");
UINT8 BitfieldPSH:1 = FormatString("(%s) %s", this.ToBitString, this? "PSH":"");
UINT8 BitfieldACK:1 = FormatString("(%s) %s", this.ToBitString, this? "ACK":"");
UINT8 BitfieldURG:1 = FormatString("(%s) %s", this.ToBitString, this? "URG":"");
UINT8 BitfieldECE:1 = FormatString("(%s) %s", this.ToBitString, this? "ECE":"");
UINT8 BitfieldCWR:1 = FormatString("(%s) %s", this.ToBitString, this? "CWR":"");
[Local.BitMapSummary =
(BitfieldFIN? "FIN" + " " : "") +
(BitfieldSYN? "SYN" + " " : "") +
(BitfieldRST? "RST" + " " : "") +
(BitfieldPSH? "PSH" + " " : "") +
(BitfieldACK? "ACK" + " " : "") +
(BitfieldURG? "URG" + " " : "") +
(BitfieldECE? "ECE" + " " : "") +
(BitfieldCWR? "CWR" + " " : "") +
""]
struct{}
}
Struct PktMon_DriverEntryFailed = FormatString("PktMon driver failed to load. Error: %s.", Status.ToString)
{
NTSTATUS Status;
}
Struct PktMon_ComponentInfo = FormatString("Component: Id %s, Type %s, Name %s, %s", Id.ToString, Type.ToString, Name.ToString, Description.ToString)
{
UINT16 Id;
UINT16 Type = PktMon_ComponentType(this);
UnicodeString Name;
UnicodeString Description;
}
Struct PktMon_CompPropUint = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UINT32 Value;
}
Struct PktMon_CompPropGuid = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
GUID(true) Value;
}
Struct PktMon_CompPropHex32 = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UINT32 Value;
}
Struct PktMon_CompPropNdisMedium = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UINT16 Value = PktMon_NdisMedium(this);
}
Struct PktMon_CompPropBinary = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UINT32 Size;
BLOB(Size) Value;
}
Struct PktMon_CompPropString = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, Value.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UnicodeString Value;
}
Struct PktMon_CompPropEtherType = FormatString("Property: Component Id %s, %s = %s", ComponentId.ToString, Type.ToString, EtherType.ToString)
{
UINT16 ComponentId;
UINT16 Type = PktMon_PropertyType(this);
UINT16 EtherType = PktMon_EtherType(this);
}
Struct PktMon_PacketDropCounters = FormatString("Drop Counters: Component Id %s, Direction In = %s, Packets In %s, Bytes In %s, Direction Out = %s, Packets Out %s, Bytes Out %s", ComponentId.ToString, DirTagIn.ToString, PacketsIn.ToString, BytesIn.ToString, DirTagOut.ToString, PacketsOut.ToString, BytesOut.ToString)
{
UINT16 ComponentId;
UINT16 DirTagIn = PktMon_PacketDirectionTag(this);
UINT64 PacketsIn;
UINT64 BytesIn;
UINT16 DirTagOut = PktMon_PacketDirectionTag(this);
UINT64 PacketsOut;
UINT64 BytesOut;
}
Struct PktMon_PacketFlowCounters = FormatString("Flow Counters: Component Id %s, Edge %s, Edge Id %s, Direction In = %s, Packets In %s, Bytes In %s, Direction Out = %s, Packets Out %s, Bytes Out %s", ComponentId.ToString, EdgeName.ToString, EdgeId.ToString, DirTagIn.ToString, PacketsIn.ToString, BytesIn.ToString, DirTagOut.ToString, PacketsOut.ToString, BytesOut.ToString)
{
UINT16 ComponentId;
UnicodeString EdgeName;
UINT16 EdgeId;
UINT16 DirTagIn = PktMon_PacketDirectionTag(this);
UINT64 PacketsIn;
UINT64 BytesIn;
UINT16 DirTagOut = PktMon_PacketDirectionTag(this);
UINT64 PacketsOut;
UINT64 BytesOut;
}
Struct PktMon_PktFilterIPv4 = FormatString("Packet Filter %s, Name %s, MAC-1 %s, MAC-2 %s, EtherType %s, VlanId %s, IP-1 %s, IP-2 %s, Protocol %s, Port-1 %s, Port-2 %s, TCPFlags %s", FilterId.ToString, FilterName.ToString, MacAddress1.ToString, MacAddress2.ToString, EtherType.ToString, VlanId.ToString, IpAddress1.ToString, IpAddress2.ToString, Protocol.ToString, Port1.ToString, Port2.ToString, TCPFlags.ToString)
{
UINT16 FilterId;
UnicodeString FilterName;
[DataFieldByteOrder = BigEndian]MacAddress MacAddress1;
[DataFieldByteOrder = BigEndian]MacAddress MacAddress2;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv4Address IpAddress1;
[DataFieldByteOrder = BigEndian]IPv4Address IpAddress2;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 Port1;
UINT16 Port2;
PktMon_TCPFlags TCPFlags;
}
Struct PktMon_PktFilterIPv6 = FormatString("Packet Filter %s, Name %s, MAC-1 %s, MAC-2 %s, EtherType %s, VlanId %s, IP-1 %s, IP-2 %s, Protocol %s, Port-1 %s, Port-2 %s, TCPFlags %s", FilterId.ToString, FilterName.ToString, MacAddress1.ToString, MacAddress2.ToString, EtherType.ToString, VlanId.ToString, IpAddress1.ToString, IpAddress2.ToString, Protocol.ToString, Port1.ToString, Port2.ToString, TCPFlags.ToString)
{
UINT16 FilterId;
UnicodeString FilterName;
[DataFieldByteOrder = BigEndian]MacAddress MacAddress1;
[DataFieldByteOrder = BigEndian]MacAddress MacAddress2;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv6Address IpAddress1;
[DataFieldByteOrder = BigEndian]IPv6Address IpAddress2;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 Port1;
UINT16 Port2;
PktMon_TCPFlags TCPFlags;
}
Struct PktMon_NblParsedIpv4 = FormatString("MAC Dest %s, MAC Src %s, EtherType %s, VlanId %s, IP Dest %s, IP Src %s, Protocol %s, Port Dest %s, Port Src %s, TCPFlags %s, PktGroupId %s, PktCount %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s", DestinationMAC.ToString, SourceMAC.ToString, EtherType.ToString, VlanId.ToString, DestinationIP.ToString, SourceIP.ToString, Protocol.ToString, DestinationPort.ToString, SourcePort.ToString, TCPFlags.ToString, PktGroupId.ToString, PktCount.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString)
{
[DataFieldByteOrder = BigEndian]MacAddress DestinationMAC;
[DataFieldByteOrder = BigEndian]MacAddress SourceMAC;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv4Address DestinationIP;
[DataFieldByteOrder = BigEndian]IPv4Address SourceIP;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 DestinationPort;
UINT16 SourcePort;
PktMon_TCPFlags TCPFlags;
UINT64 PktGroupId;
UINT16 PktCount;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
}
Struct PktMon_NblParsedIpv6 = FormatString("MAC Dest %s, MAC Src %s, EtherType %s, VlanId %s, IP Dest %s, IP Src %s, Protocol %s, Port Dest %s, Port Src %s, TCPFlags %s, PktGroupId %s, PktCount %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s", DestinationMAC.ToString, SourceMAC.ToString, EtherType.ToString, VlanId.ToString, DestinationIP.ToString, SourceIP.ToString, Protocol.ToString, DestinationPort.ToString, SourcePort.ToString, TCPFlags.ToString, PktGroupId.ToString, PktCount.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString)
{
[DataFieldByteOrder = BigEndian]MacAddress DestinationMAC;
[DataFieldByteOrder = BigEndian]MacAddress SourceMAC;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv6Address DestinationIP;
[DataFieldByteOrder = BigEndian]IPv6Address SourceIP;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 DestinationPort;
UINT16 SourcePort;
PktMon_TCPFlags TCPFlags;
UINT64 PktGroupId;
UINT16 PktCount;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
}
Struct PktMon_NblParsedDropIpv4 = FormatString("Drop: MAC Dest %s, MAC Src %s, EtherType %s, VlanId %s, IP Dest %s, IP Src %s, Protocol %s, Port Dest %s, Port Src %s, TCPFlags %s, PktGroupId %s, PktCount %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s, DropReason %s, DropLocation %s", DestinationMAC.ToString, SourceMAC.ToString, EtherType.ToString, VlanId.ToString, DestinationIP.ToString, SourceIP.ToString, Protocol.ToString, DestinationPort.ToString, SourcePort.ToString, TCPFlags.ToString, PktGroupId.ToString, PktCount.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString, DropReason.ToString, DropLocation.ToString)
{
[DataFieldByteOrder = BigEndian]MacAddress DestinationMAC;
[DataFieldByteOrder = BigEndian]MacAddress SourceMAC;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv4Address DestinationIP;
[DataFieldByteOrder = BigEndian]IPv4Address SourceIP;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 DestinationPort;
UINT16 SourcePort;
PktMon_TCPFlags TCPFlags;
UINT64 PktGroupId;
UINT16 PktCount;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
}
Struct PktMon_NblParsedDropIpv6 = FormatString("Drop: MAC Dest %s, MAC Src %s, EtherType %s, VlanId %s, IP Dest %s, IP Src %s, Protocol %s, Port Dest %s, Port Src %s, TCPFlags %s, PktGroupId %s, PktCount %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s, DropReason %s, DropLocation %s", DestinationMAC.ToString, SourceMAC.ToString, EtherType.ToString, VlanId.ToString, DestinationIP.ToString, SourceIP.ToString, Protocol.ToString, DestinationPort.ToString, SourcePort.ToString, TCPFlags.ToString, PktGroupId.ToString, PktCount.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString, DropReason.ToString, DropLocation.ToString)
{
[DataFieldByteOrder = BigEndian]MacAddress DestinationMAC;
[DataFieldByteOrder = BigEndian]MacAddress SourceMAC;
UINT16 EtherType = PktMon_EtherType(this);
UINT16 VlanId;
[DataFieldByteOrder = BigEndian]IPv6Address DestinationIP;
[DataFieldByteOrder = BigEndian]IPv6Address SourceIP;
UINT8 Protocol = PktMon_IPProtocol(this);
UINT16 DestinationPort;
UINT16 SourcePort;
PktMon_TCPFlags TCPFlags;
UINT64 PktGroupId;
UINT16 PktCount;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
}
Struct PktMon_FramePayload = FormatString("PktGroupId %s, PktNumber %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s, OriginalSize %s, LoggedSize %s", PktGroupId.ToString, PktNumber.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString, OriginalPayloadSize.ToString, LoggedPayloadSize.ToString)
{
UINT64 PktGroupId;
UINT16 PktNumber;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
UINT16 OriginalPayloadSize;
UINT16 LoggedPayloadSize;
[DataFieldByteOrder = BigEndian]
ETHERNET Ethernet;
}
Struct PktMon_FrameDropPayload = FormatString("Drop: PktGroupId %s, PktNumber %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter %s, DropReason %s, DropLocation %s, OriginalSize %s, LoggedSize %s", PktGroupId.ToString, PktNumber.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString, DropReason.ToString, DropLocation.ToString, OriginalPayloadSize.ToString, LoggedPayloadSize.ToString)
{
UINT64 PktGroupId;
UINT16 PktNumber;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
UINT16 OriginalPayloadSize;
UINT16 LoggedPayloadSize;
[DataFieldByteOrder = BigEndian]
ETHERNET Ethernet;
}
Struct PktMon_PktNblInfo = FormatString("TcpIpChecksum %s, TcpLargeSend %s, Ieee8021Q %s, HashInfo %s, HashValue %s, VirtualSubnetInfo %s, TcpRecvSegCoalesceInfo %s, NrtNameResolutionId %s, TcpSendOffloadsSupplementalInfo %s, SwitchForwardingDetail %s, GftOffloadInfo %s, GftFlowEntryId %s, PktGroupId %s, PktNumber %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter, %s", TcpIpChecksum.ToString, TcpLargeSend.ToString, Ieee8021Q.ToString, HashInfo.ToString, HashValue.ToString, VirtualSubnetInfo.ToString, TcpRecvSegCoalesceInfo.ToString, NrtNameResolutionId.ToString, TcpSendOffloadsSupplementalInfo.ToString, SwitchForwardingDetail.ToString, GftOffloadInfo.ToString, GftFlowEntryId.ToString, PktGroupId.ToString, PktNumber.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString)
{
UINT64 PktGroupId;
UINT16 PktNumber;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
EtlPtr TcpIpChecksum;
EtlPtr TcpLargeSend;
EtlPtr Ieee8021Q;
EtlPtr HashInfo;
EtlPtr HashValue;
EtlPtr VirtualSubnetInfo;
EtlPtr TcpRecvSegCoalesceInfo;
EtlPtr NrtNameResolutionId;
EtlPtr TcpSendOffloadsSupplementalInfo;
UINT64 SwitchForwardingDetail;
UINT64 GftOffloadInfo;
UINT64 GftFlowEntryId;
}
Struct PktMon_PktDropNblInfo = FormatString("Drop: TcpIpChecksum %s, TcpLargeSend %s, Ieee8021Q %s, HashInfo %s, HashValue %s, VirtualSubnetInfo %s, TcpRecvSegCoalesceInfo %s, NrtNameResolutionId %s, TcpSendOffloadsSupplementalInfo %s, SwitchForwardingDetail %s, GftOffloadInfo %s, GftFlowEntryId %s, PktGroupId %s, PktNumber %s, Appearance %s, Direction %s, Type %s, Component %s, Edge %s, Filter, %s, DropReason %s, DropLocation %s", TcpIpChecksum.ToString, TcpLargeSend.ToString, Ieee8021Q.ToString, HashInfo.ToString, HashValue.ToString, VirtualSubnetInfo.ToString, TcpRecvSegCoalesceInfo.ToString, NrtNameResolutionId.ToString, TcpSendOffloadsSupplementalInfo.ToString, SwitchForwardingDetail.ToString, GftOffloadInfo.ToString, GftFlowEntryId.ToString, PktGroupId.ToString, PktNumber.ToString, AppearanceCount.ToString, DirTag.ToString, PacketType.ToString, ComponentId.ToString, EdgeId.ToString, FilterId.ToString, DropReason.ToString, DropLocation.ToString)
{
UINT64 PktGroupId;
UINT16 PktNumber;
UINT16 AppearanceCount;
UINT16 DirTag = PktMon_PacketDirectionTag(this);
UINT16 PacketType = PktMon_PacketType(this);
UINT16 ComponentId;
UINT16 EdgeId;
UINT16 FilterId;
UINT32 DropReason = PktMon_DropReason(this);
UINT32 DropLocation;
EtlPtr TcpIpChecksum;
EtlPtr TcpLargeSend;
EtlPtr Ieee8021Q;
EtlPtr HashInfo;
EtlPtr HashValue;
EtlPtr VirtualSubnetInfo;
EtlPtr TcpRecvSegCoalesceInfo;
EtlPtr NrtNameResolutionId;
EtlPtr TcpSendOffloadsSupplementalInfo;
UINT64 SwitchForwardingDetail;
UINT64 GftOffloadInfo;
UINT64 GftFlowEntryId;
}
[RegisterBefore(EventDescriptor.DefaultKeyword, MicrosoftWindowsPktMon_Keyword, "{4d4f80d9-c8bd-4d73-bb5b-19c90402c5ac}")]
struct PktMon_MicrosoftWindowsPktMon_Keyword
{
UINT64 Config:1 = FormatString(" (%s) %s", this.ToBitString, this? "KW_CONFIG":"");
UINT64 Rundown:1 = FormatString(" (%s) %s", this.ToBitString, this? "KW_RUNDOWN":"");
UINT64 NblParsed:1 = FormatString("(%s) %s", this.ToBitString, this? "KW_NBL_PARSED":"");
UINT64 NblInfo:1 = FormatString(" (%s) %s", this.ToBitString, this? "KW_NBL_INFO":"");
UINT64 Payload:1 = FormatString(" (%s) %s", this.ToBitString, this? "KW_PKT_PAYLOAD":"");
UINT64 Reserved1:59 = FormatString("(%s)", this.ToBitString);
}