tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

binding a socket to a specific interface



Is there a way to bind a socket to a specific interface?
The check_dhcp monitoring plugin needs to do that; on Linux, it does
	setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, ...)
else it does nothing really, making my DHCP checks fail.
dhclient seems to use BPF.


Home | Main Index | Thread Index | Old Index