Hi all, I am trying to modify the ISC DHCP client code to support DHCP for ethernet virtual interfaces.... When I run dhclient eth0:0, I get the error Bind socket to interface: No such device I figure thats because of this part of the client code ---------------------------------------------------------------------------- if ((sock = socket(PF_PACKET, SOCK_PACKET, htons((short)ETH_P_ALL))) <0) { report_error(); } /* Bind to the interface name */ struct sockaddr sa; memset (&sa, 0, sizeof sa); sa.sa_family = AF_PACKET; strncpy (sa.sa_data, (const char *)info -> ifp, sizeof sa.sa_data); //info->ifp is of type struct ifreq if (bind (sock, &sa, sizeof sa)) { report_error("bind"); <----- this is the error } ---------------------------------------------------------------------------- Could someone help me with this ? Thanks, Subhash - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html