<div dir="ltr">SO_BINDTODEVICE was originally put in to allow the DHCP server to tell on which interface a packet had arrived. Â I don't see any reason why it couldn't be used the way you describe, but I am under the impression that it is somewhat deprecated, and that may be why there was no action on that patch. Â Your best bet would be to ask the Linux network folks.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 11:13 AM, Danomi Czaski <span dir="ltr"><<a href="mailto:djczaski@gmail.com" target="_blank">djczaski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My device has multiple interfaces and supports dynamic ips.<br>
SO_BINDTODEVICE looks like it would be used to specify a device in the<br>
listen statement instead of having to update every IP change.<br>
<br>
I see someone submitted a patch years ago that wasn't accepted and<br>
there was no follow on. Is there any particular reason other than this<br>
probably isn't a common use case? Is this something that could be<br>
added in the future?<br>
<br>
<a href="https://forum.nginx.org/read.php?29,234862" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?29,234862</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>