Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 25 of 78) sorted by relevance

1234

/reactos/base/services/tftpd/
H A Dtftpd.cpp575 else if (htons(req.mesin.opcode) != 1 && htons(req.mesin.opcode) != 2) in processRequest()
603 req.serverError.opcode = htons(5); in processRequest()
656 req.serverError.opcode = htons(5); in processRequest()
674 req.serverError.opcode = htons(5); in processRequest()
688 req.serverError.opcode = htons(5); in processRequest()
920 req.mesout.opcode = htons(6); in processRequest()
1019 req.acout.opcode = htons(4); in processRequest()
1020 req.acout.block = htons(0); in processRequest()
1075 req.pkt[0]->opcode = htons(3); in processRequest()
1076 req.pkt[0]->block = htons(1); in processRequest()
[all …]
/reactos/modules/rostests/apitests/iphlpapi/
H A DGetExtendedTcpTable.c75 server.sin_port = htons(9876); in START_TEST()
98 TcpTable->table[i].dwLocalPort == htons(9876) && in START_TEST()
121 TcpTable->table[i].dwLocalPort == htons(9876) && in START_TEST()
146 TcpTable->table[i].dwLocalPort == htons(9876) && in START_TEST()
171 TcpTableOwner->table[i].dwLocalPort == htons(9876) && in START_TEST()
202 TcpTableOwner->table[i].dwLocalPort == htons(9876) && in START_TEST()
227 TcpTableOwner->table[i].dwLocalPort == htons(9876) && in START_TEST()
260 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in START_TEST()
294 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in START_TEST()
319 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in START_TEST()
H A DGetExtendedUdpTable.c75 server.sin_port = htons(9876); in START_TEST()
91 UdpTable->table[i].dwLocalPort == htons(9876)) in START_TEST()
114 UdpTableOwner->table[i].dwLocalPort == htons(9876)) in START_TEST()
145 UdpTableOwnerMod->table[i].dwLocalPort == htons(9876)) in START_TEST()
H A DGetOwnerModuleFromUdpEntry.c73 server.sin_port = htons(9876); in START_TEST()
89 UdpTableOwnerMod->table[i].dwLocalPort == htons(9876)) in START_TEST()
H A DGetOwnerModuleFromTcpEntry.c73 server.sin_port = htons(9876); in START_TEST()
96 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in START_TEST()
/reactos/modules/rostests/apitests/afd/
H A Dsend.c33 addr.sin_port = htons(0); in TestSend()
41 addr.sin_port = htons(53); in TestSend()
72 addr.sin_port = htons(0); in TestSendTo()
80 addr.sin_port = htons(53); in TestSendTo()
/reactos/drivers/network/tcpip/ip/network/
H A Dports.c38 Port = htons(Port); in DeallocatePort()
51 Port = htons(Port); in AllocatePort()
79 return htons(AllocatedPort); in AllocateAnyPort()
105 return htons(AllocatedPort); in AllocatePortFromRange()
/reactos/modules/rostests/kmtests/tcpip/
H A Dconnect.c20 htons(USHORT x) in htons() function
25 #define htons(x) (x) macro
82 IpAddress->Address[0].Address[0].sin_port = htons(TEST_CONNECT_CLIENT_PORT); in TestTcpConnect()
189 ConnectAddress.Address[0].Address[0].sin_port = htons(TEST_CONNECT_SERVER_PORT); in TestTcpConnect()
236 ok_eq_hex(ReturnAddress.Address[0].Address[0].sin_port, htons(TEST_CONNECT_SERVER_PORT)); in TestTcpConnect()
H A DTcpIp_user.c76 ListenAddress.sin_port = htons(TEST_CONNECT_SERVER_PORT); in AcceptProc()
92 ok_eq_hex(AcceptAddress.sin_port, htons(TEST_CONNECT_CLIENT_PORT)); in AcceptProc()
/reactos/base/applications/network/nslookup/
H A Dnslookup.c128 ((PSHORT)&Buffer[i])[0] = htons( RequestID ); in PerformInternalLookup()
142 ((PSHORT)&Buffer[i])[0] = htons( 1 ); in PerformInternalLookup()
179 ((PSHORT)&Buffer[i])[0] = htons( Type ); in PerformInternalLookup()
183 ((PSHORT)&Buffer[i])[0] = htons( CLASS_IN ); in PerformInternalLookup()
299 ((PSHORT)&Buffer[i])[0] = htons( RequestID ); in PerformLookup()
313 ((PSHORT)&Buffer[i])[0] = htons( 1 ); in PerformLookup()
350 ((PSHORT)&Buffer[i])[0] = htons( Type ); in PerformLookup()
354 ((PSHORT)&Buffer[i])[0] = htons( ClassNametoClassID( State.Class ) ); in PerformLookup()
/reactos/drivers/network/tcpip/lwip/test/unit/etharp/
H A Dtest_etharp.c92 ethhdr->type = htons(ETHTYPE_ARP); in create_arp_response()
94 etharphdr->hwtype = htons(LWIP_IANA_HWTYPE_ETHERNET); in create_arp_response()
95 etharphdr->proto = htons(ETHTYPE_IP); in create_arp_response()
98 etharphdr->opcode = htons(ARP_REPLY); in create_arp_response()
/reactos/base/services/telnetd/
H A Dsyslog.c138 sa_logger.sin_port = htons( (unsigned short) strtoul( p, NULL, 0 ) ); in init_logger_addr()
140 sa_logger.sin_port = htons( SYSLOG_PORT ); in init_logger_addr()
145 sa_logger.sin_port = htons( SYSLOG_PORT ); in init_logger_addr()
/reactos/drivers/network/tcpip/include/
H A Dtcpip.h152 #ifndef htons
153 #define htons(x) WH2N(x) macro
/reactos/drivers/network/tcpip/lwip/test/unit/tcp/
H A Dtcp_helper.c81 IPH_LEN_SET(iphdr, htons(p->tot_len)); in tcp_create_segment_wnd()
88 tcphdr->src = htons(src_port); in tcp_create_segment_wnd()
89 tcphdr->dest = htons(dst_port); in tcp_create_segment_wnd()
94 tcphdr->wnd = htons(wnd); in tcp_create_segment_wnd()
/reactos/modules/rostests/apitests/advapi32/
H A DServiceNetwork.c140 server.sin_port = htons(9876); in test_tcp()
159 TcpTableOwnerMod->table[i].dwLocalPort == htons(9876) && in test_tcp()
212 server.sin_port = htons(9876); in test_udp()
227 UdpTableOwnerMod->table[i].dwLocalPort == htons(9876)) in test_udp()
/reactos/modules/rostests/apitests/ws2_32/
H A Dnonblocking.c59 server_addr_in.sin_port = htons(SVR_PORT); in START_TEST()
80 server_addr_in.sin_port = htons(SVR_PORT); in START_TEST()
H A Dclose.c106 addrin.sin_port = htons(LISTEN_PORT); in Test_CloseWhileSelectSameSocket()
144 addrin.sin_port = htons(LISTEN_PORT); in Test_CloseWhileSelectDuplicatedSocket()
H A Dsend.c90 addr.sin_port = htons(53); in test_send()
134 addr.sin_port = htons(53); in test_sendto()
H A Dhelpers.c38 sa.sin_port = htons(80); in ConnectToReactOSWebsite()
/reactos/dll/win32/wininet/
H A Dutility.c172 ((struct sockaddr_in *)psa)->sin_port = htons(port); in GetAddress()
176 ((struct sockaddr_in6 *)psa)->sin6_port = htons(port); in GetAddress()
/reactos/dll/3rdparty/libtirpc/src/
H A Dpmap_getmaps.c77 address->sin_port = htons(PMAPPORT);
/reactos/modules/rosapps/applications/net/roshttpd/common/
H A Dsocket.cpp32 SockAddrIn.sin_port = htons(0); in CSocket()
188 SockAddrIn.sin_port = htons(Port); in Open()
/reactos/modules/rosapps/applications/net/ncftp/sio/
H A DSBind.c13 localAddr.sin_port = htons((unsigned short) port); in SBind()
/reactos/dll/win32/wsock32/
H A Dwsock32.spec9 9 stdcall htons(long) ws2_32.htons
/reactos/modules/rosapps/applications/net/dhcpd/src/
H A Dmain.c41 my_addr.sin_port = htons(MYPORT); in main()

1234