Home
last modified time | relevance | path

Searched refs:HTONS (Results 1 – 25 of 58) sorted by relevance

123

/device/linaro/bootloader/edk2/NetworkPkg/HttpBootDxe/
DHttpBootDhcp6.c44 OptList[Index]->OpCode = HTONS (DHCP6_OPT_ORO); in HttpBootBuildDhcp6Options()
45 OptList[Index]->OpLen = HTONS (8); in HttpBootBuildDhcp6Options()
47 OptEnt.Oro->OpCode[0] = HTONS(DHCP6_OPT_BOOT_FILE_URL); in HttpBootBuildDhcp6Options()
48 OptEnt.Oro->OpCode[1] = HTONS(DHCP6_OPT_BOOT_FILE_PARAM); in HttpBootBuildDhcp6Options()
49 OptEnt.Oro->OpCode[2] = HTONS(DHCP6_OPT_DNS_SERVERS); in HttpBootBuildDhcp6Options()
50 OptEnt.Oro->OpCode[3] = HTONS(DHCP6_OPT_VENDOR_CLASS); in HttpBootBuildDhcp6Options()
57 OptList[Index]->OpCode = HTONS (DHCP6_OPT_UNDI); in HttpBootBuildDhcp6Options()
58 OptList[Index]->OpLen = HTONS ((UINT16)3); in HttpBootBuildDhcp6Options()
77 OptList[Index]->OpCode = HTONS (DHCP6_OPT_ARCH); in HttpBootBuildDhcp6Options()
78 OptList[Index]->OpLen = HTONS ((UINT16) sizeof (HTTP_BOOT_DHCP6_OPTION_ARCH)); in HttpBootBuildDhcp6Options()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/
DDhcp6Utility.c98 WriteUnaligned16 ((UINT16 *) (Duid->Duid), HTONS (Dhcp6DuidTypeUuid)); in Dhcp6GenerateClientId()
147 …WriteUnaligned16 ((UINT16 *) ((UINT8 *) Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid)), HTONS (Dhcp6Duid… in Dhcp6GenerateClientId()
148 …WriteUnaligned16 ((UINT16 *) ((UINT8 *) Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid) + 2), HTONS (NET_I… in Dhcp6GenerateClientId()
694 WriteUnaligned16 ((UINT16 *) Buf, HTONS (Dhcp6OptIaAddr)); in Dhcp6AppendIaAddrOption()
697 WriteUnaligned16 ((UINT16 *) Buf, HTONS (sizeof (EFI_DHCP6_IA_ADDRESS))); in Dhcp6AppendIaAddrOption()
769 WriteUnaligned16 ((UINT16 *) Buf, HTONS (Ia->Descriptor.Type)); in Dhcp6AppendIaOption()
805 *Len = HTONS ((UINT16) (Buf - (UINT8 *) Len - 2)); in Dhcp6AppendIaOption()
842 WriteUnaligned16 ((UINT16 *) Buf, HTONS (Dhcp6OptElapsedTime)); in Dhcp6AppendETOption()
848 WriteUnaligned16 ((UINT16 *) Buf, HTONS(2)); in Dhcp6AppendETOption()
855 WriteUnaligned16 ((UINT16 *) Buf, HTONS(0)); in Dhcp6AppendETOption()
[all …]
DDhcp6Io.c967 Length = HTONS (ClientId->Length); in Dhcp6SendSolicitMsg()
970 HTONS (Dhcp6OptClientId), in Dhcp6SendSolicitMsg()
1149 Length = HTONS (ClientId->Length); in Dhcp6SendRequestMsg()
1152 HTONS (Dhcp6OptClientId), in Dhcp6SendRequestMsg()
1165 HTONS (Dhcp6OptServerId), in Dhcp6SendRequestMsg()
1307 Length = HTONS (ClientId->Length); in Dhcp6SendDeclineMsg()
1310 HTONS (Dhcp6OptClientId), in Dhcp6SendDeclineMsg()
1323 HTONS (Dhcp6OptServerId), in Dhcp6SendDeclineMsg()
1441 Length = HTONS (ClientId->Length); in Dhcp6SendReleaseMsg()
1444 HTONS (Dhcp6OptClientId), in Dhcp6SendReleaseMsg()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Main.c586 Udp4Header->SrcPort = HTONS (ConfigData->StationPort); in Udp4Transmit()
587 Udp4Header->DstPort = HTONS (ConfigData->RemotePort); in Udp4Transmit()
588 Udp4Header->Length = HTONS ((UINT16) Packet->TotalSize); in Udp4Transmit()
604 Udp4Header->SrcPort = HTONS (UdpSessionData->SourcePort); in Udp4Transmit()
608 Udp4Header->DstPort = HTONS (UdpSessionData->DestinationPort); in Udp4Transmit()
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcDhcp6.c95 OptList[Index]->OpCode = HTONS (DHCP6_OPT_ORO); in PxeBcBuildDhcp6Options()
96 OptList[Index]->OpLen = HTONS (6); in PxeBcBuildDhcp6Options()
98 OptEnt.Oro->OpCode[0] = HTONS(DHCP6_OPT_BOOT_FILE_URL); in PxeBcBuildDhcp6Options()
99 OptEnt.Oro->OpCode[1] = HTONS(DHCP6_OPT_BOOT_FILE_PARAM); in PxeBcBuildDhcp6Options()
100 OptEnt.Oro->OpCode[2] = HTONS(DHCP6_OPT_DNS_SERVERS); in PxeBcBuildDhcp6Options()
107 OptList[Index]->OpCode = HTONS (DHCP6_OPT_UNDI); in PxeBcBuildDhcp6Options()
108 OptList[Index]->OpLen = HTONS ((UINT16)3); in PxeBcBuildDhcp6Options()
127 OptList[Index]->OpCode = HTONS (DHCP6_OPT_ARCH); in PxeBcBuildDhcp6Options()
128 OptList[Index]->OpLen = HTONS ((UINT16) sizeof (PXEBC_DHCP6_OPTION_ARCH)); in PxeBcBuildDhcp6Options()
130 Value = HTONS (EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE); in PxeBcBuildDhcp6Options()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Output.c76 PacketHead->TotalLen = HTONS ((UINT16) Packet->TotalSize); in Ip4PrependHead()
77 PacketHead->Id = HTONS (Head->Id); in Ip4PrependHead()
78 PacketHead->Fragment = HTONS (Head->Fragment); in Ip4PrependHead()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Wrq.c57 Packet->Data.OpCode = HTONS (EFI_MTFTP4_OPCODE_DATA); in Mtftp4WrqSendBlock()
58 Packet->Data.Block = HTONS (BlockNum); in Mtftp4WrqSendBlock()
315 Bogus.Ack.OpCode = HTONS (EFI_MTFTP4_OPCODE_ACK); in Mtftp4WrqHandleOack()
DMtftp4Support.c322 Packet->OpCode = HTONS (Instance->Operation); in Mtftp4SendRequest()
387 TftpError->OpCode = HTONS (EFI_MTFTP4_OPCODE_ERROR); in Mtftp4SendError()
388 TftpError->Error.ErrorCode = HTONS (ErrCode); in Mtftp4SendError()
DMtftp4Rrq.c115 Ack->Ack.OpCode = HTONS (EFI_MTFTP4_OPCODE_ACK); in Mtftp4RrqSendAck()
116 Ack->Ack.Block[0] = HTONS (BlkNo); in Mtftp4RrqSendAck()
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/
DUdp6Main.c533 Udp6Header->SrcPort = HTONS (ConfigData->StationPort); in Udp6Transmit()
534 Udp6Header->DstPort = HTONS (ConfigData->RemotePort); in Udp6Transmit()
535 Udp6Header->Length = HTONS ((UINT16) Packet->TotalSize); in Udp6Transmit()
551 Udp6Header->DstPort = HTONS (UdpSessionData->DestinationPort); in Udp6Transmit()
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/Ikev2/
DPayload.c1721 Transform->TransformId = HTONS (TransformData->TransformId); in Ikev2EncodeSa()
1730 SaAttribute->AttrType = HTONS (IKEV2_ATTRIBUTE_TYPE_KEYLEN | SA_ATTR_FORMAT_BIT); in Ikev2EncodeSa()
1731 SaAttribute->Attr.AttrValue = HTONS (TransformData->Attribute.Attr.AttrValue); in Ikev2EncodeSa()
1740 SaAttribute->AttrType = HTONS (IKEV2_ATTRIBUTE_TYPE_KEYLEN | SA_ATTR_FORMAT_BIT); in Ikev2EncodeSa()
1741 SaAttribute->Attr.AttrValue = HTONS (TransformData->Attribute.Attr.AttrValue); in Ikev2EncodeSa()
1749 Transform->Header.PayloadLength = HTONS ((UINT16)TransformSize); in Ikev2EncodeSa()
1764 Proposal->Header.PayloadLength = HTONS ((UINT16)ProposalSize); in Ikev2EncodeSa()
2072 NotifyPayload->MessageType = HTONS (NotifyPayload->MessageType); in Ikev2EncodePayload()
2077 DeletePayload->NumSpis = HTONS (DeletePayload->NumSpis); in Ikev2EncodePayload()
2082 KeyPayload->DhGroup = HTONS (KeyPayload->DhGroup); in Ikev2EncodePayload()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/
DMtftp6Wrq.c61 Packet->Data.OpCode = HTONS (EFI_MTFTP6_OPCODE_DATA); in Mtftp6WrqSendBlock()
62 Packet->Data.Block = HTONS (BlockNum); in Mtftp6WrqSendBlock()
360 Dummy.Ack.OpCode = HTONS (EFI_MTFTP6_OPCODE_ACK); in Mtftp6WrqHandleOack()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.h25 #define HTONS _UNIX_EFI_NAME_MANGLE_HTOHS_ macro
83 #undef HTONS
/device/linaro/bootloader/edk2/NetworkPkg/TlsDxe/
DTlsProtocol.c110 *(CipherId +Index) = HTONS (*(((UINT16 *) Data) + Index)); in TlsSetSessionData()
253 *((UINT16 *) Data) = HTONS (TlsGetVersion (Instance->TlsConn)); in TlsGetSessionData()
275 *((UINT16 *) Data) = HTONS (*((UINT16 *) Data)); in TlsGetSessionData()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/
DMnpVlan.c218 *Tpid = HTONS (ETHER_TYPE_VLAN); in MnpInsertVlanTag()
224 *EtherType = HTONS (TxData->ProtocolType); in MnpInsertVlanTag()
230 VlanTci->Uint16 = HTONS (VlanTci->Uint16); in MnpInsertVlanTag()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dendian.h129 #define HTONS(x) (void) (x) macro
141 #define HTONS(x) (x) = htons((uint16_t)(x))
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecImpl.c1102 …*Checksum = (UINT16) ~(NetAddChecksum (*Checksum, HTONS((UINT16)(NTOHS (((IP4_HEAD *)IpPayload)->T… in IpSecTunnelInboundPacket()
1167HTONS ((UINT16)((NTOHS (((EFI_IP6_HEADER *)(IpPayload))->PayloadLength)) - OptionLen)) in IpSecTunnelInboundPacket()
1345 *Checksum = (UINT16) ~(NetAddChecksum ((UINT16)*Checksum, HTONS ((UINT16) Packet->TotalSize))); in IpSecTunnelOutboundPacket()
1629 …((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + PlainPa… in IpSecEspInboundPacket()
1632 … ((EFI_IP6_HEADER *) IpHead)->PayloadLength = HTONS ((UINT16)(IpSecHeadSize + PlainPayloadSize)); in IpSecEspInboundPacket()
1858 ((IP4_HEAD *)InnerHead)->TotalLen = HTONS ((UINT16) PlainPayloadSize); in IpSecEspOutboundPacket()
1872 …((EFI_IP6_HEADER *)InnerHead)->PayloadLength = HTONS ((UINT16) (PlainPayloadSize - sizeof (EFI_IP6… in IpSecEspOutboundPacket()
2005 …((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + EspSize… in IpSecEspOutboundPacket()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpDispatcher.c612 Tcb->LocalEnd.Port = HTONS (CfgData->Tcp4CfgData.AccessPoint.StationPort); in TcpConfigurePcb()
616 Tcb->RemoteEnd.Port = HTONS (CfgData->Tcp4CfgData.AccessPoint.RemotePort); in TcpConfigurePcb()
624 Tcb->LocalEnd.Port = HTONS (CfgData->Tcp6CfgData.AccessPoint.StationPort); in TcpConfigurePcb()
627 Tcb->RemoteEnd.Port = HTONS (CfgData->Tcp6CfgData.AccessPoint.RemotePort); in TcpConfigurePcb()
DTcpMisc.c325 LocalPort = HTONS (Port); in TcpFindTcbByPeer()
672 HTONS ((UINT16) Nbuf->TotalSize) in TcpChecksum()
960 Nhead->Wnd = HTONS (0xFFFF); in TcpResetConnection()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiDhcp6.c437 Oro->OpCode = HTONS (DHCP6_OPT_ORO); in IScsiDoDhcp6()
438 Oro->OpLen = HTONS (2 * 3); in IScsiDoDhcp6()
/device/linaro/bootloader/edk2/NetworkPkg/DnsDxe/
DDnsImpl.c1807 DnsHeader->Identification = HTONS (DnsHeader->Identification); in ConstructDNSQuery()
1808 DnsHeader->Flags.Uint16 = HTONS (DnsHeader->Flags.Uint16); in ConstructDNSQuery()
1809 DnsHeader->QuestionsNum = HTONS (DnsHeader->QuestionsNum); in ConstructDNSQuery()
1810 DnsHeader->AnswersNum = HTONS (DnsHeader->AnswersNum); in ConstructDNSQuery()
1811 DnsHeader->AuthorityNum = HTONS (DnsHeader->AuthorityNum); in ConstructDNSQuery()
1812 DnsHeader->AditionalNum = HTONS (DnsHeader->AditionalNum); in ConstructDNSQuery()
1829 DnsQuery->Type = HTONS (Type); in ConstructDNSQuery()
1830 DnsQuery->Class = HTONS (Class); in ConstructDNSQuery()
DDnsDhcp.c481 Token.Packet->Dhcp4.Header.Reserved = HTONS ((UINT16)0x8000); in GetDns4ServerFromDhcp4()
679 Oro->OpCode = HTONS (DHCP6_TAG_DNS_REQUEST); in GetDns6ServerFromDhcp6()
680 Oro->OpLen = HTONS (2); in GetDns6ServerFromDhcp6()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Misc.c258 LocalPort = HTONS (Port); in TcpFindTcbByPeer()
566 HTONS ((UINT16) Nbuf->TotalSize) in TcpChecksum()
661 Nhead->Wnd = HTONS (0xFFFF); in TcpResetConnection()
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Icmp.c178 ReplyHead.PayloadLength = HTONS ((UINT16) (Packet->TotalSize)); in Ip6IcmpReplyEcho()
639 Head.PayloadLength = HTONS (PayloadLen); in Ip6SendIcmpError()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/ArpDxe/
DArpImpl.c1129 *(UINT16 *)TmpPtr = HTONS (ARP_ETHER_PROTO_TYPE); in ArpSendFrame()
1136 ArpHead->HwType = HTONS ((UINT16)SnpMode->IfType); in ArpSendFrame()
1137 ArpHead->ProtoType = HTONS (ConfigData->SwAddressType); in ArpSendFrame()
1140 ArpHead->OpCode = HTONS (ArpOpCode); in ArpSendFrame()

123