https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210943

--- Comment #2 from Andrey V. Elsukov <a...@freebsd.org> ---
I prefer this patch, can you test?

--- ip6_output.c        (revision 302315)
+++ ip6_output.c        (working copy)
@@ -2659,8 +2659,8 @@ ip6_setpktopt(int optname, u_char *buf, int len, s
                        if (ifp == NULL)
                                return (ENXIO);
                }
-               if (ifp != NULL && (
-                   ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED))
+               if (ifp != NULL && (ifp->if_afdata[AF_INET6] == NULL ||
+                   (ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) != 0))
                        return (ENETDOWN);

                if (ifp != NULL &&

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to