Branch: refs/heads/stable1-proposed Home: https://github.com/kronosnet/kronosnet Commit: bb27018163e3698a2bfb3b39a4a34690d9c25123 https://github.com/kronosnet/kronosnet/commit/bb27018163e3698a2bfb3b39a4a346... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/libnozzle.c
Log Message: ----------- libnozzle: use IFF_TUN_EXCL for exclusive TAP device creation
Add IFF_TUN_EXCL flag when creating named TAP devices to prevent race conditions where another process creates the same device name between check and creation. Available since Linux 3.4 with graceful fallback.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: 84401e7b339a5e370fd58c7d3ec19c349a587e9c https://github.com/kronosnet/kronosnet/commit/84401e7b339a5e370fd58c7d3ec19c... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/libnozzle.c
Log Message: ----------- libnozzle: improve libnl error code translation
Replace generic errno values with proper error code translation from libnl. Add nlerr_to_errno() helper that maps NLE_* codes to standard errno values for better diagnostics when netlink operations fail.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: 556117c293dd121ebe863d6a688ac3f90594d1d9 https://github.com/kronosnet/kronosnet/commit/556117c293dd121ebe863d6a688ac3... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/internals.h M libnozzle/libnozzle.c
Log Message: ----------- libnozzle: implement FreeBSD native ioctl for IP address management
Replace shell command execution with native ioctl calls using struct in_aliasreq (IPv4) and struct in6_aliasreq (IPv6). Use separate AF_INET and AF_INET6 sockets for proper address family handling.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: dae0f3e728b3a75ab260423cb00e92fddf7c800b https://github.com/kronosnet/kronosnet/commit/dae0f3e728b3a75ab260423cb00e92... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/libnozzle.c
Log Message: ----------- libnozzle: implement Solaris native ioctl for IP address management
Replace shell command execution with native ioctl calls using struct lifreq. Use per-interface AF_INET and AF_INET6 sockets for IPv4/IPv6 operations. Set secondary=1 for IPv6 address deletion to match Solaris logical interface semantics.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: eff67d7a845a0269657227fe0a887c8485d4b5bf https://github.com/kronosnet/kronosnet/commit/eff67d7a845a0269657227fe0a887c... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/Makefile.am M libnozzle/internals.h M libnozzle/libnozzle.c A libnozzle/libnozzle_bsd.c A libnozzle/libnozzle_linux.c A libnozzle/libnozzle_solaris.c
Log Message: ----------- libnozzle: refactor platform-specific code into dedicated files
Split platform-specific implementation from libnozzle.c into dedicated files: libnozzle_linux.c, libnozzle_bsd.c, libnozzle_solaris.c.
Introduce platform abstraction layer with typedefs and macros in internals.h: - nozzle_ifreq: Platform-specific ifreq structure type - NOZZLE_SOCKET_DOMAIN: Socket domain for ioctl fd (AF_LOCAL on BSD) - NOZZLE_IOCTL_FD: File descriptor for ioctl operations - NOZZLE_SET_MTU: Platform-specific MTU ioctl command - NOZZLE_IPV6_IS_SECONDARY(domain): IPv6 secondary interface check
This eliminates all platform-specific #ifdef blocks from libnozzle.c, improving code organization and readability. Platform differences are now documented in a single location (internals.h and platform-specific files) rather than scattered throughout the main code.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: 249cc2a5efc93f27e0b57972fc70c4de1ee55154 https://github.com/kronosnet/kronosnet/commit/249cc2a5efc93f27e0b57972fc70c4... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 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: d2f48bac77d04df9e2f577faa64d159737cc437e https://github.com/kronosnet/kronosnet/commit/d2f48bac77d04df9e2f577faa64d15... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 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
Commit: 05d53c7cf87926f626ef289239f4108b64ae3559 https://github.com/kronosnet/kronosnet/commit/05d53c7cf87926f626ef289239f410... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/tests/Makefile.am
Log Message: ----------- [tests] Disable parallel execution for libnozzle tests
Add .NOTPARALLEL to prevent tap device resource contention on systems that are slow to open/close tap devices.
Signed-off-by: Fabio M. Di Nitto fabbione@kronosnet.org Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Commit: 5b72361a51dfe6e46aa9b9442ce45bd60aaa1d11 https://github.com/kronosnet/kronosnet/commit/5b72361a51dfe6e46aa9b9442ce45b... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths: M libnozzle/libnozzle.c M libnozzle/tests/Makefile.am A libnozzle/tests/api_nozzle_prefix_validation.c
Log Message: ----------- libnozzle: add input validation for network prefixes
Replace atoi() with strtol() for network prefix validation to properly detect invalid input, overflow, and out-of-range values.
Add comprehensive test coverage for prefix validation scenarios.
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/80ca7b23e5fe...5b72361a51df
To unsubscribe from these emails, change your notification settings at https://github.com/kronosnet/kronosnet/settings/notifications