udhcp vlan/alias bug

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Dec 16 16:53:29 UTC 2008


On Tue, Dec 09, 2008 at 02:27:01AM +0100, Stefan de Konink wrote:
>Hi,

Stefan, the busybox list would have be the proper place for your statement.
thanks,
>
>
>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 at uclibc.org
>http://busybox.net/cgi-bin/mailman/listinfo/uclibc



More information about the busybox mailing list