NetworkPkg/Dhcp6Dxe: Fix various typos
Fix various typos in comments and documentation. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Maciej Rabeda <maciej.rabeda@intel.com> Signed-off-by: Antoine Coeur <coeur@gmx.fr> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com> Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Message-Id: <20200207010831.9046-33-philmd@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
c194ccca26
commit
f97117bae7
@@ -58,7 +58,7 @@ Dhcp6EnqueueRetry (
|
||||
TxCb->Elapsed = Elapsed;
|
||||
|
||||
//
|
||||
// Calculate the retransmission according to the the message type.
|
||||
// Calculate the retransmission according to the message type.
|
||||
//
|
||||
switch (Packet->Dhcp6.Header.MessageType) {
|
||||
case Dhcp6MsgSolicit:
|
||||
@@ -549,13 +549,13 @@ Dhcp6UpdateIaInfo (
|
||||
|
||||
ASSERT (Instance->Config != NULL);
|
||||
//
|
||||
// If the reply was received in reponse to a solicit with rapid commit option,
|
||||
// If the reply was received in response to a solicit with rapid commit option,
|
||||
// request, renew or rebind message, the client updates the information it has
|
||||
// recorded about IAs from the IA options contained in the reply message:
|
||||
// 1. record the T1 and T2 times
|
||||
// 2. add any new addresses in the IA
|
||||
// 3. discard any addresses from the IA, that have a valid lifetime of 0
|
||||
// 4. update lifetimes for any addresses that alread recorded
|
||||
// 4. update lifetimes for any addresses that already recorded
|
||||
// 5. leave unchanged any information about addresses
|
||||
//
|
||||
// See details in the section-18.1.8 of rfc-3315.
|
||||
@@ -942,7 +942,7 @@ Dhcp6SendSolicitMsg (
|
||||
}
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);
|
||||
if (Packet == NULL) {
|
||||
@@ -1124,7 +1124,7 @@ Dhcp6SendRequestMsg (
|
||||
}
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);
|
||||
if (Packet == NULL) {
|
||||
@@ -1282,7 +1282,7 @@ Dhcp6SendDeclineMsg (
|
||||
ServerId = (EFI_DHCP6_DUID *) (Option + 2);
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE);
|
||||
if (Packet == NULL) {
|
||||
@@ -1416,7 +1416,7 @@ Dhcp6SendReleaseMsg (
|
||||
ServerId = (EFI_DHCP6_DUID *) (Option + 2);
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE);
|
||||
if (Packet == NULL) {
|
||||
@@ -1547,7 +1547,7 @@ Dhcp6SendRenewRebindMsg (
|
||||
}
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);
|
||||
if (Packet == NULL) {
|
||||
@@ -1830,7 +1830,7 @@ Dhcp6SendInfoRequestMsg (
|
||||
}
|
||||
|
||||
//
|
||||
// Create the Dhcp6 packet and initialize commone fields.
|
||||
// Create the Dhcp6 packet and initialize common fields.
|
||||
//
|
||||
Packet = AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen);
|
||||
if (Packet == NULL) {
|
||||
@@ -2150,7 +2150,7 @@ Dhcp6HandleReplyMsg (
|
||||
Instance->UdpSts = EFI_SUCCESS;
|
||||
|
||||
//
|
||||
// For async, signal the Ia event to inform Ia infomation update.
|
||||
// For async, signal the Ia event to inform Ia information update.
|
||||
//
|
||||
if (Instance->Config->IaInfoEvent != NULL) {
|
||||
gBS->SignalEvent (Instance->Config->IaInfoEvent);
|
||||
@@ -2213,14 +2213,14 @@ Dhcp6HandleReplyMsg (
|
||||
|
||||
//
|
||||
// Maybe this is a new round DHCP process due to some reason, such as NotOnLink
|
||||
// ReplyMsg for ConfirmMsg should triger new round to acquire new address. In that
|
||||
// ReplyMsg for ConfirmMsg should trigger new round to acquire new address. In that
|
||||
// case, clear old address.ValidLifetime and append to new address. Therefore, DHCP
|
||||
// consumers can be notified to flush old address.
|
||||
//
|
||||
Dhcp6AppendCacheIa (Instance);
|
||||
|
||||
//
|
||||
// For async, signal the Ia event to inform Ia infomation update.
|
||||
// For async, signal the Ia event to inform Ia information update.
|
||||
//
|
||||
if (Instance->Config->IaInfoEvent != NULL) {
|
||||
gBS->SignalEvent (Instance->Config->IaInfoEvent);
|
||||
@@ -2431,7 +2431,7 @@ Dhcp6HandleAdvertiseMsg (
|
||||
|
||||
//
|
||||
// If the client does receives a valid reply message that includes a rapid
|
||||
// commit option since a solicit with rapid commit optioin sent before, select
|
||||
// commit option since a solicit with rapid commit option sent before, select
|
||||
// this reply message. Or else, process the advertise messages as normal.
|
||||
// See details in the section-17.1.4 of rfc-3315.
|
||||
//
|
||||
|
Reference in New Issue
Block a user