Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 08:34:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219674] rpcbind -h breaks broadcast functionality
Message-ID:  <bug-219674-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 219674
           Summary: rpcbind -h breaks broadcast functionality
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: avg@FreeBSD.org

If rpcbind is started with -h <ip-addr> option, then it does not receive any
broadcast traffic.  This is because the FreeBSD UDP stack passes an incoming
broadcast packet to a socket only if the socket is bound to either the
INADDR_ANY or to the same broadcast IP address as in the packet's destinati=
on.

Thus, any RPC services depending on the broadcast functionality stop workin=
g.
For example, ypbind is no longer able to discover ypserv(-s).

This behaviour is not documented at all neither in man pages nor in the
handbook (https://www.freebsd.org/doc/handbook/network-nis.html).  At minim=
um,
the issue deserves a big warning, at maximum there should be an example of =
the
configuration tweaks required to work around the problem (e.g. using ypset,
etc).

Ideally, though, rpcbind should bind to each broadcast address matching any=
 IP
address passed via -h.
Alternatively, we could add a socket option to allow a UDP socket to see the
matching [the interface] broadcast traffic in addition to the traffic desti=
ned
to the bound IP address.

--=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-219674-8>