<div dir="ltr">In socket.c SO_BINDTODEVICE is not used for ipv6. Is there any reason this isn't used for ipv6? <div><br></div><div>Our system has two interfaces we want to run dhclient on, and this is causing issues as the dhcpv6 Reply is going to the wrong instance of dhclient. Before I change it, I'd like to know the rationale for disabling it for ipv6.</div>
<div><br></div><div>Cheers<br><div><br></div><div>// socket.c relevant code.</div><div><div>#if defined(SO_BINDTODEVICE)</div><div> /* Bind this socket to this interface. */</div><div> if ((local_family != AF_INET6) && (info->ifp != NULL) &&</div>
<div> setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE,</div><div> (char *)(info -> ifp), sizeof(*(info -> ifp))) < 0) {</div><div> log_fatal("setsockopt: SO_BINDTODEVICE: %m");</div>
<div> }</div><div>#endif</div></div><div><br></div></div><div>-john</div><div><br></div></div>