]> git.ipfire.org Git - thirdparty/suricata.git/commit
capture: use uint16_t for max_pending_packets
authorJason Ish <jason.ish@oisf.net>
Wed, 3 May 2023 21:21:26 +0000 (15:21 -0600)
committerVictor Julien <vjulien@oisf.net>
Fri, 5 May 2023 08:22:47 +0000 (10:22 +0200)
commitb5fbdc3e5fa5c5b58824d2af845cfe8d11986a7c
tree83f291b212a7077fd79c7f7c79ccd00d859c70bb
parentbbe13885a2c3c7de4262ce0337143088510c1bbd
capture: use uint16_t for max_pending_packets

Use a fixed type of max_pending_packets instead of intmax_t which can
differ based on the platform/standard library.

Should also prevent lints about possible arithmetic overflow.
17 files changed:
src/runmode-af-packet.c
src/runmode-netmap.c
src/runmode-unittests.c
src/source-af-packet.c
src/source-erf-dag.c
src/source-ipfw.c
src/source-napatech.c
src/source-nfq.c
src/source-pcap-file-helper.c
src/source-pcap-file.c
src/source-pfring.c
src/suricata.c
src/tests/fuzz/fuzz_decodepcapfile.c
src/tests/fuzz/fuzz_predefpcap_aware.c
src/tests/fuzz/fuzz_sigpcap.c
src/tests/fuzz/fuzz_sigpcap_aware.c
src/tmqh-packetpool.c