Searched refs:htons (Results 1 - 25 of 113) sorted by path

12345

/haiku/headers/posix/netinet/
H A Din.h41 # define htons(x) __net_swap_int16(x) macro
46 # define htons(x) (x) macro
/haiku/headers/private/firewire/
H A Dfirewire.h464 # define htons(x) B_HOST_TO_BENDIAN_INT16(x) macro
/haiku/headers/private/kernel/boot/net/
H A DNetDefs.h22 # define htons(x) B_HOST_TO_BENDIAN_INT16(x) macro
/haiku/headers/private/net/
H A DNetUtilities.h92 checksum << (uint16)htons(protocol) << (uint16)htons(buffer->size)
/haiku/src/add-ons/kernel/debugger/netconsole/
H A Dnetconsole.cpp64 fServerAddress.sin_port = htons(NETCONSOLE_PORT);
/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/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/src/add-ons/kernel/file_systems/netfs/server/
H A DInsecureConnectionListener.cpp53 addr.sin_port = htons(port);
/haiku/src/add-ons/kernel/network/ppp/ipcp/
H A DProtocol.cpp1521 request->length = htons(4);
1548 ack->length = htons(4);
1556 ack.length = htons(4);
1579 reject.length = htons(packet->size);
/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/add-ons/kernel/network/ppp/pppoe/
H A DDiscoveryPacket.cpp161 *((uint16*)(header->data + length)) = htons(tag->type);
163 *((uint16*)(header->data + length)) = htons(tag->length);
169 header->length = htons(length);
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A D_KPPPAuthenticationHandler.cpp224 suggestion.protocolNumber = htons(nextAuthenticator->ProtocolNumber());
H A D_KPPPMRUHandler.cpp42 item.MRU = htons(fLocalMRU);
/haiku/src/add-ons/print/transports/ipp/
H A DIppContent.cpp29 len = htons(len);
798 unsigned short ns_version = htons(version); // version-number
801 unsigned short ns_operation_id = htons(operation_id); // operation-id
/haiku/src/add-ons/print/transports/shared/
H A DSocket.cpp100 cin.sin_port = htons(__localPort);
108 sin.sin_port = htons(__port);
/haiku/src/bin/fwcontrol/
H A Dfwdv.c378 ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac);
380 ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac);
/haiku/src/kits/network/libnetapi/
H A DNetAddress.cpp359 fPort = htons(port);
403 fPort = htons((short)port);
422 fPort = htons((short)port);
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_ether.c147 evl->evl_encap_proto = htons(ETHERTYPE_VLAN);
148 evl->evl_tag = htons(tag);
/haiku/src/system/boot/loader/net/
H A DARP.cpp71 if (header->hardware_format != htons(ARPHRD_ETHER)
72 || header->protocol_format != htons(ETHERTYPE_IP)
79 || (header->opcode != htons(ARPOP_REQUEST)
80 && header->opcode != htons(ARPOP_REPLY))) {
85 if (header->opcode == htons(ARPOP_REQUEST)
92 if (header->opcode == htons(ARPOP_REPLY)
105 if (header->opcode == htons(ARPOP_REQUEST)) {
170 header.hardware_format = htons(ARPHRD_ETHER);
171 header.protocol_format = htons(ETHERTYPE_IP);
174 header.opcode = htons(opcod
[all...]
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());
H A DTCP.cpp799 header.source = htons(sourcePort);
800 header.destination = htons(destinationPort);
805 header.window = htons(windowSize);
808 header.checksum = htons(_ChecksumBuffer(&headerBuffer,
860 htons(length)
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)
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_mkquery.c132 hp->id = htons(statp->id);
159 hp->qdcount = htons(1);
180 hp->arcount = htons(1);
202 hp->ancount = htons(1);
261 hp->arcount = htons(ntohs(hp->arcount) + 1);
/haiku/src/tests/kits/net/
H A DNetAddressTest.cpp74 checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
77 checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
82 checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));
87 sockaddr.sin_port = htons(54321);
89 checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));

Completed in 271 milliseconds

12345