]> git.gsnw.org Git - fping.git/commit
also apply generator limit to use with CIDR
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 7 Jul 2024 13:41:35 +0000 (15:41 +0200)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Fri, 12 Jul 2024 16:19:39 +0000 (18:19 +0200)
commit54e6f838c35578d4ed027a9ab43e5c4ed8c552dd
treed78a181a2bf33cd4521a49a37fcbd3142163f56b
parentd0ed64bcc70e382292e9698d1b35f0624849bf1a
also apply generator limit to use with CIDR

As described in GH issue #299, the MAX_GENERATE+1 limit is only
applied when using an address range, not when using CIDR.  This
commit changes this to always honor the generator limit.

* refactor target address generation to use the same new function
  for both range and CIDR notation
* check the limit for addresses to generate in the new function
* document the generator limit in "fping --help" output
* document the generator limit in the fping man page
* test that the address generation limit applies when using CIDR
  notation
ci/test-06-options-f-h.pl
doc/fping.pod
src/fping.c