Home
last modified time | relevance | path

Searched refs:Ip (Results 1 – 25 of 93) sorted by relevance

1234

/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecDebug.c112 IN EFI_IP_ADDRESS *Ip, in IpSecDumpAddress() argument
120 Ip->v6.Addr[0], in IpSecDumpAddress()
121 Ip->v6.Addr[1], in IpSecDumpAddress()
122 Ip->v6.Addr[2], in IpSecDumpAddress()
123 Ip->v6.Addr[3], in IpSecDumpAddress()
124 Ip->v6.Addr[4], in IpSecDumpAddress()
125 Ip->v6.Addr[5], in IpSecDumpAddress()
126 Ip->v6.Addr[6], in IpSecDumpAddress()
127 Ip->v6.Addr[7]) in IpSecDumpAddress()
132 Ip->v6.Addr[8], in IpSecDumpAddress()
[all …]
DIpSecDebug.h21 #define IPSEC_DUMP_ADDRESS(Level, Ip, Version) IpSecDumpAddress (Level, Ip, Version) argument
45 IN EFI_IP_ADDRESS *Ip,
/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpMcastIpToMac.c53 IN EFI_IP_ADDRESS *Ip, in VirtioNetMcastIpToMac() argument
64 if (This == NULL || Ip == NULL || Mac == NULL || in VirtioNetMcastIpToMac()
65 ( IPv6 && (Ip->v6.Addr[0] ) != 0xFF) || // invalid IPv6 mcast addr in VirtioNetMcastIpToMac()
66 (!IPv6 && (Ip->v4.Addr[0] & 0xF0) != 0xE0) // invalid IPv4 mcast addr in VirtioNetMcastIpToMac()
90 Mac->Addr[2] = Ip->v6.Addr[12]; in VirtioNetMcastIpToMac()
91 Mac->Addr[3] = Ip->v6.Addr[13]; in VirtioNetMcastIpToMac()
92 Mac->Addr[4] = Ip->v6.Addr[14]; in VirtioNetMcastIpToMac()
93 Mac->Addr[5] = Ip->v6.Addr[15]; in VirtioNetMcastIpToMac()
99 Mac->Addr[3] = Ip->v4.Addr[1] & 0x7F; in VirtioNetMcastIpToMac()
100 Mac->Addr[4] = Ip->v4.Addr[2]; in VirtioNetMcastIpToMac()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeIpIoLib/
DDxeIpIoLib.c747 SndEntry->Ip = Sender; in IpIoCreateSndEntry()
857 SndEntry->Ip, in IpIoTransmitHandlerDpc()
945 IpInfo->Ip.Ip4->Receive ( in IpIoDummyHandlerDpc()
946 IpInfo->Ip.Ip4, in IpIoDummyHandlerDpc()
950 IpInfo->Ip.Ip6->Receive ( in IpIoDummyHandlerDpc()
951 IpInfo->Ip.Ip6, in IpIoDummyHandlerDpc()
1127 IpIo->Ip.Ip4->Receive (IpIo->Ip.Ip4, &(IpIo->RcvToken.Ip4Token)); in IpIoListenHandlerDpc()
1129 IpIo->Ip.Ip6->Receive (IpIo->Ip.Ip6, &(IpIo->RcvToken.Ip6Token)); in IpIoListenHandlerDpc()
1221 (VOID **)&(IpIo->Ip) in IpIoCreate()
1282 Status = IpIo->Ip.Ip4->Configure ( in IpIoOpen()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DNetwork.c45 EFI_IP_ADDRESS Ip; in EblIpCmd() local
59 Status = EblGetCurrentIpAddress (&Ip); in EblIpCmd()
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()
73 Status = ParseIp (Argv[2], &Ip); in EblIpCmd()
78 Status = EblSetStationIp (&Ip, NULL); in EblIpCmd()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Common.c38 if (IpAddr == IpIf->Ip) { in Ip4GetNetCast()
139 IN IP4_ADDR Ip in Ip4FindInterface() argument
148 if (IpIf->Configured && (IpIf->Ip == Ip)) { in Ip4FindInterface()
169 IN IP4_ADDR Ip in Ip4FindNet() argument
178 if (IpIf->Configured && IP4_NET_EQUAL (Ip, IpIf->Ip, IpIf->SubnetMask)) { in Ip4FindNet()
200 IN IP4_ADDR Ip, in Ip4FindStationAddress() argument
210 if (IpIf->Configured && (IpIf->Ip == Ip) && (IpIf->SubnetMask == Netmask)) { in Ip4FindStationAddress()
DIp4Common.h133 IN IP4_ADDR Ip
148 IN IP4_ADDR Ip
164 IN IP4_ADDR Ip,
DIp4Impl.c381 IP4_ADDR Ip; in EfiIp4GetModeData() local
420 Ip = HTONL (IpInstance->Interface->Ip); in EfiIp4GetModeData()
421 CopyMem (&Config->StationAddress, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiIp4GetModeData()
423 Ip = HTONL (IpInstance->Interface->SubnetMask); in EfiIp4GetModeData()
424 CopyMem (&Config->SubnetMask, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiIp4GetModeData()
646 IP4_ADDR Ip; in Ip4ConfigProtocol() local
685 CopyMem (&Ip, &Config->StationAddress, sizeof (IP4_ADDR)); in Ip4ConfigProtocol()
688 Ip = NTOHL (Ip); in Ip4ConfigProtocol()
697 IpIf = Ip4FindStationAddress (IpSb, Ip, Netmask); in Ip4ConfigProtocol()
709 Status = Ip4SetAddress (IpIf, Ip, Netmask); in Ip4ConfigProtocol()
[all …]
DIp4Config2Nv.c73 OUT EFI_IPv4_ADDRESS *Ip in Ip4Config2StrToIp() argument
97 Ip->Addr[Index] = (UINT8) Number; in Ip4Config2StrToIp()
272 IN EFI_IPv4_ADDRESS *Ip, in Ip4Config2IpToStr() argument
280 Ip->Addr[0], in Ip4Config2IpToStr()
281 Ip->Addr[1], in Ip4Config2IpToStr()
282 Ip->Addr[2], in Ip4Config2IpToStr()
283 Ip->Addr[3] in Ip4Config2IpToStr()
299 IN EFI_IPv4_ADDRESS *Ip, in Ip4Config2IpListToStr() argument
317 TempIp = Ip + Index; in Ip4Config2IpListToStr()
562 IP4_ADDR Ip; in Ip4Config2ConvertIfrNvDataToConfigNvData() local
[all …]
DIp4Output.c86 Packet->Ip.Ip4 = PacketHead; in Ip4PrependHead()
122 if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { in Ip4SelectInterface()
131 if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { in Ip4SelectInterface()
144 if (IpIf->Configured && ((Selected == NULL) || (Selected->Ip == 0))) { in Ip4SelectInterface()
255 Head->Src = IpIf->Ip; in Ip4Output()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpDispatcher.c41 IP_IO_IP_PROTOCOL Ip; in Tcp4Route() local
43 Ip = Tcb->IpInfo->Ip; in Tcp4Route()
45 ASSERT (Ip.Ip4!= NULL); in Tcp4Route()
47 return Ip.Ip4->Routes ( in Tcp4Route()
48 Ip.Ip4, in Tcp4Route()
79 EFI_IP4_PROTOCOL *Ip; in Tcp4GetMode() local
102 IP4_COPY_ADDRESS (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip); in Tcp4GetMode()
107 IP4_COPY_ADDRESS (&AccessPoint->RemoteAddress, &Tcb->RemoteEnd.Ip); in Tcp4GetMode()
134 Ip = Tcb->IpInfo->Ip.Ip4; in Tcp4GetMode()
135 ASSERT (Ip != NULL); in Tcp4GetMode()
[all …]
DTcpMisc.c62 Tcb->LocalEnd.Ip.Addr[0], in TcpInitTcbLocal()
63 Tcb->RemoteEnd.Ip.Addr[0], in TcpInitTcbLocal()
69 &Tcb->LocalEnd.Ip.v6, in TcpInitTcbLocal()
70 &Tcb->RemoteEnd.Ip.v6, in TcpInitTcbLocal()
216 IN EFI_IP_ADDRESS *Ip, in TcpIsIpZero() argument
223 return (BOOLEAN) (Ip->Addr[0] == 0); in TcpIsIpZero()
225 return (BOOLEAN) ((Ip->Addr[0] == 0) && (Ip->Addr[1] == 0) && in TcpIsIpZero()
226 (Ip->Addr[2] == 0) && (Ip->Addr[3] == 0)); in TcpIsIpZero()
274 if (TcpIsIpZero (&Node->RemoteEnd.Ip, Version)) { in TcpLocateListenTcb()
282 if (TcpIsIpZero (&Node->LocalEnd.Ip, Version)) { in TcpLocateListenTcb()
[all …]
DTcpMain.c137 IP4_ADDR Ip; in Tcp4Configure() local
149 CopyMem (&Ip, &TcpConfigData->AccessPoint.RemoteAddress, sizeof (IP4_ADDR)); in Tcp4Configure()
150 if ((Ip != 0) && !NetIp4IsUnicast (NTOHL (Ip), 0)) { in Tcp4Configure()
154 …if (TcpConfigData->AccessPoint.ActiveFlag && (0 == TcpConfigData->AccessPoint.RemotePort || (Ip ==… in Tcp4Configure()
160 CopyMem (&Ip, &TcpConfigData->AccessPoint.StationAddress, sizeof (IP4_ADDR)); in Tcp4Configure()
162 if (!NetIp4IsUnicast (NTOHL (Ip), 0) || !IP4_IS_VALID_NETMASK (NTOHL (SubnetMask))) { in Tcp4Configure()
655 EFI_IPv6_ADDRESS *Ip; in Tcp6Configure() local
666 Ip = &Tcp6ConfigData->AccessPoint.RemoteAddress; in Tcp6Configure()
667 if (!NetIp6IsUnspecifiedAddr (Ip) && !NetIp6IsValidUnicast (Ip)) { in Tcp6Configure()
672 (0 == Tcp6ConfigData->AccessPoint.RemotePort || NetIp6IsUnspecifiedAddr (Ip)) in Tcp6Configure()
[all …]
DTcpProto.h193 (((Pa)->Port == (Pb)->Port) && TcpIsIpEqual(&((Pa)->Ip), &((Pb)->Ip), Ver))
202 (TcpIsIpZero (&((Pb)->Ip), Ver) || TcpIsIpEqual (&((Pb)->Ip), &((Pa)->Ip), Ver)) \
232 EFI_IP_ADDRESS Ip; ///< IP address, in network byte order. member
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Main.c60 EFI_IP4_PROTOCOL *Ip; in Udp4GetModeData() local
83 Ip = Instance->IpInfo->Ip.Ip4; in Udp4GetModeData()
88 Status = Ip->GetModeData (Ip, Ip4ModeData, MnpConfigData, SnpModeData); in Udp4GetModeData()
332 EFI_IP4_PROTOCOL *Ip; in Udp4Groups() local
359 Ip = Instance->IpInfo->Ip.Ip4; in Udp4Groups()
366 Status = Ip->Groups (Ip, JoinFlag, MulticastAddress); in Udp4Groups()
443 EFI_IP4_PROTOCOL *Ip; in Udp4Routes() local
459 Ip = Instance->IpInfo->Ip.Ip4; in Udp4Routes()
464 return Ip->Routes (Ip, DeleteRoute, SubnetAddress, SubnetMask, GatewayAddress); in Udp4Routes()
895 EFI_IP4_PROTOCOL *Ip; in Udp4Poll() local
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Dispatcher.c45 Ip4 = Tcb->IpInfo->Ip.Ip4; in Tcp4Route()
82 EFI_IP4_PROTOCOL *Ip; in Tcp4GetMode() local
105 IP4_COPY_ADDRESS (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip); in Tcp4GetMode()
109 IP4_COPY_ADDRESS (&AccessPoint->RemoteAddress, &Tcb->RemoteEnd.Ip); in Tcp4GetMode()
135 Ip = Tcb->IpInfo->Ip.Ip4; in Tcp4GetMode()
136 ASSERT (Ip != NULL); in Tcp4GetMode()
138 return Ip->GetModeData (Ip, Mode->Ip4ModeData, Mode->MnpConfigData, Mode->SnpModeData); in Tcp4GetMode()
264 VOID *Ip; in Tcp4AttachPcb() local
294 &Ip, in Tcp4AttachPcb()
460 CopyMem (&Tcb->LocalEnd.Ip, &CfgData->AccessPoint.StationAddress, sizeof (IP4_ADDR)); in Tcp4ConfigurePcb()
[all …]
DTcp4Misc.c62 Tcb->LocalEnd.Ip, in TcpInitTcbLocal()
63 Tcb->RemoteEnd.Ip, in TcpInitTcbLocal()
211 if (Node->RemoteEnd.Ip == 0) { in TcpLocateListenTcb()
219 if (Node->LocalEnd.Ip == 0) { in TcpLocateListenTcb()
263 if (EFI_IP4_EQUAL (Addr, &Tcb->LocalEnd.Ip) && in TcpFindTcbByPeer()
273 if (EFI_IP4_EQUAL (Addr, &Tcb->LocalEnd.Ip) && in TcpFindTcbByPeer()
312 Local.Ip = LocalIp; in TcpLocateTcb()
315 Remote.Ip = RemoteIp; in TcpLocateTcb()
476 EFI_IP4_PROTOCOL *Ip; in TcpGetRcvMss() local
481 Ip = TcpProto->TcpService->IpIo->Ip.Ip4; in TcpGetRcvMss()
[all …]
DTcp4Main.c160 IP4_ADDR Ip; in Tcp4Configure() local
172 CopyMem (&Ip, &TcpConfigData->AccessPoint.RemoteAddress, sizeof (IP4_ADDR)); in Tcp4Configure()
173 if ((Ip != 0) && !NetIp4IsUnicast (NTOHL (Ip), 0)) { in Tcp4Configure()
178 (0 == TcpConfigData->AccessPoint.RemotePort || (Ip == 0))) { in Tcp4Configure()
184 CopyMem (&Ip, &TcpConfigData->AccessPoint.StationAddress, sizeof (IP4_ADDR)); in Tcp4Configure()
186 if (!NetIp4IsUnicast (NTOHL (Ip), 0) || !IP4_IS_VALID_NETMASK (NTOHL (SubnetMask))) { in Tcp4Configure()
DTcp4Proto.h157 UINT32 Ip; ///< IP address, network byte order member
325 (((Pa)->Ip == (Pb)->Ip) && ((Pa)->Port == (Pb)->Port))
332 ((((Pb)->Ip == 0) || ((Pb)->Ip == (Pa)->Ip)) && \
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/EbcDxe/
DEbcExecute.c1391 ExecFunc = (UINTN) mVmOpcodeTable[(*VmPtr->Ip & OPCODE_M_OPCODE)].ExecuteFunction; in EbcExecuteInstructions()
1396 mVmOpcodeTable[(*VmPtr->Ip & OPCODE_M_OPCODE)].ExecuteFunction (VmPtr); in EbcExecuteInstructions()
1464 VmPtr->EntryPoint = (VOID *) VmPtr->Ip; in EbcExecute()
1485 ExecFunc = (UINTN) mVmOpcodeTable[(*VmPtr->Ip & OPCODE_M_OPCODE)].ExecuteFunction; in EbcExecute()
1497 mVmOpcodeTable[(*VmPtr->Ip & OPCODE_M_OPCODE)].ExecuteFunction (VmPtr); in EbcExecute()
1805 VmPtr->Ip += Size; in ExecuteMOVxx()
1918 VmPtr->Ip += 2; in ExecuteBREAK()
1979 VmPtr->Ip += Size; in ExecuteJMP()
2019 VmPtr->Ip += (UINTN) Data64 + Size; in ExecuteJMP()
2021 VmPtr->Ip = (VMIP) (UINTN) Data64; in ExecuteJMP()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/
DUdp6Main.c65 EFI_IP6_PROTOCOL *Ip; in Udp6GetModeData() local
88 Ip = Instance->IpInfo->Ip.Ip6; in Udp6GetModeData()
93 Status = Ip->GetModeData (Ip, Ip6ModeData, MnpConfigData, SnpModeData); in Udp6GetModeData()
331 EFI_IP6_PROTOCOL *Ip; in Udp6Groups() local
357 Ip = Instance->IpInfo->Ip.Ip6; in Udp6Groups()
364 Status = Ip->Groups (Ip, JoinFlag, MulticastAddress); in Udp6Groups()
840 EFI_IP6_PROTOCOL *Ip; in Udp6Poll() local
847 Ip = Instance->IpInfo->Ip.Ip6; in Udp6Poll()
852 return Ip->Poll (Ip); in Udp6Poll()
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Option.c88 &Packet->Ip.Ip6->SourceAddress, in Ip6IsOptionValid()
95 if (!IP6_IS_MULTICAST (&Packet->Ip.Ip6->DestinationAddress)) { in Ip6IsOptionValid()
101 &Packet->Ip.Ip6->SourceAddress, in Ip6IsOptionValid()
332 !IP6_IS_MULTICAST (&Packet->Ip.Ip6->DestinationAddress)) { in Ip6IsExtsValid()
337 &Packet->Ip.Ip6->SourceAddress, in Ip6IsExtsValid()
411 !IP6_IS_MULTICAST (&Packet->Ip.Ip6->DestinationAddress)) { in Ip6IsExtsValid()
416 &Packet->Ip.Ip6->SourceAddress, in Ip6IsExtsValid()
455 !IP6_IS_MULTICAST (&Packet->Ip.Ip6->DestinationAddress)) { in Ip6IsExtsValid()
461 &Packet->Ip.Ip6->SourceAddress, in Ip6IsExtsValid()
532 !IP6_IS_MULTICAST (&Packet->Ip.Ip6->DestinationAddress)) { in Ip6IsExtsValid()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Impl.c190 IP4_ADDR Ip; in Mtftp4OverrideValid() local
194 CopyMem (&Ip, &Override->ServerIp, sizeof (IP4_ADDR)); in Mtftp4OverrideValid()
195 if (!NetIp4IsUnicast (NTOHL (Ip), 0)) { in Mtftp4OverrideValid()
206 CopyMem (&Ip, &Config->StationIp, sizeof (IP4_ADDR)); in Mtftp4OverrideValid()
209 Ip = NTOHL (Ip); in Mtftp4OverrideValid()
211 if (!NetIp4IsUnicast (Gateway, Netmask) || !IP4_NET_EQUAL (Gateway, Ip, Netmask)) { in Mtftp4OverrideValid()
295 IP4_ADDR Ip; in Mtftp4ConfigUnicastPort() local
314 Ip = HTONL (Instance->ServerIp); in Mtftp4ConfigUnicastPort()
315 IP4_COPY_ADDRESS (&UdpConfig.RemoteAddress, &Ip); in Mtftp4ConfigUnicastPort()
633 IP4_ADDR Ip; in EfiMtftp4Configure() local
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Impl.c365 IP4_ADDR Ip; in EfiDhcp4GetModeData() local
387 Ip = HTONL (DhcpSb->ClientAddr); in EfiDhcp4GetModeData()
388 CopyMem (&Dhcp4ModeData->ClientAddress, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiDhcp4GetModeData()
390 Ip = HTONL (DhcpSb->Netmask); in EfiDhcp4GetModeData()
391 CopyMem (&Dhcp4ModeData->SubnetMask, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiDhcp4GetModeData()
393 Ip = HTONL (DhcpSb->ServerAddr); in EfiDhcp4GetModeData()
394 CopyMem (&Dhcp4ModeData->ServerAddress, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiDhcp4GetModeData()
399 Ip = HTONL (Para->Router); in EfiDhcp4GetModeData()
400 CopyMem (&Dhcp4ModeData->RouterAddress, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiDhcp4GetModeData()
640 IP4_ADDR Ip; in EfiDhcp4Configure() local
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellCommandLib/
DConsistMapping.c900 IPv4_DEVICE_PATH *Ip; in DevPathSerialIPv4() local
906 Ip = (IPv4_DEVICE_PATH *) DevicePathNode; in DevPathSerialIPv4()
911 (UINTN) Ip->LocalIpAddress.Addr[0], in DevPathSerialIPv4()
912 (UINTN) Ip->LocalIpAddress.Addr[1], in DevPathSerialIPv4()
913 (UINTN) Ip->LocalIpAddress.Addr[2], in DevPathSerialIPv4()
914 (UINTN) Ip->LocalIpAddress.Addr[3] in DevPathSerialIPv4()
917 AppendCSDNum (MappingItem, Ip->LocalPort); in DevPathSerialIPv4()
922 (UINTN) Ip->RemoteIpAddress.Addr[0], in DevPathSerialIPv4()
923 (UINTN) Ip->RemoteIpAddress.Addr[1], in DevPathSerialIPv4()
924 (UINTN) Ip->RemoteIpAddress.Addr[2], in DevPathSerialIPv4()
[all …]

1234