udhcp vlan/alias bug
Stefan de Konink
stefan at konink.de
Tue Dec 9 01:27:01 UTC 2008
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
More information about the uClibc
mailing list