On Friday 28 October 2011 17:00, Leonid Lisovskiy wrote: > Revision 2 of DHCPv6 client, please review. > Due to patch is huge (218Kb), attach is gzipped. > > Without authentication enabled(ordinary users don't need it), applet > increases size of bb code approx. to > 28Kb on x86. With all options turned on - 34Kb on x86.
This is still way too big. I read http://www.ietf.org/rfc/rfc3315.txt and it seems that propocol itself isn't that complicated. I think that maybe emulating existing dhcp6c tool with its config file and command line is not a good idea. This will make DHCP and DHCPv6 clients in busybox to be very different. Maybe we need a udhcpc6 applet which is similar to udhcpc. For one, it should handle one interface. This simplifies many things. Second, we don't need to implement auth features, at least not at once - organizations paranoid enough to authenticate DHCPv6 thaffic probably should not use dynamic IP addresses at all! Third, we might choose to support only the setup where there is only one DHCP server, not many - udhcpc currently simply uses the first server response (doesn't try to collect more responses and pick "best one"), and people aren't complaining. This means that the multi-server DHCP setups must be a very rare thing. Fourth, it should not set IPv6 addresses (ifaddrconf() func does that in current patch). It should just export data to environment and run a script, just like udhcpc does. Do you want to work on it, or you don't find this to be a good idea? I probably can work on it this weekend... -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
