Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: utf-8
Content-Length: 1411
Hi,
RFC 3315, 20. Relay Agent Behavior:
"If the relay agent relays messages to the All_DHCP_Servers
multicast address or other multicast addresses, it sets the Hop
Limit field to 32."
dhcrelay -6 however sometimes sets hop limit to 1.
This depends what is specified first on command line, whether '-l'
or '-u'.
As I understand it the problem is that we use the same socket for
both/all interfaces
and when we register the socket we set the hop limit only in case of
'upper' interface,
but if the first interface which registers the socket is 'lower' the
hop limit is not set (i.e. set to 1).
There are 2 patches attached:
0001-Work-around-for-hop-limit-set-to-1.patch
- work-around for the above problem, proper solution would probably
be in using different socket for 'lower'/'upper' interface(s).
0001-dhcrelay-fix-setting-of-UPSTREAM-DOWNSTREAM-flags-of.patch
- few minor improvements that came to my mind when investigating
the above problem.
With regards,
Jiri Popelka
Red Hat, inc.