Closed ddisaster closed 4 years ago
Thanks for this issue. We will look into it. Do you have a PR to fix this?
Not yet. Works for me for now by using this patch. But EventGroups no longer Works.
diff -u someip_sd_orig.py someip_sd.py
--- someip_sd_orig.py 2019-11-27 18:54:34.541247352 +0100
+++ someip_sd.py 2019-11-27 18:54:42.565233818 +0100
@@ -300,7 +300,7 @@
X3BytesField("res", 0),
FieldLenField("len_entry_array", None,
length_of="entry_array", fmt="!I"),
- PacketListField("entry_array", None, cls=_SDEntry,
+ PacketListField("entry_array", None, cls=SDEntry_Service,
length_from=lambda pkt: pkt.len_entry_array),
FieldLenField("len_option_array", None,
length_of="option_array", fmt="!I"),
Environment
How to reproduce
Result
Description
The first two outputs show the _SDEntry layer is added to the package. The others show that the type of each entry is always set to 0, while _SDEntry takes the type of the first entry.
Related resources
AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol.pdf - 4.1.2.3 Entry Format
@baarse @polybassa