/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/ |
D | Mtftp4Impl.c | 195 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Mtftp4OverrideValid() 202 Gateway = NTOHL (Gateway); in Mtftp4OverrideValid() 208 Netmask = NTOHL (Netmask); in Mtftp4OverrideValid() 209 Ip = NTOHL (Ip); in Mtftp4OverrideValid() 445 Instance->ServerIp = NTOHL (Instance->ServerIp); in Mtftp4Start() 451 Instance->Gateway = NTOHL (Instance->Gateway); in Mtftp4Start() 461 Instance->ServerIp = NTOHL (Instance->ServerIp); in Mtftp4Start() 462 Instance->Gateway = NTOHL (Instance->Gateway); in Mtftp4Start() 665 Ip = NTOHL (Ip); in EfiMtftp4Configure() 666 Netmask = NTOHL (Netmask); in EfiMtftp4Configure() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/ |
D | IScsiProto.c | 679 LoginRsp->InitiatorTaskTag = NTOHL (LoginRsp->InitiatorTaskTag); in IScsiProcessLoginRsp() 699 LoginRsp->StatSN = NTOHL (LoginRsp->StatSN); in IScsiProcessLoginRsp() 700 LoginRsp->ExpCmdSN = NTOHL (LoginRsp->ExpCmdSN); in IScsiProcessLoginRsp() 701 LoginRsp->MaxCmdSN = NTOHL (LoginRsp->MaxCmdSN); in IScsiProcessLoginRsp() 1883 ScsiCmd->ExpDataXferLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu() 1888 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu() 1893 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu() 1903 BiExpReadDataLenAHS->ExpReadDataLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu() 1910 ScsiCmd->InitiatorTaskTag = NTOHL (Tcb->InitiatorTaskTag); in IScsiNewScsiCmdPdu() 1911 ScsiCmd->CmdSN = NTOHL (Tcb->CmdSN); in IScsiNewScsiCmdPdu() [all …]
|
D | IScsiConfig.c | 732 …!NetIp4IsUnicast (NTOHL (HostIp.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.Subn… in IScsiFormCallback() 759 …!NetIp4IsUnicast (NTOHL (Gateway.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.Sub… in IScsiFormCallback() 875 …if (IP4_IS_UNSPECIFIED (NTOHL (HostIp.Addr[0])) || IP4_IS_LOCAL_BROADCAST (NTOHL (HostIp.Addr[0]))… in IScsiFormCallback()
|
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/ |
D | IScsiProto.c | 920 LoginRsp->InitiatorTaskTag = NTOHL (LoginRsp->InitiatorTaskTag); in IScsiProcessLoginRsp() 940 LoginRsp->StatSN = NTOHL (LoginRsp->StatSN); in IScsiProcessLoginRsp() 941 LoginRsp->ExpCmdSN = NTOHL (LoginRsp->ExpCmdSN); in IScsiProcessLoginRsp() 942 LoginRsp->MaxCmdSN = NTOHL (LoginRsp->MaxCmdSN); in IScsiProcessLoginRsp() 2212 ScsiCmd->ExpDataXferLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu() 2217 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu() 2222 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu() 2232 BiExpReadDataLenAHS->ExpReadDataLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu() 2239 ScsiCmd->InitiatorTaskTag = NTOHL (Tcb->InitiatorTaskTag); in IScsiNewScsiCmdPdu() 2240 ScsiCmd->CmdSN = NTOHL (Tcb->CmdSN); in IScsiNewScsiCmdPdu() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Icmp.c | 115 IpIf = Ip4FindInterface (IpSb, NTOHL (Icmp->IpHead.Src)); in Ip4ProcessIcmpRedirect() 116 Gateway = NTOHL (Icmp->Fourth); in Ip4ProcessIcmpRedirect() 138 Dst = NTOHL (Icmp->IpHead.Dst); in Ip4ProcessIcmpRedirect() 139 Src = NTOHL (Icmp->IpHead.Src); in Ip4ProcessIcmpRedirect() 146 if ((CacheEntry != NULL) && (NTOHL (Head->Src) == CacheEntry->NextHop)) { in Ip4ProcessIcmpRedirect()
|
D | Ip4Impl.c | 637 Ip = NTOHL (Ip); in Ip4ConfigProtocol() 638 Netmask = NTOHL (Netmask); in Ip4ConfigProtocol() 948 IpAddress = NTOHL (IpAddress); in EfiIp4Configure() 949 SubnetMask = NTOHL (SubnetMask); in EfiIp4Configure() 1072 if (EFI_ERROR (Ip4JoinGroup (IpInstance, NTOHL (Group)))) { in Ip4Groups() 1096 if (EFI_ERROR (Ip4LeaveGroup (IpInstance, NTOHL (Group)))) { in Ip4Groups() 1170 if (!IP4_IS_MULTICAST (NTOHL (McastIp))) { in EfiIp4Groups() 1289 Dest = NTOHL (Dest); in EfiIp4Routes() 1290 Netmask = NTOHL (Netmask); in EfiIp4Routes() 1291 Nexthop = NTOHL (Nexthop); in EfiIp4Routes() [all …]
|
D | Ip4Config2Nv.c | 618 …if (EFI_ERROR (Status) || !NetIp4IsUnicast (NTOHL (StationAddress.Addr[0]), NTOHL (SubnetMask.Addr… in Ip4Config2ConvertIfrNvDataToConfigNvData() 624 …ROR (Status) || ((Gateway.Addr[0] != 0) && !NetIp4IsUnicast (NTOHL (Gateway.Addr[0]), NTOHL (Subne… in Ip4Config2ConvertIfrNvDataToConfigNvData() 633 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Ip4Config2ConvertIfrNvDataToConfigNvData() 1149 … (EFI_ERROR (Status) || IP4_IS_UNSPECIFIED (NTOHL (StationAddress.Addr[0])) || IP4_IS_LOCAL_BROADC… in Ip4FormCallback() 1165 if (EFI_ERROR (Status) || IP4_IS_LOCAL_BROADCAST(NTOHL(Gateway.Addr[0]))) { in Ip4FormCallback() 1176 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Ip4FormCallback()
|
D | Ip4Common.c | 265 Head->Src = NTOHL (Head->Src); in Ip4NtohHead() 266 Head->Dst = NTOHL (Head->Dst); in Ip4NtohHead()
|
D | Ip4Igmp.c | 460 Address = NTOHL (Igmp.Group); in Ip4IgmpHandle() 488 Address = NTOHL (Igmp.Group); in Ip4IgmpHandle()
|
D | Ip4Config2Impl.c | 740 if (IP4_IS_UNSPECIFIED (NTOHL (DnsAddress)) || IP4_IS_LOCAL_BROADCAST (NTOHL (DnsAddress))) { in Ip4Config2SetDnsServerWorker() 1361 !NetIp4IsUnicast (NTOHL (Gateway), IpSb->DefaultInterface->SubnetMask)) { in Ip4Config2SetGateway() 1396 NTOHL (Gateway) in Ip4Config2SetGateway() 1408 NTOHL (Gateway) in Ip4Config2SetGateway()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Main.c | 173 if (IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Tcp4Configure() 186 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
|
D | Tcp4Output.c | 332 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment() 333 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment() 1086 Nhead->Ack = HTONL (NTOHL (Head->Seq) + Len); in TcpSendReset()
|
D | Tcp4Option.c | 50 return NTOHL (Value); in TcpGetUint32()
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
D | IkeCommon.c | 133 Header->MessageId = NTOHL (Header->MessageId); in IkeHdrNetToHost() 134 Header->Length = NTOHL (Header->Length); in IkeHdrNetToHost()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/ |
D | Udp4Main.c | 168 StationAddress = NTOHL (StationAddress); in Udp4Configure() 169 SubnetMask = NTOHL (SubnetMask); in Udp4Configure() 170 RemoteAddress = NTOHL (RemoteAddress); in Udp4Configure() 344 if (!IP4_IS_MULTICAST (NTOHL (McastIp))) { in Udp4Groups()
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpMain.c | 150 if (IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Tcp4Configure() 162 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
|
D | TcpOutput.c | 326 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment() 327 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment() 1137 Nhead->Ack = HTONL (NTOHL (Head->Seq) + Len); in TcpSendReset()
|
D | TcpOption.c | 51 return NTOHL (Value); in TcpGetUint32()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | Host.h | 22 #define NTOHL _UNIX_EFI_NAME_MANGLE_NTOHL_ macro 80 #undef NTOHL
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/ |
D | PxeBcImpl.c | 179 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in IcmpErrorListenHandlerDpc() 180 …IP4_NET_EQUAL (NTOHL(Mode->StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (M… in IcmpErrorListenHandlerDpc() 181 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in IcmpErrorListenHandlerDpc() 1169 (IP4_IS_UNSPECIFIED (NTOHL (ServerIp->Addr[0])) || in EfiPxeBcMtftp() 1170 IP4_IS_LOCAL_BROADCAST (NTOHL (ServerIp->Addr[0])))) || in EfiPxeBcMtftp() 1385 … ((GatewayIp != NULL) && (IP4_IS_UNSPECIFIED (NTOHL (GatewayIp->Addr[0])) || IP4_IS_LOCAL_BROADCAS… in EfiPxeBcUdpWrite() 2317 if (NewSubnetMask != NULL && !IP4_IS_VALID_NETMASK (NTOHL (NewSubnetMask->Addr[0]))) { in EfiPxeBcSetStationIP() 2322 if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP() 2323 IP4_IS_LOCAL_BROADCAST(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP() 2324 …(NewSubnetMask != NULL && !NetIp4IsUnicast (NTOHL (NewStationIp->Addr[0]), NTOHL (NewSubnetMask->A… in EfiPxeBcSetStationIP()
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | endian.h | 126 #define NTOHL(x) (void) (x) macro 138 #define NTOHL(x) (x) = ntohl((uint32_t)(x))
|
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/ |
D | PxeBcImpl.c | 873 …if (IP4_IS_UNSPECIFIED (NTOHL (ServerIp->Addr[0])) || IP4_IS_LOCAL_BROADCAST (NTOHL (ServerIp->Add… in EfiPxeBcMtftp() 1088 …if (!Mode->UsingIpv6 && GatewayIp != NULL && !NetIp4IsUnicast (NTOHL (GatewayIp->Addr[0]), EFI_NTO… in EfiPxeBcUdpWrite() 2012 !IP4_IS_VALID_NETMASK (NTOHL (NewSubnetMask->Addr[0]))) { in EfiPxeBcSetStationIP() 2017 if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP() 2018 IP4_IS_LOCAL_BROADCAST(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP() 2019 …(NewSubnetMask != NULL && !NetIp4IsUnicast (NTOHL (NewStationIp->Addr[0]), NTOHL (NewSubnetMask->A… in EfiPxeBcSetStationIP()
|
D | PxeBcSupport.c | 261 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in PxeBcIcmpErrorDpcHandle() 262 …IP4_NET_EQUAL (NTOHL(Mode->StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (M… in PxeBcIcmpErrorDpcHandle() 263 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in PxeBcIcmpErrorDpcHandle()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/ |
D | Dhcp4Impl.c | 663 if (IP4_IS_LOCAL_BROADCAST(NTOHL (Ip))) { in EfiDhcp4Configure() 1516 (NTOHL (Token->Packet->Dhcp4.Header.Xid) == Instance->Service->Xid) || in EfiDhcp4TransmitReceive() 1581 EndPoint.RemoteAddr.Addr[0] = NTOHL (Ip); in EfiDhcp4TransmitReceive() 1595 Gateway.Addr[0] = NTOHL (Gateway.Addr[0]); in EfiDhcp4TransmitReceive()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/ |
D | NetLib.h | 218 #define NTOHL(x) SwapBytes32 (x) macro 220 #define HTONL(x) NTOHL(x) 245 #define EFI_NTOHL(EfiIp) (NTOHL (EFI_IP4 ((EfiIp))))
|