[Bug 238098] Setting the -g option to ping6 doesn't work

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 24 10:09:27 UTC 2019


            Bug ID: 238098
           Summary: Setting the -g option to ping6 doesn't work
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: nicolas.masse at stormshield.eu

Created attachment 204589
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204589&action=edit
Set rt and ifp variables when opts->ip6po_nexthop is present

Since I migrated to FreeBSD11.2, the -g option of ping6 is broken. The command
does always return the error "ping6: sendmsg: No route to host".

Having a llok at the code, it seems that this regression was caused by the
commit https://svnweb.freebsd.org/base?view=revision&revision=286195, were the
handling of the IPV6_NEXTHOP option was changed.

The bug seems to be caused by the fact that when exiting the bloc who check the
presence of the flag opts->ip6po_nexthop, the variables rt and ifp aren't set

Setting rt and ifp seems to fix the problem (see the attached diff).

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

More information about the freebsd-bugs mailing list