bind() to address "eth0:0" don't work?

Peter 'Luna' Altberg (peter@altberg.nu)
Tue, 22 Jun 1999 20:16:32 +0200


Hi all,

I'm not sure this is the right forum for this, but maybe:

I am hoping to get the "dhcp-2.0b1pl27" dhcp client to work with multiple ip
adresses on one nic (yes, I have use for this!), like running "dhclient
eth0:0". But it doesn't work, and the problem seems to be in the following
(equivalent) code:

struct sockaddr sa;
memset(&sa, 0, sizeof sa);
sa.sa_family = AF_PACKET;
strncpy(sa.sa_data, "eth0:0", sizeof sa.sa_data);
bind(sock, &sa, sizeof sa);

bind fails with ENODEV ("operation not supported by device"). Is this use of
the alias device name "eth0:0" even supposed to work? I'm using kernel 2.2.7
/ glibc 2.0.7pre6.

TIA,
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/