Branch: refs/heads/libnozzle-fixes Home: https://github.com/kronosnet/kronosnet Commit: f2008faa314c8414e299d80301001fce538feb61 https://github.com/kronosnet/kronosnet/commit/f2008faa314c8414e299d80301001f... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-05-11 (Mon, 11 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. Include netinet/in.h for struct in6_addr used by IPv6 mask generation.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: 7fd7bae7154170164d895a1d5c2189dcd5cc8509 https://github.com/kronosnet/kronosnet/commit/7fd7bae7154170164d895a1d5c2189... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-05-11 (Mon, 11 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/74c183ab35c2...7fd7bae71541
To unsubscribe from these emails, change your notification settings at https://github.com/kronosnet/kronosnet/settings/notifications