While we have DHCP code in ConnMan I wouldn't recommend to port
it as it
is. Patrik reimplemented DHCP for systemd-netword using ConnMan's
version as blueprint. That code looks much saner. Propably, it would
make sense to carve out a library (using ELL as support library) from
the systemd's version and make ConnMan and oFono depending on it.
Yep, I think ell is the logical place for it. I have started putting
together the basics for DHCP based on ideas in ConnMan/systemd and
trying a few new ideas as well. The approach in systemd was a bit
heavy-handed for my taste with the use of BPFs flying everywhere. I
still need to see whether a simpler approach would be workable, but have
been busy elsewhere.