Skip to content

Commit 845483a

Browse files
committed
[#3683] Addressed soem comments
1 parent 4c47361 commit 845483a

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

doc/sphinx/arm/dhcp6-srv.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6853,15 +6853,15 @@ Address Registration (RFC 9686 Support)
68536853

68546854
Kea version 2.7.7 introduces the support of self-generated address registration
68556855
as defined in `RFC 9686 <https://tools.ietf.org/html/rfc9686>`__ i.e.
6856-
when a valid ADDR-REG-INFORM (36) message in received a registered lease is
6856+
when a valid ADDR-REG-INFORM (36) message is received a registered lease is
68576857
added or updated and a ADDR-REG-REPLY (37) is sent back to the client.
68586858

68596859
.. note::
68606860

68616861
Even if they share a common lease database with leases in other states,
68626862
registered leases are independent: when a lease in another state already
68636863
exists for an address this address in considered as in use and can't be
6864-
registered. In the other way a registered lease can't change to another
6864+
registered. Similarly a registered lease can't change to another
68656865
state, e.g. reclaimation of expired registered leases removes them.
68666866

68676867
.. note::
@@ -7587,8 +7587,8 @@ The DHCPv6 server supports the following statistics:
75877587
| subnet[id].cumulative-registered | integer | Cumulative number of NA addresses |
75887588
| | | in a given subnet that were |
75897589
| | | registered. It increases every |
7590-
| | | a new address is registered (as a |
7591-
| | | result of receiving an |
7590+
| | | time a new address is registered |
7591+
| | | (as a result of receiving an |
75927592
| | | ADDR-REG-INFORM message) and is |
75937593
| | | never decreased. The *id* is the |
75947594
| | | subnet ID of a given subnet. This |

doc/sphinx/arm/hooks-run-script.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ at 0.
678678
NEW_LEASE6_PREFIX_LEN
679679
NEW_LEASE6_TYPE
680680

681-
The OLD_LEASE6 do not always exists.
681+
The OLD_LEASE6 does not always exist.
682682

683683
The leases4_committed hook point needs for loops to handle the list of addresses.
684684
This can be achived in the following way:

src/bin/dhcp6/dhcp6_messages.mes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ option to an IA. The first argument includes the client and the
5151
transaction identification information. The second argument specifies
5252
the IAID. The third argument includes the details of the status code.
5353

54-
% DHCP6_ADDR_REG_INFORM_FAIL error on addr-reg-inform from client %1: %2
55-
This information message is issued when the processing of an addr-reg-inform
54+
% DHCP6_ADDR_REG_INFORM_FAIL error on ADDR-REG-INFORM from client %1: %2
55+
This information message is issued when the processing of an ADDR-REG-INFORM
5656
message failed. The address of the client, usually also the address to
5757
register, and the description of the problem are printed.
5858

59-
% DHCP6_ADDR_REG_INFORM_CLIENT_CHANGE received an addr-reg-inform for %1 from client '%2' but the address was registered by another client '%3'
59+
% DHCP6_ADDR_REG_INFORM_CLIENT_CHANGE received an ADDR-REG-INFORM for %1 from client '%2' but the address was registered by another client '%3'
6060
This information message is issued when a lease for another client already
6161
exists for an address being registered. The address, the new client and
6262
previous client identifiers are printed.
@@ -380,7 +380,7 @@ and the expression specified in its configuration generated (was evaluated to)
380380
an identifier for incoming packet. This debug message is mainly intended as a
381381
debugging assistance for flexible identifier.
382382

383-
% DHCP6_HOOK_ADDR6_REGISTER_SKIP %1: addr-reg-inform for %2 is dropped, because a callout set the next step to SKIP
383+
% DHCP6_HOOK_ADDR6_REGISTER_SKIP %1: ADDR-REG-INFORM for %2 is dropped, because a callout set the next step to SKIP
384384
Logged at debug log level 40.
385385
This debug message is printed when a callout installed on the addr6_register
386386
hook point sets the next step to SKIP. For this particular hook point, the

src/bin/dhcp6/tests/dhcp6_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class Dhcp6Client : public boost::noncopyable {
311311
/// and receiving server's response.
312312
void doRelease();
313313

314-
/// @brief This function generates Addr-reg-inform message, sends it
314+
/// @brief This function generates an Addr-reg-inform message, sends it
315315
/// to the server and then receives the Addr-reg-reply.
316316
/// This method does not process the response in any specific way,
317317
/// just stores it.

src/bin/dhcp6/tests/dhcp6_test_utils.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ NakedDhcpv6SrvTest::~NakedDhcpv6SrvTest() {
10921092
.deregisterAllCallouts("pkt6_receive");
10931093
isc::hooks::HooksManager::preCalloutsLibraryHandle()
10941094
.deregisterAllCallouts("pkt6_send");
1095+
isc::hooks::HooksManager::preCalloutsLibraryHandle()
1096+
.deregisterAllCallouts("subnet6_select");
10951097
isc::hooks::HooksManager::preCalloutsLibraryHandle()
10961098
.deregisterAllCallouts("addr6_register");
10971099
}

src/bin/dhcp6/tests/dhcp6_test_utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ class NakedDhcpv6Srv: public isc::dhcp::Dhcpv6Srv {
349349
///
350350
/// @param addr_reg_inf a message received from client
351351
/// @return Addr-reg-reply message or null
352-
Pkt6Ptr processAddrRegInform(const Pkt6Ptr& decline) {
352+
Pkt6Ptr processAddrRegInform(const Pkt6Ptr& addr_reg_inf) {
353353
AllocEngine::ClientContext6 ctx;
354-
bool drop = !earlyGHRLookup(decline, ctx);
354+
bool drop = !earlyGHRLookup(addr_reg_inf, ctx);
355355
if (drop) {
356356
return (Pkt6Ptr());
357357
}
358-
ctx.subnet_ = selectSubnet(decline, drop);
358+
ctx.subnet_ = selectSubnet(addr_reg_inf, drop);
359359
if (drop) {
360360
return (Pkt6Ptr());
361361
}

0 commit comments

Comments
 (0)