Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2020 12:10:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251725] sbin/ping: tries to use IPv6 on INET6-less kernels
Message-ID:  <bug-251725-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251725

            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@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: asomers@FreeBSD.org

Regressed by base r368045. Affects "nooption INET6" in kernel config. Compa=
red
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251725-227>