Age | Commit message (Collapse) | Author | Files | Lines |
|
All known dhcp daemons have horrible interfaces if you want to use them
for short-lived ad-hoc networks like Wifi-P2P. Therefore, we use our own
helper with gdhcp as DHCP implementation.
openwfd_dhcp implements a DHCP server and daemon. Depending in the given
command-line argument, it is run as either. All configuration parameters
are passed via command-line.
Note that openwfd_dhcp is a workaround and should only be used as such.
Once network-managers pick up proper Wifi-P2P APIs, we can remove
openwfd_p2pd (including openwfd_dhcp) and start using their APIs. Until
then, we need this small hack.
This patch only adds the dhcp skeleton. No real functionality is added,
yet.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
|
|
Wifi-P2P needs dhcp to exchange addresses. As there is no decent dhcp
daemon out there, which can be controlled from an application ad-hoc, we
import gdhcp from connman.
gdhcp is a client and server implementation of dhcp controllable via a
simple API. We can use it to implement any kind of dhcp client and daemon
we want.
Unfortunately, gdhcp is GPLv2. That means all linking binaries are also
GPLv2. We don't care, but we need to explicitly mention it so others will
notice.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
|
|
Use autotools to generate the openwfd project instead of a statically
managed Makefile.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
|