/haiku/src/add-ons/kernel/network/protocols/ipv4/ |
H A D | ipv4.h | 42 uint16 TotalLength() const { return ntohs(total_length); } 43 uint16 FragmentOffset() const { return ntohs(fragment_offset); }
|
/haiku/src/tests/system/network/ |
H A D | udp_client.c | 59 printf("addr=%lx port=%u\n", serverAddr.sin_addr.s_addr, ntohs(serverAddr.sin_port));
67 printf("binding to port %u\n", ntohs(clientAddr.sin_port));
|
H A D | udp_connect.cpp | 47 ntohs(((sockaddr_in&)ours).sin_port)); 65 ntohs(((sockaddr_in&)ours).sin_port));
|
H A D | tcp_connection_test.cpp | 96 previousPort = ntohs(clientAddr.sin_port); 100 ntohs(serverAddr.sin_port),
|
H A D | udp_server.c | 55 printf("binding to port %u\n", ntohs(localAddr.sin_port));
|
H A D | firefox_crash.cpp | 71 init_sockaddr(address, INADDR_LOOPBACK, ntohs(listenAddress.sin_port));
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | _KPPPMRUHandler.cpp | 54 uint16 MRU = ntohs(item->MRU); 79 MRU = ntohs(item->MRU); 119 MRU = ntohs(item->MRU);
|
H A D | _KPPPAuthenticationHandler.cpp | 126 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));
|
/haiku/src/add-ons/kernel/network/ppp/pppoe/ |
H A D | DiscoveryPacket.cpp | 33 uint16 length = ntohs(header.length); 50 position += ntohs(tag->length) + 4; 52 AddTag(ntohs(tag->type), tag->data, ntohs(tag->length));
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_query.c | 172 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { 177 ntohs(hp->ancount), 178 ntohs(hp->nscount), 179 ntohs(hp->arcount));
|
/haiku/headers/posix/netinet/ |
H A D | in.h | 42 # define ntohs(x) __net_swap_int16(x) macro 47 # define ntohs(x) (x) macro
|
/haiku/src/system/boot/loader/net/ |
H A D | Ethernet.cpp | 204 header->destination.ToUInt64(), ntohs(header->type), 211 if (service->EthernetProtocol() == ntohs(header->type)) {
|
H A D | RemoteDisk.cpp | 132 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 D | UDP.cpp | 317 uint16 source = ntohs(header->source); 318 uint16 destination = ntohs(header->destination); 319 uint16 length = ntohs(header->length);
|
H A D | IP.cpp | 98 || ntohs(header->total_length) > size 116 ntohs(header->total_length) - headerLength);
|
/haiku/src/tests/kits/net/ |
H A D | NetAddressTest.cpp | 32 uint16 hostPort = ntohs(nwPort);
|
/haiku/src/add-ons/kernel/network/ppp/pap/ |
H A D | Protocol.cpp | 74 || 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/system/libnetwork/netresolv/net/ |
H A D | getservbyport_r.c | 67 port = ntohs(port);
|
H A D | getnameinfo.c | 173 ntohs(sat->sat_addr.s_net), sat->sat_addr.s_node); 191 ntohs(sat->sat_range.r_netrange.nr_firstnet), 192 ntohs(sat->sat_range.r_netrange.nr_lastnet )); 302 snprintf(numserv, sizeof(numserv), "%u", ntohs(port));
|
/haiku/src/tools/fixup_next_boot_floppy/ |
H A D | fixup_next_boot_floppy.c | 24 #define B2H16 ntohs
|
/haiku/src/libs/compat/freebsd_network/compat/sys/ |
H A D | param.h | 107 # define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) macro
|
/haiku/src/kits/network/libnetapi/ |
H A D | NetAddress.cpp | 129 * here, so it is not necessary to call ntohs() after 155 *port = ntohs(fPort); 231 *port = ntohs(fPort);
|
/haiku/src/tools/remote_disk_server/ |
H A D | remote_disk_server.cpp | 196 int16_t size = ntohs(fRequest->size); 239 int16_t size = ntohs(fRequest->size);
|
/haiku/src/bin/network/traceroute/ |
H A D | traceroute.c | 1303 Printf(" %04x", ntohs(*sp++)); 1418 pmtu = ntohs(icp->icmp_nextmtu); 1497 return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) && 1498 ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq)); 1523 return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) && 1524 ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq)); 1549 return (ntohs(tcp->th_sport) == ident 1550 && ntohs(tcp->th_dport) == port + (fixedPort ? 0 : seq) 1635 if (ntohs(sctp->src_port) != ident || 1636 ntohs(sct [all...] |
/haiku/src/bin/network/ping/ |
H A D | ping6.c | 1026 src.sin6_port = ntohs(DUMMY_PORT); 1461 if (ntohs(icp->icmp6_id) == ident) 1616 seq = ntohs(icp->icmp6_seq); 1686 seq = ntohs(seq); 1702 switch (ntohs(ni->ni_code)) { 1706 printf("refused, type 0x%x", ntohs(ni->ni_type)); 1709 printf("unknown, type 0x%x", ntohs(ni->ni_type)); 1713 ntohs(ni->ni_code), ntohs(ni->ni_type)); 1717 switch (ntohs(n [all...] |