Ns 3.49 updates (replacing #148 and #149)
TO
2d ago+1241+1241+0123456789012345678901234567890123456789-164-164-012345678901234567890123456789
This MR is intended to merge both #148 and #149's commits, with a couple of others that I found during testing on Ubuntu 26.04. This should bring ns-3-dce up to ns-3.49 compatibility with Python 3.14 and gcc-15.2.
I plan to close #148 and #149 if this merges.
Summary by cubic
Brings ns-3-dce to ns-3.49 compatibility on Python 3.14 and gcc 15.2, merging the pending work from the two existing PRs plus additional fixes found while testing on Ubuntu 26.04.
CI and build
- Replaces the obsolete bake-based workflow with build-and-test on ns-3.49; kernel-stack dependencies (Linux/FreeBSD libos, ip, iperf, thttpd, wget, ping, quagga) are now built by
utils/build_kernel_deps.shand cached. - Drops Ubuntu 22.04 from CI (its CMake predates ns-3.49) and removes the NSC-based option from
dce-tcp-ns3-nsc-comparison.
Compatibility fixes
- Adapts to ns-3.48/3.49 API changes: moved headers, removed secondary-address checks, and the new
Address::Registersignature. - Implements
sigwait()and resets glibc's getopt state per simulated process. - Adds Linux semantics for the ns-3 stack: IPv6 UDP sockets, multicast group join/leave, pktinfo options, raw-only protocol delivery, connection-success notification, and local multicast delivery to raw sockets.
- Makes netlink and pktinfo interface indexes use Linux conventions (NetDevice index + 1).
- Fixes
std::ofstreamby mapping fopencookie-backed streams to their DCE fd infileno(). - Enables previously disabled select/poll/tcp-socket/signal and quagga tests; all 79 pass on Ubuntu 24.04 and Debian trixie.