Home
last modified time | relevance | path

Searched refs:PrefixLength (Results 1 – 25 of 42) 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_MAX) { 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_MAX); 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.c467 IN UINT8 PrefixLength, in Ip6GetPrefix() argument
476 ASSERT ((Prefix != NULL) && (PrefixLength < IP6_PREFIX_MAX)); in Ip6GetPrefix()
478 if (PrefixLength == 0) { in Ip6GetPrefix()
483 if (PrefixLength >= IP6_PREFIX_MAX) { in Ip6GetPrefix()
487 Byte = (UINT8) (PrefixLength / 8); in Ip6GetPrefix()
488 Bit = (UINT8) (PrefixLength % 8); in Ip6GetPrefix()
534 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_MAX) { 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.c936 (NewAddress->PrefixLength > 128) in Ip6ConfigSetMaunualAddress()
1027 if (NewAddress->PrefixLength == 0) { in Ip6ConfigSetMaunualAddress()
1028 NewAddress->PrefixLength = CurrentAddrInfo->PrefixLength; in Ip6ConfigSetMaunualAddress()
1034 if (NewAddress->PrefixLength != CurrentAddrInfo->PrefixLength) { in Ip6ConfigSetMaunualAddress()
1042 CurrentAddrInfo->PrefixLength, in Ip6ConfigSetMaunualAddress()
1052 CurrentAddrInfo->PrefixLength = NewAddress->PrefixLength; in Ip6ConfigSetMaunualAddress()
1062 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1071 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1095 NewAddress->PrefixLength, in Ip6ConfigSetMaunualAddress()
1134 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.h146 UINT8 PrefixLength; // PrefixLength of the configured station address. member
519 IN UINT8 PrefixLength,
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_MAX)) { 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()
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
/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/google/cuttlefish/common/libs/net/
Dnetwork_interface.h50 int PrefixLength() const { in PrefixLength() function
Dnetwork_interface_manager.cpp46 request.AddAddrInfo(interface.Index(), interface.PrefixLength()); in BuildAddrRequest()
/device/linaro/bootloader/edk2/NetworkPkg/Application/IfConfig6/
DIfConfig6.c424 AddrBuf[AddrCnt].PrefixLength = Prefix; in IfConfig6ParseManualAddressList()
976 &IfCb->IfInfo->AddressInfo[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1002 &IfCb->IfInfo->RouteTable[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1349 if (CfgManAddr[Index].PrefixLength == 0) { in IfConfig6SetInterfaceInfo()
1350 CfgManAddr[Index].PrefixLength = 64; in IfConfig6SetInterfaceInfo()
1355 (IfInfo->AddressInfo[Index2].PrefixLength == CfgManAddr[Index].PrefixLength)) { in IfConfig6SetInterfaceInfo()
1365 &CfgManAddr[Index].PrefixLength in IfConfig6SetInterfaceInfo()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellNetwork2CommandsLib/
DIfconfig6.c500 AddrBuf[AddrCnt].PrefixLength = Prefix; in IfConfig6ParseManualAddressList()
1050 &IfCb->IfInfo->AddressInfo[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1076 &IfCb->IfInfo->RouteTable[Index].PrefixLength in IfConfig6ShowInterfaceInfo()
1474 if (CfgManAddr[Index].PrefixLength == 0) { in IfConfig6SetInterfaceInfo()
1475 CfgManAddr[Index].PrefixLength = 64; in IfConfig6SetInterfaceInfo()
1480 (IfInfo->AddressInfo[Index2].PrefixLength == CfgManAddr[Index].PrefixLength)) { in IfConfig6SetInterfaceInfo()
1490 &CfgManAddr[Index].PrefixLength in IfConfig6SetInterfaceInfo()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiMisc.h50 UINT8 PrefixLength; member
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DDxeNetLib.c788 UINT8 PrefixLength in NetIp6IsNetEqual() argument
795 ASSERT ((Ip1 != NULL) && (Ip2 != NULL) && (PrefixLength <= IP6_PREFIX_MAX)); in NetIp6IsNetEqual()
797 if (PrefixLength == 0) { in NetIp6IsNetEqual()
801 Byte = (UINT8) (PrefixLength / 8); in NetIp6IsNetEqual()
802 Bit = (UINT8) (PrefixLength % 8); in NetIp6IsNetEqual()
2637 Node->PrefixLength = IP6_PREFIX_LENGTH; in NetLibCreateIPv6DPathNode()
3083 OUT UINT8 *PrefixLength in NetLibStrToIp6andPrefix() argument
3093 if ((String == NULL) || (Ip6Address == NULL) || (PrefixLength == NULL)) { in NetLibStrToIp6andPrefix()
3155 *PrefixLength = Length; in NetLibStrToIp6andPrefix()

12