Skip to content

Commit cae1b1d

Browse files
committed
code cleanup
1 parent 84fbec1 commit cae1b1d

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

pytcp/tests/integration/test__packet_handler__ip4__rx.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
# Destination MAC : 02:00:00:00:00:07
8989
# Source MAC : 02:00:00:00:00:91
9090
# Ethertype : 0x0800 (IPv4)
91-
# Frame length : 52 bytes
91+
# Frame length : 66 bytes
9292
#
9393
# IPv4 (fragment A1)
9494
# Total Length : 0x0034 (52 bytes)
@@ -113,7 +113,7 @@
113113
# Destination MAC : 02:00:00:00:00:07
114114
# Source MAC : 02:00:00:00:00:91
115115
# Ethertype : 0x0800 (IPv4)
116-
# Frame length : 140 bytes
116+
# Frame length : 154 bytes
117117
#
118118
# IPv4 (fragment B2)
119119
# Total Length : 0x008c (140 bytes)
@@ -124,7 +124,7 @@
124124
# Source IP : 10.0.1.91
125125
# Destination IP : 10.0.1.7
126126
#
127-
# Payload: mid-stream UDP data continuing from fragment A1.
127+
# Payload: mid-stream UDP data continuing from fragment B1.
128128
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
129129
b"\x00\x8c\x05\x5a\x20\x09\x40\x11\x3e\x9d\x0a\x00\x01\x5b\x0a\x00"
130130
b"\x01\x07\x34\x96\x1a\xee\x1b\x2a\xf5\xce\x48\xe1\x33\x57\xcd\x29"
@@ -139,7 +139,7 @@
139139
# Destination MAC : 02:00:00:00:00:07
140140
# Source MAC : 02:00:00:00:00:91
141141
# Ethertype : 0x0800 (IPv4)
142-
# Frame length : 52 bytes
142+
# Frame length : 66 bytes
143143
#
144144
# IPv4 (fragment A1 repeat)
145145
# Total Length : 0x0034 (52 bytes)
@@ -165,7 +165,7 @@
165165
# Destination MAC : 02:00:00:00:00:07
166166
# Source MAC : 02:00:00:00:00:91
167167
# Ethertype : 0x0800 (IPv4)
168-
# Frame length : 36 bytes
168+
# Frame length : 50 bytes
169169
#
170170
# IPv4 (fragment A4)
171171
# Total Length : 0x0024 (36 bytes)
@@ -177,7 +177,7 @@
177177
# Source IP : 10.0.1.91
178178
# Destination IP : 10.0.1.7
179179
#
180-
# Summary: Fourth IPv4 fragment of flow A covering payload bytes 96–131.
180+
# Summary: Fourth IPv4 fragment of flow A covering payload bytes 96–111.
181181
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
182182
b"\x00\x24\x42\xc7\x20\x0c\x40\x11\x01\x95\x0a\x00\x01\x5b\x0a\x00"
183183
b"\x01\x07\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a"
@@ -186,7 +186,7 @@
186186
# Destination MAC : 02:00:00:00:00:07
187187
# Source MAC : 02:00:00:00:00:91
188188
# Ethertype : 0x0800 (IPv4)
189-
# Frame length : 116 bytes
189+
# Frame length : 130 bytes
190190
#
191191
# IPv4 (fragment B3)
192192
# Total Length : 0x0074 (116 bytes)
@@ -198,7 +198,7 @@
198198
# Source IP : 10.0.1.91
199199
# Destination IP : 10.0.1.7
200200
#
201-
# Summary: Final IPv4 fragment of flow B finishing payload bytes 192–307.
201+
# Summary: Final IPv4 fragment of flow B finishing payload bytes 192–287.
202202
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
203203
b"\x00\x74\x05\x5a\x00\x18\x40\x11\x5e\xa6\x0a\x00\x01\x5b\x0a\x00"
204204
b"\x01\x07\xda\x0a\x47\x3a\x41\xff\x8a\x09\x38\xff\x31\x87\xcc\x99"
@@ -212,7 +212,7 @@
212212
# Destination MAC : 02:00:00:00:00:07
213213
# Source MAC : 02:00:00:00:00:91
214214
# Ethertype : 0x0800 (IPv4)
215-
# Frame length : 60 bytes
215+
# Frame length : 74 bytes
216216
#
217217
# IPv4 (fragment A2)
218218
# Total Length : 0x003c (60 bytes)
@@ -224,7 +224,7 @@
224224
# Source IP : 10.0.1.91
225225
# Destination IP : 10.0.1.7
226226
#
227-
# Summary: Second IPv4 fragment of flow A carrying payload bytes 32–59.
227+
# Summary: Second IPv4 fragment of flow A carrying payload bytes 32–71.
228228
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
229229
b"\x00\x3c\x42\xc7\x20\x04\x40\x11\x01\x85\x0a\x00\x01\x5b\x0a\x00"
230230
b"\x01\x07\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a"
@@ -234,7 +234,7 @@
234234
# Destination MAC : 02:00:00:00:00:07
235235
# Source MAC : 02:00:00:00:00:91
236236
# Ethertype : 0x0800 (IPv4)
237-
# Frame length : 92 bytes
237+
# Frame length : 106 bytes
238238
#
239239
# IPv4 (fragment B1)
240240
# Total Length : 0x005c (92 bytes)
@@ -262,7 +262,7 @@
262262
# Destination MAC : 02:00:00:00:00:07
263263
# Source MAC : 02:00:00:00:00:91
264264
# Ethertype : 0x0800 (IPv4)
265-
# Frame length : 48 bytes
265+
# Frame length : 62 bytes
266266
#
267267
# IPv4 (fragment A5)
268268
# Total Length : 0x0030 (48 bytes)
@@ -274,7 +274,7 @@
274274
# Source IP : 10.0.1.91
275275
# Destination IP : 10.0.1.7
276276
#
277-
# Summary: Final IPv4 fragment of flow A delivering payload bytes 592–639.
277+
# Summary: Final IPv4 fragment of flow A delivering payload bytes 112–139.
278278
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
279279
b"\x00\x30\x42\xc7\x00\x0e\x40\x11\x21\x87\x0a\x00\x01\x5b\x0a\x00"
280280
b"\x01\x07\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a"
@@ -283,7 +283,7 @@
283283
# Destination MAC : 02:00:00:00:00:07
284284
# Source MAC : 02:00:00:00:00:91
285285
# Ethertype : 0x0800 (IPv4)
286-
# Frame length : 48 bytes
286+
# Frame length : 62 bytes
287287
#
288288
# IPv4 (fragment A5 repeat)
289289
# Total Length : 0x0030 (48 bytes)
@@ -295,7 +295,7 @@
295295
# Source IP : 10.0.1.91
296296
# Destination IP : 10.0.1.7
297297
#
298-
# Summary: Duplicate transmission of fragment A5 to emulate replay conditions.
298+
# Summary: Duplicate transmission of fragment A5 covering payload bytes 112–139 to emulate replay conditions.
299299
b"\x02\x00\x00\x00\x00\x07\x02\x00\x00\x00\x00\x91\x08\x00\x45\x00"
300300
b"\x00\x30\x42\xc7\x00\x0e\x40\x11\x21\x87\x0a\x00\x01\x5b\x0a\x00"
301301
b"\x01\x07\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a"
@@ -304,7 +304,7 @@
304304
# Destination MAC : 02:00:00:00:00:07
305305
# Source MAC : 02:00:00:00:00:91
306306
# Ethertype : 0x0800 (IPv4)
307-
# Frame length : 44 bytes
307+
# Frame length : 58 bytes
308308
#
309309
# IPv4 (fragment A3)
310310
# Total Length : 0x002c (44 bytes)
@@ -327,7 +327,7 @@
327327
# Destination MAC : 02:00:00:00:00:91
328328
# Source MAC : 02:00:00:00:00:07
329329
# Ethertype : 0x0800 (IPv4)
330-
# Frame length : 308 bytes
330+
# Frame length : 322 bytes
331331
#
332332
# IPv4
333333
# Total Length : 0x0134 (308 bytes)
@@ -370,7 +370,7 @@
370370
# Destination MAC : 02:00:00:00:00:91
371371
# Source MAC : 02:00:00:00:00:07
372372
# Ethertype : 0x0800 (IPv4)
373-
# Frame length : 160 bytes
373+
# Frame length : 174 bytes
374374
#
375375
# IPv4
376376
# Total Length : 0x00a0 (160 bytes)
@@ -428,7 +428,7 @@
428428
# Destination MAC : 02:00:00:00:00:07
429429
# Source MAC : 02:00:00:00:00:91
430430
# Ethertype : 0x0800 (IPv4)
431-
# Frame length : 1500 bytes
431+
# Frame length : 1514 bytes
432432
#
433433
# IPv4 (fragment A1)
434434
# Total Length : 0x05dc (1500 bytes)
@@ -544,7 +544,7 @@
544544
# Destination MAC : 02:00:00:00:00:07
545545
# Source MAC : 02:00:00:00:00:91
546546
# Ethertype : 0x0800 (IPv4)
547-
# Frame length : 1500 bytes
547+
# Frame length : 1514 bytes
548548
#
549549
# IPv4 (fragment A2)
550550
# Total Length : 0x05dc (1500 bytes)
@@ -656,7 +656,7 @@
656656
# Destination MAC : 02:00:00:00:00:07
657657
# Source MAC : 02:00:00:00:00:91
658658
# Ethertype : 0x0800 (IPv4)
659-
# Frame length : 1500 bytes
659+
# Frame length : 1514 bytes
660660
#
661661
# IPv4 (fragment A3)
662662
# Total Length : 0x05dc (1500 bytes)
@@ -768,7 +768,7 @@
768768
# Destination MAC : 02:00:00:00:00:07
769769
# Source MAC : 02:00:00:00:00:91
770770
# Ethertype : 0x0800 (IPv4)
771-
# Frame length : 1500 bytes
771+
# Frame length : 1514 bytes
772772
#
773773
# IPv4 (fragment A4)
774774
# Total Length : 0x05dc (1500 bytes)
@@ -880,7 +880,7 @@
880880
# Destination MAC : 02:00:00:00:00:07
881881
# Source MAC : 02:00:00:00:00:91
882882
# Ethertype : 0x0800 (IPv4)
883-
# Frame length : 143 bytes
883+
# Frame length : 157 bytes
884884
#
885885
# IPv4 (fragment A5)
886886
# Total Length : 0x008f (143 bytes)
@@ -909,7 +909,7 @@
909909
# Destination MAC : 02:00:00:00:00:91
910910
# Source MAC : 02:00:00:00:00:07
911911
# Ethertype : 0x0800 (IPv4)
912-
# Frame length : 1500 bytes
912+
# Frame length : 1514 bytes
913913
#
914914
# IPv4 (fragment 1)
915915
# Total Length : 0x05dc (1500 bytes)
@@ -1021,7 +1021,7 @@
10211021
# Destination MAC : 02:00:00:00:00:91
10221022
# Source MAC : 02:00:00:00:00:07
10231023
# Ethertype : 0x0800 (IPv4)
1024-
# Frame length : 1500 bytes
1024+
# Frame length : 1514 bytes
10251025
#
10261026
# IPv4 (fragment R2)
10271027
# Total Length : 0x05dc (1500 bytes)
@@ -1133,7 +1133,7 @@
11331133
# Destination MAC : 02:00:00:00:00:91
11341134
# Source MAC : 02:00:00:00:00:07
11351135
# Ethertype : 0x0800 (IPv4)
1136-
# Frame length : 1500 bytes
1136+
# Frame length : 1514 bytes
11371137
#
11381138
# IPv4 (fragment R3)
11391139
# Total Length : 0x05dc (1500 bytes)
@@ -1245,7 +1245,7 @@
12451245
# Destination MAC : 02:00:00:00:00:91
12461246
# Source MAC : 02:00:00:00:00:07
12471247
# Ethertype : 0x0800 (IPv4)
1248-
# Frame length : 1500 bytes
1248+
# Frame length : 1514 bytes
12491249
#
12501250
# IPv4
12511251
# Total Length : 0x05dc (1500 bytes)
@@ -1357,7 +1357,7 @@
13571357
# Destination MAC : 02:00:00:00:00:91
13581358
# Source MAC : 02:00:00:00:00:07
13591359
# Ethertype : 0x0800 (IPv4)
1360-
# Frame length : 143 bytes
1360+
# Frame length : 157 bytes
13611361
#
13621362
# IPv4 (fragment R5)
13631363
# Total Length : 0x008f (143 bytes)

0 commit comments

Comments
 (0)