Searched refs:htons (Results 26 - 50 of 113) sorted by relevance

12345

/haiku/src/tests/system/network/
H A Dtcp_client.c51 their_addr.sin_port = htons(port);
H A Dudp_server.c54 localAddr.sin_port = htons(atoi(argv[1]));
H A Dipv46_server.cpp62 ((sockaddr_in *) &localAddress)->sin_port = htons(TEST_PORT);
H A Dudp_echo.c154 serverAddr.sin_port = htons(atoi(argv[3]));
172 serverAddr.sin_port = htons(atoi(argv[2]));
199 localAddr.sin_port = htons(bindPort);
H A Dfirefox_crash.cpp37 address.sin_port = htons(port);
H A Dtcp_server.c59 my_addr.sin_port = htons(port);
/haiku/src/tools/remote_disk_server/
H A Dremote_disk_server.cpp167 addr.sin_port = htons(REMOTE_DISK_SERVER_PORT);
229 reply->size = htons(result);
274 reply.size = htons(result);
281 reply->port = htons(REMOTE_DISK_SERVER_PORT);
/haiku/src/system/boot/loader/net/
H A DUDP.cpp366 header.source = htons(sourcePort);
367 header.destination = htons(destinationPort);
368 header.length = htons(headerBuffer.TotalSize());
372 header.checksum = htons(_ChecksumBuffer(&headerBuffer,
431 htons(length)
H A DIP.cpp141 header.total_length = htons(headerBuffer.TotalSize());
143 header.fragment_offset = htons(IP_DONT_FRAGMENT);
151 header.checksum = htons(_Checksum(header));
H A DRemoteDisk.cpp121 request.size = htons(toRead);
272 request->port = htons(socket->Port());
/haiku/headers/posix/netinet/
H A Din.h41 # define htons(x) __net_swap_int16(x) macro
46 # define htons(x) (x) macro
/haiku/src/add-ons/print/transports/shared/
H A DSocket.cpp100 cin.sin_port = htons(__localPort);
108 sin.sin_port = htons(__port);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DInsecureConnectionListener.cpp53 addr.sin_port = htons(port);
/haiku/src/add-ons/kernel/network/ppp/pap/
H A DProtocol.cpp55 item.protocolNumber = htons(PAP_PROTOCOL);
465 request->length = htons(packcketLenth);
492 ack.length = htons(5);
515 nak.length = htons(5);
/haiku/src/tests/system/network/ipv6/
H A Dtcp_udp_server.cpp77 ((sockaddr_in *) &localAddress)->sin_port = htons(TEST_PORT);
/haiku/src/kits/network/libnetapi/
H A DNetAddress.cpp359 fPort = htons(port);
403 fPort = htons((short)port);
422 fPort = htons((short)port);
/haiku/src/add-ons/kernel/network/datalink_protocols/arp/
H A Darp.cpp238 destination->sdl_e_type = htons(ETHER_TYPE_IP);
279 entry->hardware_address.sdl_e_type = htons(ETHER_TYPE_IP);
453 address.sdl_e_type = htons(ETHER_TYPE_IP);
594 header.opcode = htons(ARP_OPCODE_REPLY);
799 header.hardware_type = htons(ARP_HARDWARE_TYPE_ETHER);
800 header.protocol_type = htons(ETHER_TYPE_IP);
803 header.opcode = htons(ARP_OPCODE_REQUEST);
818 source.sdl_e_type = htons(ETHER_TYPE_ARP);
857 hardwareAddress.sdl_e_type = htons(ETHER_TYPE_IP);
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A DRemoteDisk.cpp103 fServerAddress.sin_port = htons(serverPort);
127 fServerAddress.sin_port = htons(REMOTE_DISK_SERVER_PORT);
196 request.size = htons(toRead);
251 request->size = htons(toWrite);
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A D_KPPPMRUHandler.cpp42 item.MRU = htons(fLocalMRU);
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A DPPPoEDevice.cpp186 header.type = htons(ETHER_TYPE_PPPOE_DISCOVERY);
341 header.length = htons(length);
352 ethheader.type = htons(ETHER_TYPE_PPPOE);
525 header.type=htons(ETHER_TYPE_PPPOE_DISCOVERY);
/haiku/src/tools/fixup_next_boot_floppy/
H A Dfixup_next_boot_floppy.c23 #define H2B16 htons
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dparam.h106 # define htons(x) B_HOST_TO_BENDIAN_INT16(x) macro
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DServerManager.cpp90 addr.sin_port = htons(kDefaultServerInfoPort);
298 addr.sin_port = htons(kDefaultBroadcastPort);
420 addr.sin_port = htons(kDefaultBroadcastPort);
/haiku/headers/private/kernel/boot/net/
H A DNetDefs.h22 # define htons(x) B_HOST_TO_BENDIAN_INT16(x) macro
/haiku/src/tests/system/network/tcptester/
H A Dtcptester.cpp213 sin.sin_port = htons(port);

Completed in 111 milliseconds

12345