Subject: | dhcrelay -6 and Hop Limit |
Date: | Thu, 09 Oct 2014 19:41:09 +0200 |
To: | dhcp-bugs@isc.org |
From: | Jiri Popelka <jpopelka@redhat.com> |
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.
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.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.