On Wed, 1 Sep 2004, Ronak Sutaria wrote:
I have implemented your code and it works in our setup. The one problem we are facing with it is that it doesn't take virtual mac names. For eg "eth1:1". It says SO_BINDTODEVICE: no such device found.
Any idea how can we use the code to work with virtual eth addresses.
You can't. You then need to bind() to the IP instead of SO_BINDTODEVICE.
"eth1:1" is not a device, it is just an labelled secondary IP address on the eth1 device. Se "/sbin/ip addr show dev eth1".
Regards Henrik - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html