Home
last modified time | relevance | path

Searched refs:PrefixLength (Results 1 – 25 of 39) sorted by relevance

12

/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Route.c59 IN UINT8 PrefixLength, in Ip6CreateRouteEntry() argument
73 RtEntry->PrefixLength = PrefixLength; in Ip6CreateRouteEntry()
143 if (NetIp6IsNetEqual (Destination, &RtEntry->Destination, RtEntry->PrefixLength)) { in Ip6FindRouteEntry()
148 if (NetIp6IsNetEqual (NextHop, &RtEntry->NextHop, RtEntry->PrefixLength)) { in Ip6FindRouteEntry()
311 RtEntry->PrefixLength in Ip6BuildEfiRouteTable()
315 EfiTable[Count].PrefixLength = RtEntry->PrefixLength; in Ip6BuildEfiRouteTable()
458 IN UINT8 PrefixLength, in Ip6AddRoute() argument
466 ListHead = &RtTable->RouteArea[PrefixLength]; in Ip6AddRoute()
474 if (NetIp6IsNetEqual (Destination, &Route->Destination, PrefixLength) && in Ip6AddRoute()
483 Route = Ip6CreateRouteEntry (Destination, PrefixLength, GatewayAddress); in Ip6AddRoute()
[all …]
DIp6Common.c72 EfiAddrInfo->PrefixLength = IP6_LINK_LOCAL_PREFIX_LENGTH; in Ip6BuildEfiAddressList()
81 EfiAddrInfo->PrefixLength = AddrInfo->PrefixLength; in Ip6BuildEfiAddressList()
422 IN UINT8 PrefixLength in Ip6RemoveAddr() argument
431 if (IsListEmpty (AddressList) || *AddressCount < 1 || PrefixLength > IP6_PREFIX_NUM) { in Ip6RemoveAddr()
441 (PrefixLength == 128 && EFI_IP6_EQUAL (Prefix, &AddrInfo->Address)) || in Ip6RemoveAddr()
442 …(PrefixLength == AddrInfo->PrefixLength && NetIp6IsNetEqual (Prefix, &AddrInfo->Address, PrefixLen… in Ip6RemoveAddr()
601 IN UINT8 PrefixLength in Ip6CopyAddressByPrefix() argument
609 ASSERT (PrefixLength < IP6_PREFIX_NUM); in Ip6CopyAddressByPrefix()
611 Byte = (UINT8) (PrefixLength / 8); in Ip6CopyAddressByPrefix()
612 Bit = (UINT8) (PrefixLength % 8); in Ip6CopyAddressByPrefix()
DIp6If.c85 IN UINT8 PrefixLength, in Ip6SetAddress() argument
126 AddressInfo->PrefixLength = PrefixLength; in Ip6SetAddress()
130 if (AddressInfo->PrefixLength == 0) { in Ip6SetAddress()
138 … if (NetIp6IsNetEqual (&PrefixEntry->Prefix, &AddressInfo->Address, PrefixEntry->PrefixLength)) { in Ip6SetAddress()
139 AddressInfo->PrefixLength = PrefixEntry->PrefixLength; in Ip6SetAddress()
145 if (AddressInfo->PrefixLength == 0) { in Ip6SetAddress()
153 … if (NetIp6IsNetEqual (&PrefixEntry->Prefix, &AddressInfo->Address, PrefixEntry->PrefixLength)) { in Ip6SetAddress()
154 AddressInfo->PrefixLength = PrefixEntry->PrefixLength; in Ip6SetAddress()
160 if (AddressInfo->PrefixLength == 0) { in Ip6SetAddress()
164 AddressInfo->PrefixLength = IP6_LINK_LOCAL_PREFIX_LENGTH; in Ip6SetAddress()
DIp6Route.h34 UINT8 PrefixLength; member
196 IN UINT8 PrefixLength,
254 IN UINT8 PrefixLength,
276 IN UINT8 PrefixLength,
DIp6Icmp.c466 IN UINT8 PrefixLength, in Ip6GetPrefix() argument
475 ASSERT ((Prefix != NULL) && (PrefixLength < IP6_PREFIX_NUM)); in Ip6GetPrefix()
477 if (PrefixLength == 0) { in Ip6GetPrefix()
482 if (PrefixLength == IP6_PREFIX_NUM - 1) { in Ip6GetPrefix()
486 Byte = (UINT8) (PrefixLength / 8); in Ip6GetPrefix()
487 Bit = (UINT8) (PrefixLength % 8); in Ip6GetPrefix()
533 Ip6GetPrefix (PrefixEntry->PrefixLength, &Prefix); in Ip6IsAnycast()
DIp6Nd.h81 UINT8 PrefixLength; member
150 UINT8 PrefixLength; member
334 IN UINT8 PrefixLength,
375 IN UINT8 PrefixLength,
689 IN UINT8 PrefixLength,
DIp6Nd.c156 EfiPrefix->PrefixLength = PrefixList->PrefixLength; in Ip6BuildPrefixTable()
191 IN UINT8 PrefixLength, in Ip6CreatePrefixListEntry() argument
201 if (Prefix == NULL || PreferredLifetime > ValidLifetime || PrefixLength >= IP6_PREFIX_NUM) { in Ip6CreatePrefixListEntry()
210 PrefixLength, in Ip6CreatePrefixListEntry()
226 PrefixEntry->PrefixLength = PrefixLength; in Ip6CreatePrefixListEntry()
235 RtEntry = Ip6CreateRouteEntry (Prefix, PrefixLength, NULL); in Ip6CreatePrefixListEntry()
242 InsertHeadList (&IpSb->RouteTable->RouteArea[PrefixLength], &RtEntry->Link); in Ip6CreatePrefixListEntry()
253 if (TmpPrefixEntry->PrefixLength < PrefixEntry->PrefixLength) { in Ip6CreatePrefixListEntry()
299 PrefixEntry->PrefixLength, in Ip6DestroyPrefixListEntry()
310 …r (IpSb, &IpIf->AddressList, &IpIf->AddressCount, &PrefixEntry->Prefix, PrefixEntry->PrefixLength); in Ip6DestroyPrefixListEntry()
[all …]
DIp6Common.h234 IN UINT8 PrefixLength
279 IN UINT8 PrefixLength
DIp6ConfigImpl.c937 (NewAddress->PrefixLength > 128) in Ip6ConfigSetMaunualAddress()
1028 if (NewAddress->PrefixLength == 0) { in Ip6ConfigSetMaunualAddress()
1029 NewAddress->PrefixLength = CurrentAddrInfo->PrefixLength; in Ip6ConfigSetMaunualAddress()
1035 if (NewAddress->PrefixLength != CurrentAddrInfo->PrefixLength) { in Ip6ConfigSetMaunualAddress()
1043 CurrentAddrInfo->PrefixLength, in Ip6ConfigSetMaunualAddress()
1053 CurrentAddrInfo->PrefixLength = NewAddress->PrefixLength; in Ip6ConfigSetMaunualAddress()
1063 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1072 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1096 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1135 CurrentAddrInfo->PrefixLength, in Ip6ConfigSetMaunualAddress()
[all …]
DIp6ConfigNv.c456 UINT8 PrefixLength; in Ip6ConvertAddressListToString() local
509 PrefixLength = ((EFI_IP6_ADDRESS_INFO *) AddressInfo)->PrefixLength; in Ip6ConvertAddressListToString()
511 PrefixLength = ((EFI_IP6_ROUTE_TABLE *) AddressInfo)->PrefixLength; in Ip6ConvertAddressListToString()
519 Number = UnicodeSPrint (TempStr, 6, L"%d", PrefixLength); in Ip6ConvertAddressListToString()
630 Status = NetLibStrToIp6andPrefix (TempStr, &AddressInfo.Address, &AddressInfo.PrefixLength); in Ip6ParseAddressListFromString()
635 if (AddressInfo.PrefixLength == 0xFF) { in Ip6ParseAddressListFromString()
636 AddressInfo.PrefixLength = 0; in Ip6ParseAddressListFromString()
850 ManualAddress->PrefixLength = Node->AddrInfo.PrefixLength; in Ip6BuildNvAddressInfo()
DIp6Impl.c417 IpInstance->PrefixLength = AddressInfo->PrefixLength; in Ip6ConfigProtocol()
419 IpInstance->PrefixLength = IP6_LINK_LOCAL_PREFIX_LENGTH; in Ip6ConfigProtocol()
836 IN UINT8 PrefixLength, in EfiIp6Routes() argument
845 if ((This == NULL) || (PrefixLength >= IP6_PREFIX_NUM)) { in EfiIp6Routes()
874 !NetIp6IsNetEqual (GatewayAddress, &IpInstance->ConfigData.StationAddress, PrefixLength) in EfiIp6Routes()
886 Status = Ip6DelRoute (IpSb->RouteTable, Destination, PrefixLength, GatewayAddress); in EfiIp6Routes()
888 Status = Ip6AddRoute (IpSb->RouteTable, Destination, PrefixLength, GatewayAddress); in EfiIp6Routes()
DIp6Impl.h144 UINT8 PrefixLength; // PrefixLength of the configured station address. member
517 IN UINT8 PrefixLength,
DIp6If.h86 UINT8 PrefixLength; member
/device/linaro/bootloader/edk2/NetworkPkg/Application/IpsecConfig/
DHelper.c187 Addr->PrefixLength = 0; in EfiInetAddrRange()
189 Addr->PrefixLength = 32; in EfiInetAddrRange()
194 Status = NetLibStrToIp6andPrefix (Ptr, &Addr->Address.v6, &Addr->PrefixLength); in EfiInetAddrRange()
195 if (!EFI_ERROR (Status) && (Addr->PrefixLength == 0xFF)) { in EfiInetAddrRange()
196 Addr->PrefixLength = 128; in EfiInetAddrRange()
DMatch.c141 … (Indexer->PadId.Id.IpAddress.PrefixLength == PadId->Id.IpAddress.PrefixLength) && in MatchPadEntry()
DDump.c33 if((AddressInfo->PrefixLength <= 32) && (AddressInfo->Address.Addr[1] == 0) && in GetVerFromAddrInfo()
117 if (AddressInfo->PrefixLength != 32) { in DumpAddressInfo()
118 Print (L"/%d", (UINTN) AddressInfo->PrefixLength); in DumpAddressInfo()
134 if (AddressInfo->PrefixLength != 128) { in DumpAddressInfo()
135 Print (L"/%d", AddressInfo->PrefixLength); in DumpAddressInfo()
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
DIp6.h61 UINT8 PrefixLength; member
229 UINT8 PrefixLength; ///< The length of the prefix associated with the Address. member
250 UINT8 PrefixLength; member
720 IN UINT8 PrefixLength,
DIp6Config.h195 …UINT8 PrefixLength; ///< The length, in bits, of the prefix associated with this … member
DIpSecConfig.h74 UINT8 PrefixLength; ///< The length of the prefix associated with the Address. member
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecImpl.c43 IN UINT8 PrefixLength in IpSecValidAddressRange() argument
53 if (PrefixLength == 0) { in IpSecValidAddressRange()
59 if (AddrLen <= PrefixLength) { in IpSecValidAddressRange()
63 Div = (UINT8) (PrefixLength / 8); in IpSecValidAddressRange()
64 Mod = (UINT8) (PrefixLength % 8); in IpSecValidAddressRange()
107 IN UINT8 PrefixLength, in IpSecExtractAddressRange() argument
116 if (PrefixLength == 0) { in IpSecExtractAddressRange()
120 Div = (UINT8) (PrefixLength / 8); in IpSecExtractAddressRange()
121 Mod = (UINT8) (PrefixLength % 8); in IpSecExtractAddressRange()
176 AddressInfo[Index].PrefixLength in IpSecMatchIpAddress()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Application/IfConfig6/
DIfConfig6.c422 AddrBuf[AddrCnt].PrefixLength = Prefix; in IfConfig6ParseManualAddressList()
974 &IfCb->IfInfo->AddressInfo[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1000 &IfCb->IfInfo->RouteTable[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1347 if (CfgManAddr[Index].PrefixLength == 0) { in IfConfig6SetInterfaceInfo()
1348 CfgManAddr[Index].PrefixLength = 64; in IfConfig6SetInterfaceInfo()
1353 (IfInfo->AddressInfo[Index2].PrefixLength == CfgManAddr[Index].PrefixLength)) { in IfConfig6SetInterfaceInfo()
1363 &CfgManAddr[Index].PrefixLength in IfConfig6SetInterfaceInfo()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DDxeNetLib.c790 UINT8 PrefixLength in NetIp6IsNetEqual() argument
797 ASSERT ((Ip1 != NULL) && (Ip2 != NULL) && (PrefixLength < IP6_PREFIX_NUM)); in NetIp6IsNetEqual()
799 if (PrefixLength == 0) { in NetIp6IsNetEqual()
803 Byte = (UINT8) (PrefixLength / 8); in NetIp6IsNetEqual()
804 Bit = (UINT8) (PrefixLength % 8); in NetIp6IsNetEqual()
2639 Node->PrefixLength = IP6_PREFIX_LENGTH; in NetLibCreateIPv6DPathNode()
3059 OUT UINT8 *PrefixLength in NetLibStrToIp6andPrefix() argument
3068 if ((String == NULL) || (Ip6Address == NULL) || (PrefixLength == NULL)) { in NetLibStrToIp6andPrefix()
3129 *PrefixLength = Length; in NetLibStrToIp6andPrefix()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiMisc.h50 UINT8 PrefixLength; member
DIScsiProto.c360 NvData->PrefixLength = 0; in IScsiGetIp6NicInfo()
363 NvData->PrefixLength = Ip6ModeData.AddressList[Index].PrefixLength; in IScsiGetIp6NicInfo()
371 …argetIp, &Ip6ModeData.RouteTable[Index].Destination, Ip6ModeData.RouteTable[Index].PrefixLength)) { in IScsiGetIp6NicInfo()
372 if (SubnetPrefixLength < Ip6ModeData.RouteTable[Index].PrefixLength) { in IScsiGetIp6NicInfo()
373 SubnetPrefixLength = Ip6ModeData.RouteTable[Index].PrefixLength; in IScsiGetIp6NicInfo()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DIpIoLib.h153 UINT8 PrefixLength; member

12