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
Thank you very much for your work on this awesome library.
I need to alter a packet that I am able to parse (using SlicedPacket::from_ip). Specifically, I need to be able to (i) alter the source IP, (ii) alter the source port, (iii) recompute the checksum and obtain a valid packet.
I can see some references to PacketBuilder, update_checksum_ipv4 and so on but I am curious what is the recommended (and most convenient) way to do this.
Warmest regards,
Shriphani
The text was updated successfully, but these errors were encountered:
I will see if I can add methods to simplify the checksum updating & writing in the future. But currently other features have a higher priority (or have been waiting for a longer time).
@JulianSchmid - this is related to the issue I was looking at. One thing that occurred to me was adding PacketBuilder::From<SlidedPacket> and PacketBuilder::From<ParsedHeaders> methods. It's more computationally expensive than just "change the IPs and recalculate the checksums" but is probably more general as well. Thoughts?
Thank you very much for your work on this awesome library.
I need to alter a packet that I am able to parse (using
SlicedPacket::from_ip
). Specifically, I need to be able to (i) alter the source IP, (ii) alter the source port, (iii) recompute the checksum and obtain a valid packet.I can see some references to
PacketBuilder
,update_checksum_ipv4
and so on but I am curious what is the recommended (and most convenient) way to do this.Warmest regards,
Shriphani
The text was updated successfully, but these errors were encountered: