Branch: refs/heads/libnozzle-fixes Home: https://github.com/kronosnet/kronosnet Commit: 34007c354f83de97aedffb44f2be0fc3b64591fd https://github.com/kronosnet/kronosnet/commit/34007c354f83de97aedffb44f2be0f... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths: M libnozzle/internals.c M libnozzle/internals.h M libnozzle/libnozzle_bsd.c M libnozzle/libnozzle_linux.c M libnozzle/libnozzle_solaris.c
Log Message: ----------- libnozzle: refactor IP address helpers to reduce code duplication
Extract common IP address calculation logic from platform-specific functions into shared helpers. Add _determine_family(), _validate_prefix(), _ipv4_prefix_to_netmask(), and _ipv6_prefix_to_mask() to internals.c/h. Include netinet/in.h in both files for struct in6_addr definition.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: f41905179dac69ea7276ee562f40b6af91aa4c48 https://github.com/kronosnet/kronosnet/commit/f41905179dac69ea7276ee562f40b6... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths: M libnozzle/libnozzle_bsd.c M libnozzle/libnozzle_linux.c M libnozzle/libnozzle_solaris.c
Log Message: ----------- libnozzle: consolidate platform-specific add_ip/del_ip implementations
Consolidate duplicate add/delete logic into platform-specific helpers: Linux uses _netlink_modify_addr() for netlink operations, BSD uses _bsd_modify_ipv4/6() for ioctl operations, Solaris uses _solaris_modify_ipv4/6() with secondary interface support. Eliminates ~80 lines of duplication.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Compare: https://github.com/kronosnet/kronosnet/compare/364d72b22eec...f41905179dac
To unsubscribe from these emails, change your notification settings at https://github.com/kronosnet/kronosnet/settings/notifications