]> Kevux Git Server - kevux-tools/commit
Update: Impove IP address processing code and logic.
authorKevin Day <Kevin@kevux.org>
Wed, 28 Jan 2026 05:54:03 +0000 (23:54 -0600)
committerKevin Day <Kevin@kevux.org>
Wed, 28 Jan 2026 06:01:00 +0000 (00:01 -0600)
commit5636143cf1124cb51e4e5385a420c93809bc6840
treeca59b211396f57a124a3e0990aa8a9eeed367f6b
parent794e6507b6d5f7049dc1816ec90d9b89d11908e0
Update: Impove IP address processing code and logic.

The TacocaT program exposed problems in the `f_network_is_ip_address()` function (which is now fixed upstream).

Remove the code that affectively works around the problem.
Replace it with a cleaner implementation.

This implementation explicitly handles extracting the IPv4 or IPv6 addresses (and port numbers) through dedicated functions.
Pass these to the `f_network_to_ip_string()` as appropriate.
sources/c/program/kevux/tools/tacocat/main/common.c
sources/c/program/kevux/tools/tacocat/main/common.h