On 10Giga or more faster link, usage of pkt-gen ask often to generate large number of packet.
But current packet counter (-n option) is a int and core dump if we ask more than 2^31 packets.
This proposal change int to uint32_t for this counter but should it be bigger like an uint64_t ?
Details
Details
Before: pkt-gen with option "-n 4000000000" generate a core dump
After: it's works.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 3820 Build 3863: arc lint + arc unit
Event Timeline
Comment Actions
Still to be commited. But I'm not a src commiter (just port under mentoring), then I was not sure that just one "accepted review" is enough for allowing me to commit it directly.
By the way, this patch was accepted upstream too (https://github.com/luigirizzo/netmap/pull/211).