Searched refs:ntohs (Results 26 - 50 of 87) sorted by relevance

1234

/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/headers/private/kernel/boot/net/
H A DNetDefs.h23 # define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) macro
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPConfigurePacket.cpp46 uint16 length = ntohs(header.length);
H A DKPPPLCP.cpp253 if (ntohs(data.length) < 4)
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A Dpppoe.cpp201 ntohs(linkAddress.sdl_e_type));
206 && ntohs(header.length) <= PPPoE_QUERY_REPORT_SIZE) {
H A DPPPoEDevice.cpp390 ntohs(source.sdl_e_type));
402 uint16 ppppoe_payload = ntohs(header.length);
/haiku/src/bin/network/ping/
H A Dping.c1221 seq = ntohs(icp.icmp_seq);
1484 ntohs(icp->icmp_nextmtu));
1605 ip->ip_v, ip->ip_hl, ip->ip_tos, ntohs(ip->ip_len),
1606 ntohs(ip->ip_id));
1608 (ntohs(ip->ip_off) & 0xe000) >> 13,
1609 ntohs(ip->ip_off) & 0x1fff);
1611 ntohs(ip->ip_sum));
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A Dtcp.cpp213 segment.max_segment_size = ntohs(option->max_segment_size);
264 dprintf(" source port: %u\n", ntohs(header.source_port));
265 dprintf(" dest port: %u\n", ntohs(header.destination_port));
/haiku/src/system/libnetwork/netresolv/net/
H A Dhesiod.c447 ancount = ntohs(hp->ancount);
448 qdcount = ntohs(hp->qdcount);
H A Dgetaddrinfo.c1772 ancount = ntohs(hp->ancount);
1773 qdcount = ntohs(hp->qdcount);
2014 h_errno = ntohs(hp->ancount) > 0? NO_DATA : NO_RECOVERY;
2659 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2665 ntohs(hp->ancount),
2666 ntohs(hp->nscount),
2667 ntohs(hp->arcount));
2672 ancount += ntohs(hp->ancount);
H A Dgetnetnamadr.c199 ancount = ntohs(hp->ancount); /* #/records in the answer section */
200 qdcount = ntohs(hp->qdcount); /* #/entries in the question section */
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_mkquery.c261 hp->arcount = htons(ntohs(hp->arcount) + 1);
H A Dres_send.c253 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount);
291 int qdcount = ntohs(((const HEADER*)(const void *)buf1)->qdcount);
304 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount))
/haiku/src/tests/system/network/
H A Dudp_echo.c159 ntohs(serverAddr.sin_port));
/haiku/src/tests/kits/net/service/
H A DTestServer.cpp135 fServerPort = ntohs(server_address.sin_port);
/haiku/src/bin/network/netstat/
H A Dnetstat.cpp107 snprintf(port, sizeof(port), "%u", ntohs(address.sin_port));
/haiku/src/tests/kits/net/netservices2/
H A DTestServer.cpp121 fServerPort = ntohs(server_address.sin_port);
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dam7990.c595 ntohs(eh.ether_type));
618 ntohs(eh.ether_type));
H A Dam79900.c643 ntohs(eh.ether_type));
665 ntohs(eh.ether_type));
/haiku/headers/private/firewire/
H A Dfirewire.h465 # define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) macro
/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/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/datalink_protocols/arp/
H A Darp.cpp638 uint16 opcode = ntohs(header.opcode);
647 if (ntohs(header.protocol_type) != ETHER_TYPE_IP
648 || ntohs(header.hardware_type) != ARP_HARDWARE_TYPE_ETHER)
/haiku/src/kits/network/libnetapi/
H A DNetworkAddress.cpp626 return ntohs(((sockaddr_in&)fAddress).sin_port);
629 return ntohs(((sockaddr_in6&)fAddress).sin6_port);
921 return ntohs(((sockaddr_dl&)fAddress).sdl_e_type);
/haiku/src/add-ons/kernel/network/protocols/icmp/
H A Dicmp.cpp431 ntohs(header.checksum));

Completed in 171 milliseconds

1234