forked from seladb/PcapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestDefinition.h
276 lines (233 loc) · 8.53 KB
/
TestDefinition.h
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
#pragma once
#include "PcppTestFramework.h"
// Implemented in EthAndArpTests.cpp
PTF_TEST_CASE(OUILookup);
PTF_TEST_CASE(EthPacketCreation);
PTF_TEST_CASE(EthPacketPointerCreation);
PTF_TEST_CASE(EthAndArpPacketParsing);
PTF_TEST_CASE(ArpPacketCreation);
PTF_TEST_CASE(EthDot3LayerParsingTest);
PTF_TEST_CASE(EthDot3LayerCreateEditTest);
// Implemented in VlanMplsTests.cpp
PTF_TEST_CASE(VlanParseAndCreation);
PTF_TEST_CASE(QinQ802_1adParse);
PTF_TEST_CASE(MplsLayerTest);
PTF_TEST_CASE(VxlanParsingAndCreationTest);
// Implemented in IPv4Tests.cpp
PTF_TEST_CASE(IPv4PacketCreation);
PTF_TEST_CASE(IPv4PacketParsing);
PTF_TEST_CASE(IPv4FragmentationTest);
PTF_TEST_CASE(IPv4OptionsParsingTest);
PTF_TEST_CASE(IPv4OptionsEditTest);
PTF_TEST_CASE(IPv4UdpChecksum);
// Implemented in IPv6Tests.cpp
PTF_TEST_CASE(IPv6UdpPacketParseAndCreate);
PTF_TEST_CASE(IPv6FragmentationTest);
PTF_TEST_CASE(IPv6ExtensionsTest);
// Implemented in TcpTests.cpp
PTF_TEST_CASE(TcpPacketNoOptionsParsing);
PTF_TEST_CASE(TcpPacketWithOptionsParsing);
PTF_TEST_CASE(TcpPacketWithOptionsParsing2);
PTF_TEST_CASE(TcpMalformedPacketParsing);
PTF_TEST_CASE(TcpPacketCreation);
PTF_TEST_CASE(TcpPacketCreation2);
PTF_TEST_CASE(TcpChecksumInvalidRead);
PTF_TEST_CASE(TcpChecksumMultiBuffer);
// Implemented in PacketUtilsTests.cpp
PTF_TEST_CASE(PacketUtilsHash5TupleUdp);
PTF_TEST_CASE(PacketUtilsHash5TupleTcp);
PTF_TEST_CASE(PacketUtilsHash5TupleIPv6);
// Implemented in PacketTests.cpp
PTF_TEST_CASE(InsertDataToPacket);
PTF_TEST_CASE(CreatePacketFromBuffer);
PTF_TEST_CASE(InsertVlanToPacket);
PTF_TEST_CASE(RemoveLayerTest);
PTF_TEST_CASE(CopyLayerAndPacketTest);
PTF_TEST_CASE(PacketLayerLookupTest);
PTF_TEST_CASE(RawPacketTimeStampSetterTest);
PTF_TEST_CASE(ParsePartialPacketTest);
PTF_TEST_CASE(PacketTrailerTest);
PTF_TEST_CASE(ResizeLayerTest);
PTF_TEST_CASE(PrintPacketAndLayersTest);
PTF_TEST_CASE(ProtocolFamilyMembershipTest);
PTF_TEST_CASE(PacketParseLayerLimitTest);
// Implemented in HttpTests.cpp
PTF_TEST_CASE(HttpRequestParseMethodTest);
PTF_TEST_CASE(HttpRequestLayerParsingTest);
PTF_TEST_CASE(HttpRequestLayerCreationTest);
PTF_TEST_CASE(HttpRequestLayerEditTest);
PTF_TEST_CASE(HttpResponseParseStatusCodeTest);
PTF_TEST_CASE(HttpResponseParseVersionTest);
PTF_TEST_CASE(HttpResponseLayerParsingTest);
PTF_TEST_CASE(HttpResponseLayerCreationTest);
PTF_TEST_CASE(HttpResponseLayerEditTest);
PTF_TEST_CASE(HttpMalformedResponseTest);
// Implemented in PPPoETests.cpp
PTF_TEST_CASE(PPPoESessionLayerParsingTest);
PTF_TEST_CASE(PPPoESessionLayerCreationTest);
PTF_TEST_CASE(PPPoEDiscoveryLayerParsingTest);
PTF_TEST_CASE(PPPoEDiscoveryLayerCreateTest);
// Implemented in DnsTests.cpp
PTF_TEST_CASE(DnsLayerParsingTest);
PTF_TEST_CASE(DnsLayerQueryCreationTest);
PTF_TEST_CASE(DnsLayerResourceCreationTest);
PTF_TEST_CASE(DnsLayerEditTest);
PTF_TEST_CASE(DnsLayerRemoveResourceTest);
PTF_TEST_CASE(DnsOverTcpParsingTest);
PTF_TEST_CASE(DnsOverTcpCreationTest);
PTF_TEST_CASE(DnsLayerAddDnsKeyTest);
// Implemented in IcmpTests.cpp
PTF_TEST_CASE(IcmpParsingTest);
PTF_TEST_CASE(IcmpCreationTest);
PTF_TEST_CASE(IcmpEditTest);
// Implemented in SllNullLoopbackTests.cpp
PTF_TEST_CASE(SllPacketParsingTest);
PTF_TEST_CASE(SllPacketCreationTest);
PTF_TEST_CASE(NullLoopbackTest);
// Implemented in Sll2Tests.cpp
PTF_TEST_CASE(Sll2PacketParsingTest);
PTF_TEST_CASE(Sll2PacketCreationTest);
// Implemented in NflogTests.cpp
PTF_TEST_CASE(NflogPacketParsingTest);
// Implemented in GreTests.cpp
PTF_TEST_CASE(GreParsingTest);
PTF_TEST_CASE(GreCreationTest);
PTF_TEST_CASE(GreEditTest);
// Implemented in DhcpTests.cpp
PTF_TEST_CASE(DhcpParsingTest);
PTF_TEST_CASE(DhcpCreationTest);
PTF_TEST_CASE(DhcpEditTest);
// Implemented in SSLTests.cpp
PTF_TEST_CASE(SSLClientHelloParsingTest);
PTF_TEST_CASE(SSLExtensionWithZeroSizeTest);
PTF_TEST_CASE(SSLAppDataParsingTest);
PTF_TEST_CASE(SSLAlertParsingTest);
PTF_TEST_CASE(SSLMultipleRecordParsingTest);
PTF_TEST_CASE(SSLMultipleRecordParsing2Test);
PTF_TEST_CASE(SSLMultipleRecordParsing3Test);
PTF_TEST_CASE(SSLMultipleRecordParsing4Test);
PTF_TEST_CASE(SSLMultipleRecordParsing5Test);
PTF_TEST_CASE(SSLPartialCertificateParseTest);
PTF_TEST_CASE(SSLNewSessionTicketParseTest);
PTF_TEST_CASE(SSLMalformedPacketParsing);
PTF_TEST_CASE(TLS1_3ParsingTest);
PTF_TEST_CASE(TLSCipherSuiteTest);
PTF_TEST_CASE(ClientHelloTLSFingerprintTest);
PTF_TEST_CASE(ServerHelloTLSFingerprintTest);
// Implemented in IgmpTests.cpp
PTF_TEST_CASE(IgmpParsingTest);
PTF_TEST_CASE(IgmpCreateAndEditTest);
PTF_TEST_CASE(Igmpv3ParsingTest);
PTF_TEST_CASE(Igmpv3QueryCreateAndEditTest);
PTF_TEST_CASE(Igmpv3ReportCreateAndEditTest);
// Implemented in SipSdpTests.cpp
PTF_TEST_CASE(SipRequestParseMethodTest);
PTF_TEST_CASE(SipRequestLayerParsingTest);
PTF_TEST_CASE(SipRequestLayerCreationTest);
PTF_TEST_CASE(SipRequestLayerEditTest);
PTF_TEST_CASE(SipResponseParseStatusCodeTest);
PTF_TEST_CASE(SipResponseParseVersionCodeTest);
PTF_TEST_CASE(SipResponseLayerParsingTest);
PTF_TEST_CASE(SipResponseLayerCreationTest);
PTF_TEST_CASE(SipResponseLayerEditTest);
PTF_TEST_CASE(SdpLayerParsingTest);
PTF_TEST_CASE(SipNotSdpLayerParsingTest);
PTF_TEST_CASE(SdpLayerCreationTest);
PTF_TEST_CASE(SdpLayerEditTest);
// Implemented in RadiusTests.cpp
PTF_TEST_CASE(RadiusLayerParsingTest);
PTF_TEST_CASE(RadiusLayerCreationTest);
PTF_TEST_CASE(RadiusLayerEditTest);
// Implemented in GtpTests.cpp
PTF_TEST_CASE(GtpV1LayerParsingTest);
PTF_TEST_CASE(GtpV1LayerCreationTest);
PTF_TEST_CASE(GtpV1LayerEditTest);
PTF_TEST_CASE(GtpV2LayerParsingTest);
PTF_TEST_CASE(GtpV2LayerCreationTest);
PTF_TEST_CASE(GtpV2LayerEditTest);
// Implemented in BgpTests.cpp
PTF_TEST_CASE(BgpLayerParsingTest);
PTF_TEST_CASE(BgpLayerCreationTest);
PTF_TEST_CASE(BgpLayerEditTest);
// Implemented in SSHTests.cpp
PTF_TEST_CASE(SSHParsingTest);
PTF_TEST_CASE(SSHMalformedParsingTest);
// Implemented in IPSecTests.cpp
PTF_TEST_CASE(IPSecParsingTest);
// Implemented in DhcpV6Tests.cpp
PTF_TEST_CASE(DhcpV6ParsingTest);
PTF_TEST_CASE(DhcpV6CreationTest);
PTF_TEST_CASE(DhcpV6EditTest);
// Implemented in NtpTests.cpp
PTF_TEST_CASE(NtpMethodsTests);
PTF_TEST_CASE(NtpParsingV3Tests);
PTF_TEST_CASE(NtpParsingV4Tests);
PTF_TEST_CASE(NtpCreationTests);
// Implemented in TelnetTests.cpp
PTF_TEST_CASE(TelnetCommandParsingTests);
PTF_TEST_CASE(TelnetDataParsingTests);
// Implemented in IcmpV6Tests.cpp
PTF_TEST_CASE(IcmpV6ParsingTest);
PTF_TEST_CASE(IcmpV6CreationTest);
PTF_TEST_CASE(IcmpV6EditTest);
// Implemented in FtpTests.cpp
PTF_TEST_CASE(FtpParsingTests);
PTF_TEST_CASE(FtpCreationTests);
PTF_TEST_CASE(FtpEditTests);
// Implemented in LLCTests.cpp
PTF_TEST_CASE(LLCParsingTests);
PTF_TEST_CASE(LLCCreationTests);
// Implemented in StpTests.cpp
PTF_TEST_CASE(StpConfigurationParsingTests);
PTF_TEST_CASE(StpConfigurationCreationTests);
PTF_TEST_CASE(StpConfigurationEditTests);
PTF_TEST_CASE(StpTopologyChangeParsingTests);
PTF_TEST_CASE(StpTopologyChangeCreationTests);
PTF_TEST_CASE(StpTopologyChangeEditTests);
PTF_TEST_CASE(RapidStpParsingTests);
PTF_TEST_CASE(RapidStpCreationTests);
PTF_TEST_CASE(RapidStpEditTests);
PTF_TEST_CASE(MultipleStpParsingTests);
PTF_TEST_CASE(MultipleStpCreationTests);
PTF_TEST_CASE(MultipleStpEditTests);
// Implemented in SomeIpTests.cpp
PTF_TEST_CASE(SomeIpPortTest);
PTF_TEST_CASE(SomeIpParsingTest);
PTF_TEST_CASE(SomeIpCreationTest);
PTF_TEST_CASE(SomeIpTpParsingTest);
PTF_TEST_CASE(SomeIpTpCreationTest);
PTF_TEST_CASE(SomeIpTpEditTest);
// Implemented in SomeIpSdTests.cpp
PTF_TEST_CASE(SomeIpSdParsingTest);
PTF_TEST_CASE(SomeIpSdCreationTest);
// Implemented in WakeOnLanTests.cpp
PTF_TEST_CASE(WakeOnLanParsingTests);
PTF_TEST_CASE(WakeOnLanCreationTests);
PTF_TEST_CASE(WakeOnLanEditTests);
// Implemented in TpktTests.cpp
PTF_TEST_CASE(TpktLayerTest);
// Implemented in VrrpTests.cpp
PTF_TEST_CASE(VrrpParsingTest);
PTF_TEST_CASE(VrrpCreateAndEditTest);
// Implemented in CotpTests.cpp
PTF_TEST_CASE(CotpLayerTest);
// Implemented in S7commTests.cpp
PTF_TEST_CASE(S7CommLayerParsingTest);
PTF_TEST_CASE(S7CommLayerCreationTest);
// Implemented in SmtpTests.cpp
PTF_TEST_CASE(SmtpParsingTests);
PTF_TEST_CASE(SmtpCreationTests);
PTF_TEST_CASE(SmtpEditTests);
// Implemented in Asn1Tests.cpp
PTF_TEST_CASE(Asn1DecodingTest);
PTF_TEST_CASE(Asn1EncodingTest);
// Implemented in LdapTests.cpp
PTF_TEST_CASE(LdapParsingTest);
PTF_TEST_CASE(LdapCreationTest);
// Implemented in WireGuardTests.cpp
PTF_TEST_CASE(WireGuardHandshakeInitParsingTest);
PTF_TEST_CASE(WireGuardHandshakeRespParsingTest);
PTF_TEST_CASE(WireGuardCookieReplyParsingTest);
PTF_TEST_CASE(WireGuardTransportDataParsingTest);
PTF_TEST_CASE(WireGuardCreationTest);
PTF_TEST_CASE(WireGuardEditTest);