]> 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)
committerGuy Harris <[email protected]>
Sat, 10 Jul 2021 21:01:18 +0000 (14:01 -0700)
commit5ff873f0d277e10ad9deffa92b00b38cbfef4914
tree2b0fc4727637d0bc203ed3a72883d5e6d7822c47
parenta36b3aeb877e4357918cfd99ddad5ce913a3a0b6
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.
tcpdump.1.in
tcpdump.c