[Bug 251725] sbin/ping: tries to use IPv6 on INET6-less kernels

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 10 12:10:31 UTC 2020


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

            Bug ID: 251725
           Summary: sbin/ping: tries to use IPv6 on INET6-less kernels
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: asomers at FreeBSD.org

Regressed by base r368045. Affects "nooption INET6" in kernel config. Compared
to other userland tools ping(8) seems to abort when a host has both IPv4 and
IPv6 address(es) but one of those is not supported by running kernel.

$ ping localhost
ping: socket ssend: Address family not supported by protocol family

$ ping freebsd.org
ping: socket ssend: Address family not supported by protocol family

$ sysctl kern.conftxt  | fgrep INET
options INET

$ getaddrinfo localhost
dgram inet6 udp ::1 0
stream inet6 tcp ::1 0
seqpacket inet6 sctp ::1 0
dgram inet udp 127.0.0.1 0
stream inet tcp 127.0.0.1 0
seqpacket inet sctp 127.0.0.1 0

$ getaddrinfo freebsd.org
dgram inet6 udp 2610:1c1:1:606c::50:15 0
stream inet6 tcp 2610:1c1:1:606c::50:15 0
seqpacket inet6 sctp 2610:1c1:1:606c::50:15 0
dgram inet udp 96.47.72.84 0
stream inet tcp 96.47.72.84 0
seqpacket inet sctp 96.47.72.84 0

$ fetch http://freebsd.org
freebsd.org           24 kB   97 kBps    01s

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list