title: How to bind socket to an interface in python (socket.SO_BINDTODEVICE missing)
body: <p>This is probably a very simple thing.
  I'm new to python so don't crucify me.</p>
  
  <pre><code>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  s.setsockopt(socket.SOL_SOCKET, IN.SO_BINDTODEVICE, "eth1"+'\0')
  </code></pre>
  
  <p>the above command gives me:</p>
  
  <pre><code>NameError: name 'IN' is not defined
  </code></pre>
  
  <p>the only import I have is </p>
  
  <pre><code>import socket
  </code></pre>