]> The Tcpdump Group git mirrors - tcpdump/commit
Improve the handling of size suffixes for -C.
authorGuy Harris <[email protected]>
Sat, 10 Jul 2021 21:01:18 +0000 (14:01 -0700)
committerfxlb <[email protected]>
Fri, 28 Mar 2025 14:44:07 +0000 (14:44 +0000)
commit8688ea6a7ffa6dedc1b1a2ec306ed0c6896df04f
tree8a0e85267f15a1795f7bca90085e4650519b9010
parent002e3c82ce1df990fe9aaf7b60b61e293fecc017
Improve the handling of size suffixes for -C.

Support upper-case suffixes (K/M/G) as well as lower-case suffixes.

Make sure nothing *follows* the suffix.

We don't need to check for the suffix before parsing the number; the
parsing routines stop if they see a non-digit character.

(cherry picked from commit 5ff873f0d277e10ad9deffa92b00b38cbfef4914)
tcpdump.1.in
tcpdump.c