X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FDhcp6Dxe%2FDhcp6Utility.c;fp=NetworkPkg%2FDhcp6Dxe%2FDhcp6Utility.c;h=10a99a00d4b5595c93547501d7f8a2dcbe457400;hp=a65ed6d5892b59c861ab6181e632b67a37a6413d;hb=f75a7f568e6d0944327970b3f3f2dafd9bba76b1;hpb=9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c index a65ed6d589..10a99a00d4 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c @@ -2,7 +2,7 @@ Dhcp6 support functions implementation. (C) Copyright 2015 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -68,7 +68,7 @@ Dhcp6GenerateClientId ( // // // The format of DUID-UUID: - // + // // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // | DUID-Type (4) | UUID (128 bits) | @@ -91,16 +91,16 @@ Dhcp6GenerateClientId ( // sizeof (Duid-type + UUID-size) = 18 bytes // Duid->Length = (UINT16) (18); - + // // Set the Duid-type and copy UUID. // WriteUnaligned16 ((UINT16 *) (Duid->Duid), HTONS (Dhcp6DuidTypeUuid)); - + CopyMem (Duid->Duid + 2, &Uuid, sizeof(EFI_GUID)); } else { - + // // // The format of DUID-LLT: @@ -135,12 +135,12 @@ Dhcp6GenerateClientId ( if (Duid == NULL) { return NULL; } - + // // sizeof (Duid-type + hardware-type + time) = 8 bytes // Duid->Length = (UINT16) (Mode->HwAddressSize + 8); - + // // Set the Duid-type, hardware-type, time and copy the hardware address. // @@ -687,7 +687,7 @@ Dhcp6AppendIaAddrOption ( // . IAaddr-options . // . . // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - + // // Fill the value of Ia Address option type // @@ -1000,7 +1000,7 @@ Dhcp6SeekIaOption ( } /** - Check whether the incoming IPv6 address in IaAddr is one of the maintained + Check whether the incoming IPv6 address in IaAddr is one of the maintained addresses in the IA control blcok. @param[in] IaAddr The pointer to the IA Address to be checked. @@ -1019,7 +1019,7 @@ Dhcp6AddrIsInCurrentIa ( UINT32 Index; ASSERT (IaAddr != NULL && CurrentIa != NULL); - + for (Index = 0; Index < CurrentIa->IaAddressCount; Index++) { if (EFI_IP6_EQUAL(&IaAddr->IpAddress, &CurrentIa->IaAddress[Index].IpAddress)) { return TRUE; @@ -1303,7 +1303,7 @@ EFI_STATUS Dhcp6GetMappingTimeOut ( IN EFI_IP6_CONFIG_PROTOCOL *Ip6Cfg, OUT UINTN *TimeOut - ) + ) { EFI_STATUS Status; UINTN DataSize; @@ -1323,8 +1323,8 @@ Dhcp6GetMappingTimeOut ( if (EFI_ERROR (Status)) { return Status; } - + *TimeOut = TICKS_PER_SECOND * DadXmits.DupAddrDetectTransmits + DHCP6_DAD_ADDITIONAL_DELAY; - + return EFI_SUCCESS; }