You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
payload_length is initialized as null value during packet construction. The post_build function calculates the payload_length but it is invoked only when any process performed on packet.
Initially, the payload_length is null. It gets updated after this line of code: pickled_elem = pickle.dumps(doip_packet, protocol=pickle.HIGHEST_PROTOCOL)
During pickling, the post_build function is invoked, which calculates the actual payload_length and updates it.
I don’t think there’s any issue with pickling itself. I’m not entirely sure about the overall architecture. Should the post_build function be invoked immediately after packet construction to update the payload_length?
Brief description
Pickling and unpickling of a scapy.contrib.automotive.doip.DoIP package changes the value of
payload_length
Scapy version
2.6.1
Python version
3.12
Operating system
Windows 10
Additional environment information
No response
How to reproduce
Actual result
Expected result
Related resources
No response
The text was updated successfully, but these errors were encountered: