tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [Greg Troxel] Re: Getting "write: address family not supported by protocol family" when using Restic over Tailscale



On Sun, Oct 18, 2026 at 07:07:22PM -0400, Greg Troxel wrote:
>   I think we should change:
> 
>     --- if_tun.c.~1.178.~   2025-11-15 18:30:51.076488670 -0500
>     +++ if_tun.c    2026-10-18 19:02:22.920287647 -0400
>     @@ -629,7 +629,6 @@ tun_output(struct ifnet *ifp, struct mbu
>                     IFQ_ENQUEUE(&ifp->if_snd, m0, error);
>                     if (error) {
>                             if_statinc(ifp, if_collisions);
>     -                       error = EAFNOSUPPORT;
>                             m0 = NULL;
>                             goto out;
>                     }

The patched code makes sense for AF_INET6 and AF_INET.
I am not sure the original code makes sense for AF_UNSPEC.

There is also a EAFNOSUPPORT error case for AF_INET a few lines above
that does not look good for AF_INET6 (sharing that code path).

Martin


Home | Main Index | Thread Index | Old Index