perfdhcp complains about wrong exchange when receiving reply in rapid-commit mode
These are relevant options accepted by perfdhcp (description seems wrong, shouldn't exchange be SOLICIT-REPLY?):
-c Adds a rapid-commit option (exchanges will be SOLICIT-ADVERTISE).
-i Performs only the initial part of the exchange: DISCOVER-OFFER if -4 is selected, SOLICIT-ADVERTISE
if -6 is chosen.
This is a warning that you get if you try to use -c
without -i
:
"-i must be set to use -c"
but then perfdhcp complains:
ERROR: running perfdhcp: Packets exchange not specified
ExchangesMapIterator it = exchanges_.find(xchg_type);
if (it == exchanges_.end()) {
isc_throw(BadValue, "Packets exchange not specified");
}
The fix could be as simple as allowing -c
without -i
.