Hi,

Currently it seems that udhcp cannot bind to a vlan or alias interface.


I thought the following could do the trick.

        char *tmp;
         while (inf[len] != '\0' || inf[len] != '.' || inf[len] != ':') 
len++;
         tmp = strndup(inf, len);
         if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, &tmp, len + 1) 
== -1)
                 bb_perror_msg_and_die("SO_BINDTODEVICE");

         free(tmp);


Indeed it seems to bind to the interface, it doesn't seem to be the 
valid solution to solve the issue.


Stefan
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to