Open daulis opened 2 years ago
I showed you this one last week, but still wanted to log something, in case other people have the same issue. For now, I think use_ek=False
will be good enough for us.
(Thanks again for the help, and it was nice to meet you!)
@daulis I'm not yet sure why this is necessary, but this should work:
print(pkt_ek.cipcm.get("cip_cip_path_segment_type"))
Or just
print(pkt_ek.cipcm.cip_cip_path_segment_type)
Describe the bug When using ek mode, I'm unable to access field names that do not match protocol layer name
eg: In the attached
field_name_different_from_protocol_layer.pcapng
, 'cip.path_segment.type' is in both 'cip' and 'cipcm' protocol layer, and has different values in each layer. But, I'm only able to access those values in the 'cipcm' protocol layer when usinguse_ek=False
.To Reproduce
Expected behavior I would expect to be able to access all values, using the get() syntax:
pkt_ek.cipcm.get("cip.path_segment.type")
Versions (please complete the following information):
Example pcap / packet field_name_different_from_protocol_layer.pcapng.txt (This is really a pcap file, but GitHub doesn't like them)