Change ifchange_*() so that the interface and ip keywords are only sent to

ifchd if it is necessary to do so, just as is the case for other keywords.

Make data sending in ifchange_*() collect all keywords into a buffer that
is sent in a single sockwrite() rather than performing a sockwrite() for
every keyword.

Minor documentation updates.
This commit is contained in:
Nicholas J. Kain
2011-07-05 19:25:19 -04:00
parent 3316505f3c
commit daf42ccb29
2 changed files with 54 additions and 36 deletions

15
README
View File

@@ -36,9 +36,18 @@ the ability to service multiple client requests simultaneously; a single ifchd
is sufficient for multiple ndhc clients. Only exotic setups should require
this functionality, but it does exist.
Note that ndhc does not support the entire DHCP client protocol. Only the
minimum necessary featureset is implemented. This behavior should be familiar
to anyone who has used software that purports to be be secure.
Note that ndhc does not support the entire DHCP client protocol. Notably, DHCP
options concatenation and IPv4 Link Local Addressing as defined in RFC3927 are
not and will not be supported.
On the other hand, ndhc fully implements RFC5227's address conflict detection
and defense. Great care is taken to ensure that address conflicts will be
detected, and ndhc also has extensive support for address defense. Care is
taken to prevent unintentional ARP flooding under any circumstance.
ndhc also monitors hardware link status via netlink events and reacts
appropriately when interface carrier status changes or an interface is
explicitly deconfigured.
USAGE
-----