]> git.gsnw.org Git - fping.git/commit
check address family consistency in generator
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 12 Jan 2025 09:37:55 +0000 (10:37 +0100)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sat, 15 Feb 2025 19:02:58 +0000 (20:02 +0100)
commit198c7fda22012f2d9d986b3738f44d7b9044eac4
treec77d5787178e9de8ff5fba475de9900592e96c91
parent511aa3720639402777632a237845252b6fcf5b36
check address family consistency in generator

Before, "fping -6 -g IPv4_ADDR_SPEC" would generate all requested
IPv4 addresses and try to add them to the host table, but that
would fail because of address family mismatch.

Now, "fping -6 -g IPv4_ADDR_SPEC" detects the problem before
generating any addresses, and fails early.

Mixing IPv4 and IPv6 addresses when using -g START END is detected
before generating any addresses and fails early, too.
ci/test-06-options-f-h.pl
src/fping.c