mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-06 11:38:24 +00:00
Binding the responder's dual-stack socket, enabling IPV6_RECVPKTINFO on it and resolving the mesh interface index are host-side socket setup for the .fips responder. They lived on Node as associated functions that touch no node state. Move them next to the responder they serve, in ipv6tun::dns. The DNS child start now calls ipv6tun::dns::bind_dns_socket directly, and Node::mesh_ifindex keeps its reading of the live TUN name and resolves it through the moved lookup. The code is unchanged, including the cfg(unix) gating of the PKTINFO setsockopt and the non-unix ifindex fallback. None of the moved functions log, so no tracing target changes.