Home
last modified time | relevance | path

Searched refs:v4 (Results 1 – 25 of 56) sorted by relevance

123

/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DNetwork.c25 Address->v4.Addr[0] = (UINT8)AsciiStrDecimalToUintn (String); in ParseIp()
27 Address->v4.Addr[1] = (UINT8)AsciiStrDecimalToUintn (String); in ParseIp()
29 Address->v4.Addr[2] = (UINT8)AsciiStrDecimalToUintn (String); in ParseIp()
31 Address->v4.Addr[3] = (UINT8)AsciiStrDecimalToUintn (String); in ParseIp()
66 …AsciiPrint("IP Address: %d.%d.%d.%d\n", Ip.v4.Addr[0], Ip.v4.Addr[1],Ip.v4.Addr[2], Ip.v4.Addr[3… in EblIpCmd()
/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpMcastIpToMac.c66 (!IPv6 && (Ip->v4.Addr[0] & 0xF0) != 0xE0) // invalid IPv4 mcast addr in VirtioNetMcastIpToMac()
99 Mac->Addr[3] = Ip->v4.Addr[1] & 0x7F; in VirtioNetMcastIpToMac()
100 Mac->Addr[4] = Ip->v4.Addr[2]; in VirtioNetMcastIpToMac()
101 Mac->Addr[5] = Ip->v4.Addr[3]; in VirtioNetMcastIpToMac()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/
DTftpServer.c171 if ( AF_INET == pTftpServer->RemoteAddress.v4.sin_family ) { in ContextAdd()
175 (UINT8)pTftpServer->RemoteAddress.v4.sin_addr.s_addr, in ContextAdd()
176 (UINT8)( pTftpServer->RemoteAddress.v4.sin_addr.s_addr >> 8 ), in ContextAdd()
177 (UINT8)( pTftpServer->RemoteAddress.v4.sin_addr.s_addr >> 16 ), in ContextAdd()
178 (UINT8)( pTftpServer->RemoteAddress.v4.sin_addr.s_addr >> 24 ), in ContextAdd()
179 htons ( pTftpServer->RemoteAddress.v4.sin_port ))); in ContextAdd()
759 if ( AF_INET == pTftpServer->RemoteAddress.v4.sin_family ) { in PortWork()
763 pTftpServer->RemoteAddress.v4.sin_addr.s_addr & 0xff, in PortWork()
764 ( pTftpServer->RemoteAddress.v4.sin_addr.s_addr >> 8 ) & 0xff, in PortWork()
765 ( pTftpServer->RemoteAddress.v4.sin_addr.s_addr >> 16 ) & 0xff, in PortWork()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiConfig.c729 Status = IScsiAsciiStrToIp (Ip4String, &HostIp.v4); in IScsiFormCallback()
734 CopyMem (&Private->Current->SessionConfigData.LocalIp, &HostIp.v4, sizeof (HostIp.v4)); in IScsiFormCallback()
741 Status = IScsiAsciiStrToIp (Ip4String, &SubnetMask.v4); in IScsiFormCallback()
742 …Status) || ((SubnetMask.Addr[0] != 0) && (IScsiGetSubnetMaskPrefixLength (&SubnetMask.v4) == 0))) { in IScsiFormCallback()
746 … CopyMem (&Private->Current->SessionConfigData.SubnetMask, &SubnetMask.v4, sizeof (SubnetMask.v4)); in IScsiFormCallback()
753 Status = IScsiAsciiStrToIp (Ip4String, &Gateway.v4); in IScsiFormCallback()
758 CopyMem (&Private->Current->SessionConfigData.Gateway, &Gateway.v4, sizeof (Gateway.v4)); in IScsiFormCallback()
765 Status = IScsiAsciiStrToIp (Ip4String, &HostIp.v4); in IScsiFormCallback()
770 CopyMem (&Private->Current->SessionConfigData.TargetIp, &HostIp.v4, sizeof (HostIp.v4)); in IScsiFormCallback()
849 CopyMem (&HostIp.v4, &Private->Current->SessionConfigData.LocalIp, sizeof (HostIp.v4)); in IScsiFormCallback()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecDebug.c145 Ip->v4.Addr[0], in IpSecDumpAddress()
146 Ip->v4.Addr[1], in IpSecDumpAddress()
147 Ip->v4.Addr[2], in IpSecDumpAddress()
148 Ip->v4.Addr[3]) in IpSecDumpAddress()
/device/linaro/bootloader/edk2/ArmPlatformPkg/Bds/
DBdsHelper.c175 Status = NetLibStrToIp4 (CmdLine, &OutIpAddr->v4); in GetHIInputIP()
219 InIpAddr->v4.Addr[0], InIpAddr->v4.Addr[1], in EditHIInputIP()
220 InIpAddr->v4.Addr[2], InIpAddr->v4.Addr[3] in EditHIInputIP()
227 Status = NetLibStrToIp4 (CmdLine, &OutIpAddr->v4); in EditHIInputIP()
DBootOptionSupport.c922 CopyMem (&IPv4DevicePathNode->LocalIpAddress, &LocalIp.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpCreateDevicePath()
923 CopyMem (&IPv4DevicePathNode->SubnetMask, &SubnetMask.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpCreateDevicePath()
924 CopyMem (&IPv4DevicePathNode->GatewayIpAddress, &GatewayIp.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpCreateDevicePath()
927 CopyMem (&IPv4DevicePathNode->RemoteIpAddress, &RemoteIp.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpCreateDevicePath()
1037 CopyMem (&OldIp.v4, &Ipv4Node.LocalIpAddress, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
1048 CopyMem (&OldSubnetMask.v4, &Ipv4Node.SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
1059 CopyMem (&OldGatewayIp.v4, &Ipv4Node.GatewayIpAddress, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
1071 CopyMem (&OldIp.v4, &Ipv4Node.RemoteIpAddress, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
1116 CopyMem (&Ipv4Node.LocalIpAddress, &LocalIp.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
1117 CopyMem (&Ipv4Node.SubnetMask, &SubnetMask.v4, sizeof (EFI_IPv4_ADDRESS)); in BdsLoadOptionTftpUpdateDevicePath()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/WebServer/
DWebServer.c581 struct sockaddr_in v4; in WebServerListen() member
599 WebServerAddress.v4.sin_len = sizeof ( WebServerAddress.v4 ); in WebServerListen()
600 WebServerAddress.v4.sin_family = AddressFamily; in WebServerListen()
601 WebServerAddress.v4.sin_port = htons ( HttpPort ); in WebServerListen()
615 WebServerAddress.v4.sin_len ); in WebServerListen()
/device/linaro/bootloader/edk2/NetworkPkg/Application/IpsecConfig/
DDump.c112 (UINTN) AddressInfo->Address.v4.Addr[0], in DumpAddressInfo()
113 (UINTN) AddressInfo->Address.v4.Addr[1], in DumpAddressInfo()
114 (UINTN) AddressInfo->Address.v4.Addr[2], in DumpAddressInfo()
115 (UINTN) AddressInfo->Address.v4.Addr[3] in DumpAddressInfo()
153 (UINTN) IpAddress->v4.Addr[0], in DumpIpAddress()
154 (UINTN) IpAddress->v4.Addr[1], in DumpIpAddress()
155 (UINTN) IpAddress->v4.Addr[2], in DumpIpAddress()
156 (UINTN) IpAddress->v4.Addr[3] in DumpIpAddress()
DHelper.c152 Status = NetLibStrToIp4 (Ptr, &Ip->v4); in EfiInetAddr2()
184 Status = NetLibStrToIp4 (Ptr, &Addr->Address.v4); in EfiInetAddrRange()
186 if ((UINT32)(*Addr->Address.v4.Addr) == 0) { in EfiInetAddrRange()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiConfig.c68 Ip4 = &Ip->v4; in IScsiIpToStr()
379 CopyMem (&Ip.v4, &SessionConfigData->LocalIp, sizeof (EFI_IPv4_ADDRESS)); in IScsiConvertAttemptConfigDataToIfrNvData()
381 CopyMem (&Ip.v4, &SessionConfigData->SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in IScsiConvertAttemptConfigDataToIfrNvData()
383 CopyMem (&Ip.v4, &SessionConfigData->Gateway, sizeof (EFI_IPv4_ADDRESS)); in IScsiConvertAttemptConfigDataToIfrNvData()
385 CopyMem (&Ip.v4, &SessionConfigData->TargetIp, sizeof (EFI_IPv4_ADDRESS)); in IScsiConvertAttemptConfigDataToIfrNvData()
505 CopyMem (&HostIp.v4, &Attempt->SessionConfigData.LocalIp, sizeof (HostIp.v4)); in IScsiConvertIfrNvDataToAttemptConfigData()
506 CopyMem (&SubnetMask.v4, &Attempt->SessionConfigData.SubnetMask, sizeof (SubnetMask.v4)); in IScsiConvertIfrNvDataToAttemptConfigData()
507 CopyMem (&Gateway.v4, &Attempt->SessionConfigData.Gateway, sizeof (Gateway.v4)); in IScsiConvertIfrNvDataToAttemptConfigData()
2319 Status = NetLibStrToIp4 (IfrNvData->LocalIp, &HostIp.v4); in IScsiFormCallback()
2330 CopyMem (&Private->Current->SessionConfigData.LocalIp, &HostIp.v4, sizeof (HostIp.v4)); in IScsiFormCallback()
[all …]
DIScsiIbft.c313 IScsiMapV4ToV6Addr (&NvData->LocalIp.v4, &Nic->Ip); in IScsiFillNICAndTargetSections()
314 IScsiMapV4ToV6Addr (&NvData->Gateway.v4, &Nic->Gateway); in IScsiFillNICAndTargetSections()
315 IScsiMapV4ToV6Addr (&Attempt->PrimaryDns.v4, &Nic->PrimaryDns); in IScsiFillNICAndTargetSections()
316 IScsiMapV4ToV6Addr (&Attempt->SecondaryDns.v4, &Nic->SecondaryDns); in IScsiFillNICAndTargetSections()
317 IScsiMapV4ToV6Addr (&Attempt->DhcpServer.v4, &Nic->DhcpServer); in IScsiFillNICAndTargetSections()
374 IScsiMapV4ToV6Addr (&NvData->TargetIp.v4, &Target->Ip); in IScsiFillNICAndTargetSections()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Config2Nv.c611 Status = Ip4Config2StrToIp (IfrFormNvData->StationAddress, &StationAddress.v4); in Ip4Config2ConvertIfrNvDataToConfigNvData()
617 Status = Ip4Config2StrToIp (IfrFormNvData->SubnetMask, &SubnetMask.v4); in Ip4Config2ConvertIfrNvDataToConfigNvData()
618 …ROR (Status) || ((SubnetMask.Addr[0] != 0) && (GetSubnetMaskPrefixLength (&SubnetMask.v4) == 0))) { in Ip4Config2ConvertIfrNvDataToConfigNvData()
623 Status = Ip4Config2StrToIp (IfrFormNvData->GatewayAddress, &Gateway.v4); in Ip4Config2ConvertIfrNvDataToConfigNvData()
657 CopyMem(&Ip4NvData->ManualAddress->Address, &StationAddress.v4, sizeof(EFI_IPv4_ADDRESS)); in Ip4Config2ConvertIfrNvDataToConfigNvData()
658 CopyMem(&Ip4NvData->ManualAddress->SubnetMask, &SubnetMask.v4, sizeof(EFI_IPv4_ADDRESS)); in Ip4Config2ConvertIfrNvDataToConfigNvData()
671 CopyMem(Ip4NvData->GatewayAddress, &Gateway.v4, sizeof(EFI_IPv4_ADDRESS)); in Ip4Config2ConvertIfrNvDataToConfigNvData()
1148 Status = Ip4Config2StrToIp (IfrFormNvData->StationAddress, &StationAddress.v4); in Ip4FormCallback()
1156 Status = Ip4Config2StrToIp (IfrFormNvData->SubnetMask, &SubnetMask.v4); in Ip4FormCallback()
1157 …ROR (Status) || ((SubnetMask.Addr[0] != 0) && (GetSubnetMaskPrefixLength (&SubnetMask.v4) == 0))) { in Ip4FormCallback()
[all …]
DIp4DxeExtra.uni18 "IP v4 DXE Driver"
DIp4Common.c242 EFI_IP4 (EfiIp.v4) = HTONL (Multicast); in Ip4GetMulticastMac()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
DPxeBcImpl.c121 if (EFI_IP4_EQUAL (&PxeBcMode->ArpCache[Index].IpAddr.v4, Ip4Addr)) { in FindInArpCache()
186 if (!EFI_IP4_EQUAL (&RxData->Header->DestinationAddress, &Mode->StationIp.v4)) { in IcmpErrorListenHandlerDpc()
690 ArpConfigData.StationAddress = &Private->StationIp.v4; in EfiPxeBcDhcp()
1182 if (!FindInArpCache (Mode, &ServerIp->v4, &TempMacAddr)) { in EfiPxeBcMtftp()
1416 if (!FindInArpCache (Mode, &DestIp->v4, &TempMacAddr)) { in EfiPxeBcUdpWrite()
1435 &Private->StationIp.v4, in EfiPxeBcUdpWrite()
1436 &Private->SubnetMask.v4, in EfiPxeBcUdpWrite()
1437 &Private->GatewayIp.v4, in EfiPxeBcUdpWrite()
1561 CopyMem (&Ip4Address, &PxeBcMode->StationIp.v4, sizeof (Ip4Address)); in CheckIpByFilter()
1573 &PxeBcMode->IpFilter.IpList[Index].v4, in CheckIpByFilter()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcImpl.c892 CopyMem (&Mtftp4Config.StationIp, &Private->StationIp.v4, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcMtftp()
893 CopyMem (&Mtftp4Config.SubnetMask, &Private->SubnetMask.v4, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcMtftp()
894 CopyMem (&Mtftp4Config.GatewayIp, &Private->GatewayIp.v4, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcMtftp()
895 CopyMem (&Mtftp4Config.ServerIp, &ServerIp->v4, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcMtftp()
1124 &Private->StationIp.v4, in EfiPxeBcUdpWrite()
1125 &Private->SubnetMask.v4, in EfiPxeBcUdpWrite()
1126 &Private->GatewayIp.v4, in EfiPxeBcUdpWrite()
1582 IP4_IS_LOCAL_BROADCAST (EFI_IP4 (NewFilter->IpList[Index].v4))) { in EfiPxeBcSetIpFilter()
1589 (NetIp4IsUnicast (EFI_IP4 (NewFilter->IpList[Index].v4), 0) || in EfiPxeBcSetIpFilter()
1661 if (IP4_IS_MULTICAST (EFI_NTOHL (NewFilter->IpList[Index].v4))) { in EfiPxeBcSetIpFilter()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/
DMnpMain.c277 MacAddress->Addr[3] = (UINT8) (IpAddress->v4.Addr[1] & 0x7F); in MnpMcastIpToMac()
278 MacAddress->Addr[4] = IpAddress->v4.Addr[2]; in MnpMcastIpToMac()
279 MacAddress->Addr[5] = IpAddress->v4.Addr[3]; in MnpMcastIpToMac()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4DxeExtra.uni18 "MTFTP v4 DXE Driver"
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4DxeExtra.uni18 "TCP v4 DXE Driver"
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4DxeExtra.uni18 "UDP v4 DXE Driver"
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4DxeExtra.uni18 "DHCP v4 DXE Driver"
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/Common/
DUefiBaseTypes.h90 EFI_IPv4_ADDRESS v4; member
/device/linaro/bootloader/edk2/MdePkg/Include/Uefi/
DUefiBaseType.h114 EFI_IPv4_ADDRESS v4; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/
DEfiTypes.h179 EFI_IPv4_ADDRESS v4; member

123