Searched refs:ntohs (Results 1 - 25 of 87) sorted by path

1234

/haiku/headers/posix/netinet/
H A Din.h42 # define ntohs(x) __net_swap_int16(x) macro
47 # define ntohs(x) (x) macro
/haiku/headers/private/firewire/
H A Dfirewire.h465 # define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) macro
/haiku/headers/private/kernel/boot/net/
H A DNetDefs.h23 # define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) macro
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A DRemoteDisk.cpp205 int16 packetSize = ntohs(((remote_disk_header*)fPacket)->size);
272 int16 packetSize = ntohs(reply.size);
356 uint32 packetSize = ntohs(header->size);
/haiku/src/add-ons/kernel/drivers/network/wlan/aironetwifi/dev/an/
H A Dif_an.c3080 if ((ntohs(eh->ether_type) == ETHERTYPE_IP)) {
/haiku/src/add-ons/kernel/network/ppp/ipcp/
H A DProtocol.cpp270 if (ntohs(data.length) < 4)
910 if (nak && ntohs(lcpHdrNakLength) > 3)
912 else if (reject && ntohs(lcpHdrRejectLength) > 3)
/haiku/src/add-ons/kernel/network/ppp/pap/
H A DProtocol.cpp74 || item->length != 4 || ntohs(item->protocolNumber) != PAP_PROTOCOL)
205 length -= ntohs(data.length);
207 if (ntohs(data.length) < 4)
340 int32 length = ntohs(request.length);
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A DDiscoveryPacket.cpp33 uint16 length = ntohs(header.length);
50 position += ntohs(tag->length) + 4;
52 AddTag(ntohs(tag->type), tag->data, ntohs(tag->length));
H A Dpppoe.cpp201 ntohs(linkAddress.sdl_e_type));
206 && ntohs(header.length) <= PPPoE_QUERY_REPORT_SIZE) {
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPLCP.cpp253 if (ntohs(data.length) < 4)
H A D_KPPPAuthenticationHandler.cpp126 if (ntohs(item->protocolNumber) ==
134 KPPPProtocol *authenticator = Interface().ProtocolFor(ntohs(item->protocolNumber));
171 || ntohs(item->protocolNumber) != fPeerAuthenticator->ProtocolNumber())
192 TRACE("KPPPAuthHandler: ParseRequest(%X)\n", ntohs(item->protocolNumber));
195 fLocalAuthenticator = Interface().ProtocolFor(ntohs(item->protocolNumber));
H A D_KPPPMRUHandler.cpp54 uint16 MRU = ntohs(item->MRU);
79 MRU = ntohs(item->MRU);
119 MRU = ntohs(item->MRU);
/haiku/src/add-ons/kernel/network/protocols/icmp/
H A Dicmp.cpp431 ntohs(header.checksum));
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4.h42 uint16 TotalLength() const { return ntohs(total_length); }
43 uint16 FragmentOffset() const { return ntohs(fragment_offset); }
/haiku/src/add-ons/print/transports/ipp/
H A DIppContent.cpp23 len = ntohs(len);
660 version = ntohs(version);
666 operation_id = ntohs(operation_id);
/haiku/src/bin/fwcontrol/
H A Dfwdv.c191 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc));
/haiku/src/kits/network/libnetapi/
H A DNetAddress.cpp129 * here, so it is not necessary to call ntohs() after
155 *port = ntohs(fPort);
231 *port = ntohs(fPort);
H A DNetworkSettings.cpp1474 fPort = ntohs(servent->s_port);
/haiku/src/system/boot/loader/net/
H A DIP.cpp98 || ntohs(header->total_length) > size
116 ntohs(header->total_length) - headerLength);
H A DRemoteDisk.cpp132 int16 packetSize = ntohs(((remote_disk_header*)packet->Data())->size);
228 error = remoteDisk->Init(packet->SourceAddress(), ntohs(reply->port),
250 uint32 packetSize = ntohs(header->size);
H A DTCP.cpp730 uint16 source = ntohs(header->source);
731 uint16 destination = ntohs(header->destination);
H A DUDP.cpp317 uint16 source = ntohs(header->source);
318 uint16 destination = ntohs(header->destination);
319 uint16 length = ntohs(header->length);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_mkquery.c261 hp->arcount = htons(ntohs(hp->arcount) + 1);
/haiku/src/tests/kits/net/
H A DNetAddressTest.cpp32 uint16 hostPort = ntohs(nwPort);
/haiku/src/tests/system/network/
H A Dfirefox_crash.cpp71 init_sockaddr(address, INADDR_LOOPBACK, ntohs(listenAddress.sin_port));

Completed in 152 milliseconds

1234