/reactos/base/services/tftpd/ |
H A D | tftpd.cpp | 575 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 D | GetExtendedTcpTable.c | 75 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 D | GetExtendedUdpTable.c | 75 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 D | GetOwnerModuleFromUdpEntry.c | 73 server.sin_port = htons(9876); in START_TEST() 89 UdpTableOwnerMod->table[i].dwLocalPort == htons(9876)) in START_TEST()
|
H A D | GetOwnerModuleFromTcpEntry.c | 73 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 D | send.c | 33 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 D | ports.c | 38 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 D | connect.c | 20 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 D | TcpIp_user.c | 76 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 D | nslookup.c | 128 ((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 D | test_etharp.c | 92 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 D | syslog.c | 138 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 D | tcpip.h | 152 #ifndef htons 153 #define htons(x) WH2N(x) macro
|
/reactos/drivers/network/tcpip/lwip/test/unit/tcp/ |
H A D | tcp_helper.c | 81 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 D | ServiceNetwork.c | 140 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 D | nonblocking.c | 59 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 D | close.c | 106 addrin.sin_port = htons(LISTEN_PORT); in Test_CloseWhileSelectSameSocket() 144 addrin.sin_port = htons(LISTEN_PORT); in Test_CloseWhileSelectDuplicatedSocket()
|
H A D | send.c | 90 addr.sin_port = htons(53); in test_send() 134 addr.sin_port = htons(53); in test_sendto()
|
H A D | helpers.c | 38 sa.sin_port = htons(80); in ConnectToReactOSWebsite()
|
/reactos/dll/win32/wininet/ |
H A D | utility.c | 172 ((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 D | pmap_getmaps.c | 77 address->sin_port = htons(PMAPPORT);
|
/reactos/modules/rosapps/applications/net/roshttpd/common/ |
H A D | socket.cpp | 32 SockAddrIn.sin_port = htons(0); in CSocket() 188 SockAddrIn.sin_port = htons(Port); in Open()
|
/reactos/modules/rosapps/applications/net/ncftp/sio/ |
H A D | SBind.c | 13 localAddr.sin_port = htons((unsigned short) port); in SBind()
|
/reactos/dll/win32/wsock32/ |
H A D | wsock32.spec | 9 9 stdcall htons(long) ws2_32.htons
|
/reactos/modules/rosapps/applications/net/dhcpd/src/ |
H A D | main.c | 41 my_addr.sin_port = htons(MYPORT); in main()
|