This is probably a very simple thing. I'm new to python so don't crucify me.
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, IN.SO_BINDTODEVICE, "eth1"+'\0')
the above command gives me:
NameError: name 'IN' is not defined
the only import I have is
import socket