[PATCH 0/2] dhclient: add --prefix-len option

H. Peter Anvin hpa at zytor.com
Wed Dec 2 11:44:12 UTC 2015


I have a regular need for setting a request for a specific prefix
length delegation in the IPv6 client.  This adds this feature as a new
command line option (just as the number of prefixes are requested via
possibly multiple -P options.)

In the process, I found a fair bit of duplicated or near-duplicated
code, and so I ended up refactoring some of the code, with the result
that the total patchset is actually a fair bit of reduction in total
code:

 client/dhc6.c     | 1074 ++++++++++++++++++++---------------------------------
 client/dhclient.8 |    7 +
 client/dhclient.c |   13 +-
 includes/dhcpd.h  |    1 +
 4 files changed, 432 insertions(+), 663 deletions(-)


More information about the dhcp-workers mailing list