Searched refs:htons (Results 1 - 25 of 37) sorted by relevance

12

/device/linaro/bootloader/edk2/StdLib/LibC/Main/
H A DHtoNtoH.c20 #undef htons macro
47 htons( function
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByName/
H A DGetServByName.c55 PortNumber = htons ( pService->s_port );
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByPort/
H A DGetServByPort.c52 pService = getservbyport ( htons ( PortNumber ), NULL );
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
H A Dres_mkquery.c136 hp->id = htons(++_res.id);
162 hp->qdcount = htons(1);
182 hp->arcount = htons(1);
204 hp->ancount = htons(1);
H A Dns_addr.c152 hb[0] = htons(hb[0]); hb[1] = htons(hb[1]);
153 hb[2] = htons(hb[2]);
H A Dns_ntoa.c51 u_short port = htons(addr.x_port);
H A Dres_mkupdate.c135 hp->id = htons(++_res.id);
354 hp->qdcount = htons(counts[0]);
355 hp->ancount = htons(counts[1]);
356 hp->nscount = htons(counts[2]);
357 hp->arcount = htons(counts[3]);
H A Dgetservent.c258 serv.s_port = htons((u_short)atoi(p));
H A Dres_init.c208 _res.nsaddr.sin_port = htons(NAMESERVER_PORT);
328 htons(NAMESERVER_PORT);
/device/generic/goldfish/dhcp/common/
H A Dsocket.cpp105 sockaddr.sin_port = htons(port);
115 sockaddr.sll_protocol = htons(ETH_P_IP);
133 addr.sin_port = htons(destinationPort);
178 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + message.size());
188 udp.source = htons(sourcePort);
189 udp.dest = htons(destinationPort);
190 udp.len = htons(sizeof(udp) + message.size());
196 udpChecksum = addChecksum(htons(IPPROTO_UDP), udpChecksum);
215 dest.sll_protocol = htons(ETH_P_IP);
293 udp.dest == htons(expectedPor
[all...]
H A Dmessage.cpp248 dhcpData.flags = htons(FLAGS_BROADCAST);
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/RecvDgram/
H A DRecvDgram.c98 htons ( Address.sin_port ));
/device/linaro/bootloader/edk2/StdLib/Include/sys/
H A Dendian.h77 uint16_t htons(uint16_t) __attribute__((__const__));
124 #define htons(x) (x) macro
136 #define htons(x) bswap16((uint16_t)(x))
141 #define HTONS(x) (x) = htons((uint16_t)(x))
/device/generic/goldfish/libqemu/
H A Dtest_host_2.c67 addr.sin_port = htons(port);
H A Dtest_util.c60 addr.sin_port = htons(port);
H A Dtest_host_1.c69 addr.sin_port = htons(port);
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
H A DTcpStream.cpp37 addr.sin_port = htons(port);
/device/generic/goldfish/wifi/ipv6proxy/
H A Daddress.cpp84 addr->sll_protocol = htons(ETH_P_IPV6);
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/OobRx/
H A DOobRx.c71 SIN_PORT ( LocalPort ) = htons ( PortNumber );
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/
H A DTftpServer.c179 htons ( pTftpServer->RemoteAddress.v4.sin_port )));
201 htons ( pTftpServer->RemoteAddress.v6.sin6_port )));
767 htons ( pTftpServer->RemoteAddress.v4.sin_port )));
789 htons ( pTftpServer->RemoteAddress.v6.sin6_port )));
967 htons ( pTftpServer->RemoteAddress.v4.sin_port )));
988 htons ( pTftpServer->RemoteAddress.v6.sin6_port )));
1563 htons ( pTftpServer->RemoteAddress.v4.sin_port )));
1584 htons ( pTftpServer->RemoteAddress.v6.sin6_port )));
1613 htons ( pTftpServer->RemoteAddress.v4.sin_port )));
1634 htons ( pTftpServe
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/OobTx/
H A DOobTx.c113 SIN_PORT ( RemotePort ) = htons ( PortNumber );
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
H A Dctypeio.c169 new_ctype[i] = htons(new_ctype[i]);
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/WebServer/
H A DWebServer.c601 WebServerAddress.v4.sin_port = htons ( HttpPort );
606 WebServerAddress.v6.sin6_port = htons ( HttpPort );
/device/google/cuttlefish_common/common/libs/fs/
H A Dshared_fd.cpp288 addr.sin_port = htons(port);
307 addr.sin_port = htons(port);
/device/generic/goldfish/dhcp/client/
H A Ddhcpclient.cpp72 res = mSocket.open(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));

Completed in 153 milliseconds

12