<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 31, 2014 at 9:29 AM, /dev/rob0 <span dir="ltr"><<a href="mailto:rob0@gmx.co.uk" target="_blank">rob0@gmx.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, May 29, 2014 at 07:21:18AM -0700, John Newlin wrote:<br>
> In socket.c SO_BINDTODEVICE is not used for ipv6.  Is there any<br>
> reason this isn't used for ipv6?<br>
><br>
> Our system has two interfaces we want to run dhclient on, and<br>
> this is causing issues as the dhcpv6 Reply is going to the<br>
> wrong instance of dhclient.  Before I change it, I'd like to<br>
> know the rationale for disabling it for ipv6.<br>
<br>
</div>I admit to being mostly out of my league with this question, however<br>
in this case I think I have the right answer. :)<br>
<br>
DHCPv6, rather than using raw sockets as DHCPv4 did, communicates<br>
using the IPv6 link-local address.<br>
<br>
(I'd appreciate confirmation or correction from someone who knows<br>
better, thanks.)<br></blockquote><div><br></div><div>Pretty sure that's correct.  I have 1 physical interface, and am running on the untagged and a vlan interface, and I think they have the same link local address.  I definitely see packets going to the wrong interface.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
As for the problem at hand, perhaps you could run a single dhclient<br>
instance for both interfaces?<br></blockquote><div><br></div><div>Is that possible?  I'll have to read the doc again.  :)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
> // socket.c  relevant code.<br>
> #if defined(SO_BINDTODEVICE)<br>
>         /* Bind this socket to this interface. */<br>
>         if ((local_family != AF_INET6) && (info->ifp != NULL) &&<br>
>             setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE,<br>
>                         (char *)(info -> ifp), sizeof(*(info -> ifp))) < 0)<br>
> {<br>
>                 log_fatal("setsockopt: SO_BINDTODEVICE: %m");<br>
>         }<br>
> #endif<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
  <a href="http://rob0.nodns4.us/" target="_blank">http://rob0.nodns4.us/</a><br>
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</font></span></blockquote></div><br></div></div>