Nameif broken

Roy Marples roy at marples.name
Thu Apr 10 07:32:53 UTC 2008


On Thursday 10 April 2008 03:03:21 Denys Vlasenko wrote:
> > Appended is a patch to fix nameif, I've also extended the cleanup-code
> > to match the new data structure and did some minor code shrinks.
>
> -               *skip_non_whitespace(line_ptr) = '\0';
> +               *strpbrk(line_ptr, " \t\n:") = '\0';
>
> Why ':' is considered a terminator too? (I want to add a comment there).

Old skool Linux handled alias using that

eth0 192.168.0.1
eth0:1 192.168.0.2
eth0:2 192.168.0.3

etc. So eth0:2 is really eth0.

Thanks

Roy



More information about the busybox mailing list