Re: [anemon-devs] Supporting multiple interfaces

[ Thread Index | Date Index | More anemon.org/devs Archives ]


Hi,

I would like to thank you for the tips. I don't work on pydhcp now, but it will be added as soon as possible.


blue caddy wrote:
Hi Mathieu,

I actually got this to work using setsockopt:

def SetOutIf(self, outIf):
    self.dhcp_socket.setsockopt(socket.SOL_SOCKET,IN.SO_BINDTODEVICE,struct.pack("%ds" %(len(outIf)+1,), outIf))

Bye.
Mathieu Ignacio



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/