DHCP 4.3.1-P1 on OpenWRT
Olipro
olipro at 8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa
Tue Dec 20 09:26:08 UTC 2011
Greetings to the list,
I've created a port of the latest DHCP suite for OpenWRT, all is working
fine, but I do have a few potential optimisations (namely to filesize) that
the whole thing could benefit from:
Firstly, I've currently modified it so that all DHCP components will
dynamically link against the shared BIND export libraries - what I would
like to know however is whether these shared export libs are actually
suitable for the BIND+dig+client itself; if not then presumably one could
modify the export libs makefiles so that *all* source files are compiled
into the library - in instances where OpenWRT is being built with both BIND
and DHCP, this would be a space-saver.
In any case, having shared BIND export libs cuts down on a fair old chunk
of the various programs' filesize.
My next ambition was to convert libdhcp into a shared library too; and I
got as far as making it compile as a shared library, but that's about as
far as it goes unfortunately since it appears that there is quite a
cluster---- of function interdependencies between the various DHCP
components and the library; move one or two functions into libdhcp and you
open up a whole load more interdependencies and it starts to look like
you're going to end up building a library that holds all the code and
daemons that are nothing more than a main(); (I jest)
My hope is that someone on this list who has an involved knowledge of the
inner-workings could comment on the possibility of reworking libdhcp so
that it can trivially be built as a shared lib - this would be a tremendous
boon for its deployability on embedded systems as the main concern is file
size over everything else.
More information about the dhcp-hackers
mailing list