> This does not look right. Now if kernel reports "if1", len=3, > you will consider it == "if". > > Current code treats "if1",len=3 and "if1\0",len=4 as the same string, > "if1", which seems to be intuitively correct for C conventions. > > I just don't see the case you are trying to fix. Describe it, > give the values where it works wrongly: > G.iface = "??", RTA_DATA(attr) = "??", len = ?? > > -- > vda Hi Denis,
it works fine. I just wanted to avoid comparisons of strings with different length, e.g.: G.iface = "eth0"\0, RTA_DATA(attr) = "wlan0"\0 But surely this is not essential. Regards. -- Max _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
