Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unittests for pypy3.10 #4148

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 78 additions & 47 deletions test/contrib/automotive/ecu_am.uts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ecu.pair(tester)

= Simple check with RDBI and Negative Response

example_responses = \
[EcuResponse([EcuState(session=1)], responses=UDS() / UDS_RDBIPR(dataIdentifier=0x1234) / Raw(b"deadbeef"))]
example_responses = [
EcuResponse([EcuState(session=1)], responses=UDS() / UDS_RDBIPR(dataIdentifier=0x1234) / Raw(b"deadbeef"))]

success = False
answering_machine = EcuAnsweringMachine(supported_responses=example_responses, main_socket=ecu, basecls=UDS, verbose=False)
Expand Down Expand Up @@ -54,11 +54,11 @@ assert success

= Simple check with different Sessions

example_responses = \
[EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=[3, 4]), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5, 6, 7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=[8, 9]), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4"))]
example_responses = [
EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=[3, 4]), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5, 6, 7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=[8, 9]), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4"))]

success = False

Expand Down Expand Up @@ -100,22 +100,33 @@ assert success

= Simple check with different Sessions and diagnosticSessionControl

example_responses = \
[EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=range(3,5)), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5,6,7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=9), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=1, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=2, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=3, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=4, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=5, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=6, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=7, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0,8))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=8, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(8,10))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead1")),
EcuResponse([EcuState(), EcuState(session=range(8,10))], responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead2")),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]
example_responses = [
EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=range(3, 5)), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5, 6, 7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=9), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=1, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=2, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=3, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=4, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=5, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=6, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=7, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(0, 8))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=8, sessionParameterRecord=b"dead")),
EcuResponse([EcuState(), EcuState(session=range(8, 10))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead1")),
EcuResponse([EcuState(), EcuState(session=range(8, 10))],
responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead2")),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

success = False

Expand Down Expand Up @@ -182,15 +193,21 @@ def custom_answers(resp, req):
return resp.answers(req)
return False

example_responses = \
[EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=range(3,5)), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5,6,7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=[9, 10]), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4")),
EcuResponse(EcuState(session=range(0,8)), responses=UDS() / UDS_DSCPR(diagnosticSessionType=1, sessionParameterRecord=b"dead"), answers=custom_answers),
EcuResponse(EcuState(session=range(8,10)), responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead1")),
EcuResponse(EcuState(session=range(8,10)), responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead2")),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

example_responses = [
EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=range(3, 5)), responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=[5, 6, 7]), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef3")),
EcuResponse(EcuState(session=[9, 10]), responses=UDS() / UDS_RDBIPR(dataIdentifier=9) / Raw(b"deadbeef4")),
EcuResponse(EcuState(session=range(0, 8)),
responses=UDS() / UDS_DSCPR(diagnosticSessionType=1, sessionParameterRecord=b"dead"),
answers=custom_answers),
EcuResponse(EcuState(session=range(8, 10)),
responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead1")),
EcuResponse(EcuState(session=range(8, 10)),
responses=UDS() / UDS_DSCPR(diagnosticSessionType=9, sessionParameterRecord=b"dead2")),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

success = False

Expand Down Expand Up @@ -261,11 +278,16 @@ def custom_answers(resp, req):
return resp.answers(req) and req.securityKey == security_seed + security_seed
return False

example_responses = \
[EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234"), answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_SAPR(securityAccessType=2), answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

example_responses = [
EcuResponse(EcuState(session=range(0, 255)), responses=UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234"),
answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)), responses=UDS() / UDS_SAPR(securityAccessType=2),
answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

success = False

Expand Down Expand Up @@ -308,11 +330,15 @@ def custom_answers(resp, req):
return resp.answers(req) and req.securityKey == security_seed + security_seed
return False

example_responses = \
[EcuResponse(EcuState(session=range(0,255)), responses=[UDS()/UDS_NR(negativeResponseCode=0x78, requestServiceId=0x27), UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234")], answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_SAPR(securityAccessType=2), answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]
example_responses = [EcuResponse(EcuState(session=range(0,255)), responses=[
UDS() / UDS_NR(negativeResponseCode=0x78, requestServiceId=0x27),
UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234")], answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)), responses=UDS() / UDS_SAPR(securityAccessType=2),
answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

success = False

Expand Down Expand Up @@ -355,11 +381,16 @@ def custom_answers(resp, req):
return resp.answers(req) and req.securityKey == security_seed + security_seed
return False

example_responses = \
[EcuResponse(EcuState(session=range(0,255)), responses=[UDS()/UDS_NR(negativeResponseCode=0x78, requestServiceId=0x27), UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234")], answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_SAPR(securityAccessType=2), answers=custom_answers),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]
example_responses = [EcuResponse(EcuState(session=range(0, 255)),
responses=[UDS() / UDS_NR(negativeResponseCode=0x78, requestServiceId=0x27),
UDS() / UDS_SAPR(securityAccessType=1, securitySeed=b"1234")],
answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)), responses=UDS() / UDS_SAPR(securityAccessType=2),
answers=custom_answers),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x35, requestServiceId=0x27)),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x10))]

conf.contribs['UDS']['treat-response-pending-as-answer'] = True

Expand Down
3 changes: 1 addition & 2 deletions test/contrib/automotive/interface_mockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ def exit_if_no_isotp_module():
# ############################################################################
# """ Save configuration """
# ############################################################################
conf.contribs['ISOTP'] = \
{'use-can-isotp-kernel-module': ISOTP_KERNEL_MODULE_AVAILABLE}
conf.contribs['ISOTP'] = {'use-can-isotp-kernel-module': ISOTP_KERNEL_MODULE_AVAILABLE}

# ############################################################################
# """ reload ISOTP kernel module in case configuration changed """
Expand Down
12 changes: 4 additions & 8 deletions test/contrib/automotive/obd/obd.uts
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,8 @@ assert p.data_records[0].turbo_a_compressor_outlet_temperature_supported == 1
assert p.data_records[0].turbo_a_compressor_inlet_temperature_supported == 0
assert p.data_records[0].turbocharger_a_compressor_inlet_temperature == 0x00-40
assert p.data_records[0].turbocharger_a_compressor_outlet_temperature == 0x11-40
assert p.data_records[0].turbocharger_a_turbine_inlet_temperature == \
round((0x2233 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_outlet_temperature == \
round((0x4455 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_inlet_temperature == round((0x2233 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_outlet_temperature == round((0x4455 * 0.1) - 40, 3)

r = OBD(b'\x01\x75')
assert p.answers(r)
Expand Down Expand Up @@ -441,10 +439,8 @@ assert p.data_records[0].turbo_a_compressor_outlet_temperature_supported == 1
assert p.data_records[0].turbo_a_compressor_inlet_temperature_supported == 0
assert p.data_records[0].turbocharger_a_compressor_inlet_temperature == 0x00 - 40
assert p.data_records[0].turbocharger_a_compressor_outlet_temperature == 0x11 - 40
assert p.data_records[0].turbocharger_a_turbine_inlet_temperature == \
round((0x2233 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_outlet_temperature == \
round((0x4455 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_inlet_temperature == round((0x2233 * 0.1) - 40, 3)
assert p.data_records[0].turbocharger_a_turbine_outlet_temperature == round((0x4455 * 0.1) - 40, 3)
r = OBD(b'\x02\x75\x00')
assert p.answers(r)

Expand Down
3 changes: 1 addition & 2 deletions test/contrib/automotive/scanner/graph.uts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ g.add_edge(("5", "6"))

print(g.dijkstra(g, "1", "6"))

assert g.dijkstra(g, "1", "6") == ["1", "2", "3", "5", "6"] or \
g.dijkstra(g, "1", "6") == ['1', '4', '3', '5', '6']
assert g.dijkstra(g, "1", "6") == ["1", "2", "3", "5", "6"] or g.dijkstra(g, "1", "6") == ['1', '4', '3', '5', '6']

g.add_edge(("2", "5"))

Expand Down
15 changes: 9 additions & 6 deletions test/contrib/automotive/scanner/staged_test_case.uts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ class MyTestCase1(AutomotiveTestCase):
_description = "MyTestCase1"
@property
def supported_responses(self):
return [EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"de")),
EcuResponse([EcuState(session=2), EcuState(security_level=6)], responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"dea2")),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x13))]
return [EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=2) / Raw(b"de")),
EcuResponse([EcuState(session=2), EcuState(security_level=6)],
responses=UDS() / UDS_RDBIPR(dataIdentifier=3) / Raw(b"dea2")),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x7f, requestServiceId=0x13))]


class MyTestCase2(AutomotiveTestCase):
_description = "MyTestCase2"
@property
def supported_responses(self):
return [EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=6) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=range(0,255)), responses=UDS() / UDS_NR(negativeResponseCode=0x10, requestServiceId=0x11))]
return [EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=5) / Raw(b"deadbeef1")),
EcuResponse(EcuState(session=2), responses=UDS() / UDS_RDBIPR(dataIdentifier=6) / Raw(b"deadbeef2")),
EcuResponse(EcuState(session=range(0, 255)),
responses=UDS() / UDS_NR(negativeResponseCode=0x10, requestServiceId=0x11))]


= Create instance of stage test
Expand Down
3 changes: 1 addition & 2 deletions test/contrib/automotive/scanner/test_case.uts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ try:
assert False
except Scapy_Exception as e:
assert "Keyword-Value" in str(e)
assert "is not instance of type <class 'int'>" in str(e) or \
"is not instance of type <type 'int'>" in str(e)
assert "is not instance of type <class 'int'>" in str(e) or "is not instance of type <type 'int'>" in str(e)

= Create instance of test class

Expand Down
2 changes: 2 additions & 0 deletions test/contrib/automotive/scanner/uds_scanner.uts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ from scapy.contrib.automotive.ecu import *

load_layer("can")

conf.debug_dissector = False


= Define Testfunction

Expand Down
14 changes: 0 additions & 14 deletions test/contrib/automotive/uds.uts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,20 +1046,6 @@ assert rdtcipr.DTCCount == 0xddaa

assert rdtcipr.answers(rdtci)

rdtcipr1 = UDS(b'\x59\x02\xff\x11\x07\x11\'\x022\x12\'\x01\x07\x11\'\x01\x18\x12\'\x01\x13\x12\'\x01"\x11\'\x06C\x00\'\x06S\x00\'\x161\x00\'\x14\x03\x12\'')

assert len(rdtcipr1.DTCAndStatusRecord) == 10
assert rdtcipr1.DTCAndStatusRecord[0].dtc.system == 0
assert rdtcipr1.DTCAndStatusRecord[0].dtc.type == 1
assert rdtcipr1.DTCAndStatusRecord[0].dtc.numeric_value_code == 263
assert rdtcipr1.DTCAndStatusRecord[0].dtc.additional_information_code == 17
assert rdtcipr1.DTCAndStatusRecord[0].status == 0x27
assert rdtcipr1.DTCAndStatusRecord[-1].dtc.system == 0
assert rdtcipr1.DTCAndStatusRecord[-1].dtc.type == 1
assert rdtcipr1.DTCAndStatusRecord[-1].dtc.numeric_value_code == 1027
assert rdtcipr1.DTCAndStatusRecord[-1].dtc.additional_information_code == 18
assert rdtcipr1.DTCAndStatusRecord[-1].status == 0x27

= Check UDS_RDTCI

rdtci = UDS(b'\x19\x02\xff')
Expand Down
23 changes: 11 additions & 12 deletions test/contrib/bp.uts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@

from scapy.contrib.ltp import LTPex

pkt = Ether(src="aa:aa:aa:aa:aa:aa", dst="bb:bb:bb:bb:bb:bb")/IP(src="192.168.0.1", dst="192.168.0.2")/UDP()/LTP(flags=7,\
SessionOriginator=2,
SessionNumber=113,
HeaderExtensions=[
LTPex(ExTag=1, ExData=b"\x00"),
],
DATA_ClientServiceID=1,
DATA_PayloadOffset=0,
LTP_Payload=[
BP(ProcFlags=415)/\
BPBLOCK(ProcFlags=10, load="data")
])
pkt = Ether(src="aa:aa:aa:aa:aa:aa", dst="bb:bb:bb:bb:bb:bb") / IP(src="192.168.0.1", dst="192.168.0.2") / UDP() / LTP(
flags=7, SessionOriginator=2,
SessionNumber=113,
HeaderExtensions=[
LTPex(ExTag=1, ExData=b"\x00"),
],
DATA_ClientServiceID=1,
DATA_PayloadOffset=0,
LTP_Payload=[
BP(ProcFlags=415) / BPBLOCK(ProcFlags=10, load="data")
])

pkt = Ether(raw(pkt))
assert LTP in pkt
Expand Down
Loading