Closed StackOverflowExcept1on closed 1 year ago
Oh, it breaks tests but I think for PacketBuilder::ipv4(...)
randomization should be useful
Hi,
Thanks for the PR, but I think I will not merge it for the following reasons:
rand
as a dependency is something I would like to avoid.Sorry Julian
I don't know how to add ipv4(..., identification)
without break compatibility with existing API. Well, we could make an internal function for this, add a parameter there like Option<u16>
. Then do something like
ipv4_with_identification(..., _: u16)
Update: maybe it does not comfortable enough but there is packet_builder.ip()
to solve that
I see that it defaults to zero and that's not good. If you are going to generate fake IP packets, then this feature can detect you