Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/DataSink/
DDataSink.c343 ntohs ( pPortIpAddress4->sin_port ), in SocketPoll()
365 ntohs ( pPortIpAddress6->sin6_port ), in SocketPoll()
383 ntohs ( pPortIpAddress4->sin_port ))); in SocketPoll()
405 ntohs ( pPortIpAddress6->sin6_port ))); in SocketPoll()
417 ntohs ( pPortIpAddress4->sin_port ), in SocketPoll()
440 ntohs ( pPortIpAddress6->sin6_port ), in SocketPoll()
487 ntohs ( pRemoteAddress4->sin_port )); in SocketPoll()
507 ntohs ( pRemoteAddress6->sin6_port )); in SocketPoll()
525 ntohs ( pRemoteAddress4->sin_port ))); in SocketPoll()
547 ntohs ( pRemoteAddress6->sin6_port ))); in SocketPoll()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Main/
DHtoNtoH.c22 #undef ntohs
81 ntohs( in ntohs() function
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dendian.h79 uint16_t ntohs(uint16_t) __attribute__((__const__));
122 #define ntohs(x) (x) macro
134 #define ntohs(x) bswap16((uint16_t)(x))
139 #define NTOHS(x) (x) = ntohs((uint16_t)(x))
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/DataSource/
DDataSource.c389 ntohs ( pRemoteAddress4->sin_port )); in SocketConnect()
409 ntohs ( pRemoteAddress6->sin6_port )); in SocketConnect()
444 ntohs ( pRemoteAddress4->sin_port )); in SocketConnect()
464 ntohs ( pRemoteAddress6->sin6_port )); in SocketConnect()
728 ntohs ( ((struct sockaddr_in *)&RemoteHostAddress)->sin_port )); in Tcp4Close()
930 ntohs ( ((struct sockaddr_in *)&RemoteHostAddress)->sin_port )); in Tcp4Locate()
1237 …Tcp4ConfigData.AccessPoint.RemotePort = ntohs (((struct sockaddr_in *)&RemoteHostAddress)->sin_por… in Tcp4Open()
1296 ntohs ( ((struct sockaddr_in *)&RemoteHostAddress)->sin_port )); in Tcp4Open()
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dgetnetbydns.c148 ancount = ntohs(hp->ancount); /* #/records in the answer section */ in getnetanswer()
149 qdcount = ntohs(hp->qdcount); /* #/entries in the question section */ in getnetanswer()
Dres_query.c162 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_query()
166 ntohs(hp->ancount)); in res_query()
Dres_send.c158 ntohs(address.sin_port), in Aerror()
255 int qdcount = ntohs(((HEADER*)buf)->qdcount); in res_nameinquery()
297 int qdcount = ntohs(((HEADER*)buf1)->qdcount); in res_queriesmatch()
310 if (qdcount != ntohs(((HEADER*)buf2)->qdcount)) in res_queriesmatch()
Dres_update.c213 ancount = ntohs(hp->ancount); in res_update()
214 nscount = ntohs(hp->nscount); in res_update()
215 arcount = ntohs(hp->arcount); in res_update()
Dgetservent.c76 snprintf(buf, sizeof(buf), "%d/%s", ntohs(___getservbyport_yp),
Dgetaddrinfo.c1109 ancount = ntohs(hp->ancount); in getanswer()
1110 qdcount = ntohs(hp->qdcount); in getanswer()
1741 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
1746 ntohs(hp->ancount)); in res_queryN()
1751 ancount += ntohs(hp->ancount); in res_queryN()
Dgethostbydns.c231 ancount = ntohs(hp->ancount); in gethostanswer()
232 qdcount = ntohs(hp->qdcount); in gethostanswer()
Dgetnameinfo.c242 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
Dctypeio.c113 new_ctype[i] = ntohs(new_ctype[i]); in __loadctype()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgetnameinfo.c147 sprintf(numserv, "%d", ntohs(port));
Dsocketmodule.c994 ret = Py_BuildValue("Oi", addrobj, ntohs(a->sin_port)); in makesockaddr()
1037 ntohs(a->sin6_port), in makesockaddr()
1119 ntohs(a->sll_protocol), in makesockaddr()
3530 return PyInt_FromLong((long) ntohs(sp->s_port));
3713 x2 = (unsigned int)ntohs((unsigned short)x1);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_socket.py369 socket.htons: 16, socket.ntohs: 16}
384 socket.ntohs(k)
389 self.assertRaises(OverflowError, socket.ntohs, k)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dsocketmodule.c1052 ret = Py_BuildValue("Oi", addrobj, ntohs(a->sin_port)); in makesockaddr()
1095 ntohs(a->sin6_port), in makesockaddr()
1177 ntohs(a->sll_protocol), in makesockaddr()
3612 return PyInt_FromLong((long) ntohs(sp->s_port));
3795 x2 = (unsigned int)ntohs((unsigned short)x1);