htonl
#ifndef htonl
#ifndef htonl
#ifndef htonl
CSRARC(fc, TOPO_MAP + i * 4) = htonl(*p++);
CSRARC(fc, SPED_MAP) = htonl(*p++);
CSRARC(fc, SPED_MAP + 4) = htonl(*p++);
xfer->send.payload[0] = htonl(0x3f);
xfer->send.payload[1] = htonl(fc->nodeid);
quad = htonl(1 << 8);
fServerAddress.sin_addr.s_addr = htonl(INADDR_BROADCAST);
fServerAddress.sin_addr.s_addr = htonl(serverAddress);
fServerAddress.sin_addr.s_addr = htonl(INADDR_BROADCAST);
addr.sin_addr.s_addr=htonl(INADDR_ANY);
ns->mountAddr.sin_addr.s_addr = htonl(ns->params.serverIP);
addr.sin_addr.s_addr = htonl(INADDR_ANY);
buf[0] = htonl(size | LAST_FRAGMENT);
data[0] = (data[0] & htonl(0x7f)) | htonl(0x01005e00);
defaultAddress.sin_addr.s_addr = htonl(INADDR_ANY);
if (address->sin_addr.s_addr == htonl(INADDR_ANY)) {
net = htonl(IN_CLASSA_NET);
net = htonl(IN_CLASSB_NET);
net = htonl(IN_CLASSC_NET);
address->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
flowinfo |= htonl(protocol->service_type << 20);
header->ip6_flow = htonl(flowinfo) & IPV6_FLOWINFO_MASK;
fragmentHeader.ip6f_ident = htonl(atomic_add(&sFragmentID, 1));
sacks[i].left_edge = htonl(sacks[i].left_edge);
sacks[i].right_edge = htonl(sacks[i].right_edge);
option->timestamp.value = htonl(segment.timestamp_value);
option->timestamp.reply = htonl(segment.timestamp_reply);
header.sequence = htonl(segment.sequence);
? htonl(segment.acknowledge) : 0;
&& ((const sockaddr_in *)address)->sin_addr.s_addr == htonl(INADDR_BROADCAST)) {
unsigned long val = htonl(value);
unsigned long val = htonl(xres);
val = htonl(yres);
unsigned long val = htonl(lower);
val = htonl(upper);
unsigned long ns_request_id = htonl(request_id); // request-id
sa6.sa_in.sin_addr.s_addr = htonl(INADDR_ANY);
sa4.sa_in.sin_addr.s_addr = htonl(INADDR_ANY);
(unsigned int)(htonl(addr->s_addr) >> 24) & 0xff,
(unsigned int)(htonl(addr->s_addr) >> 16) & 0xff,
(unsigned int)(htonl(addr->s_addr) >> 8) & 0xff,
(unsigned int)(htonl(addr->s_addr) >> 0) & 0xff);
*(u_int32_t*)&(eui->octet[0]) = htonl(fweui->hi);
*(u_int32_t*)&(eui->octet[4]) = htonl(fweui->lo);
asyreq->pkt.mode.wreqq.data = htonl(data);
asyreq->pkt.mode.wreqq.data = htonl(0x1);
*ptr = htonl(*ptr);
htonl(ptr[0]), htonl(ptr[1]),
htonl(ptr[2]), htonl(ptr[3]));
htonl(hdr[0]), htonl(hdr[1]), htonl(hdr[2]));
htonl(ptr[0]), htonl(ptr[1]),
htonl(ptr[2]), htonl(ptr[3]));
tv32.tv32_sec = (uint32_t)htonl(now.tv_sec);
tv32.tv32_nsec = (uint32_t)htonl(now.tv_nsec);
icp.icmp_otime = htonl((now.tv_sec % (24*60*60))
tv32.tv32_sec = (uint32_t)htonl(tv.tv_sec);
tv32.tv32_nsec = (uint32_t)htonl(tv.tv_nsec);
baudrate = htonl(baudrate);
sctp->checksum = htonl(0);
init->init.a_rwnd = htonl(1500);
init->init.initial_tsn = htonl(0);
return (htonl(crc32c));
tv32.tv32_sec = htonl(tv.tv_sec);
tv32.tv32_usec = htonl(tv.tv_usec);
SetTo(htonl(INADDR_LOOPBACK), port);
mask.sin_addr.s_addr = htonl(hostMask);
#ifndef htonl
this->integer = htonl(integer);
this->fraction = htonl(fraction);
uint32 Integer() { return htonl(integer); }
uint32 Fraction() { return htonl(fraction); }
options_magic = htonl(OPTION_MAGIC);
return options_magic == htonl(OPTION_MAGIC);
if (message->transaction_id != htonl(fTransactionID)
message.transaction_id = htonl(fTransactionID);
&& header->sender_ip != htonl(INADDR_BROADCAST)) {
header.sender_ip = htonl(fEthernet->IPAddress());
header.target_ip = htonl(ip);
|| header->target_ip != htonl(fEthernet->IPAddress()))) {
if (header->sender_ip != htonl(INADDR_ANY)
|| (header->destination != htonl(INADDR_BROADCAST)
|| header->destination != htonl(fEthernet->IPAddress())))
header.source = htonl(fEthernet->IPAddress());
header.destination = htonl(destination);
header.seqNumber = htonl(sequenceNumber);
header.ackNumber = htonl(acknowledgmentNumber);
htonl(source),
htonl(destination),
htonl(source),
htonl(destination),
getFileSize.server_ip.num = htonl(fServerIP);
openConnection.server_ip.num = htonl(fServerIP);
address.sin_addr.s_addr = htonl(fClientIP);
address.sin_addr.s_addr = htonl(fNetMask);
address.sin_addr.s_addr = htonl(fClientIP | ~fNetMask);
addr->s_addr = htonl(val);
return (htonl(IN_CLASSA_NET));
return (htonl(IN_CLASSB_NET));
return (htonl(IN_CLASSC_NET));
checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
netAddr.SetTo(htonl(0x7F000001), 123);
checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
addr.s_addr = htonl(0x7F000001);
checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));
sockaddr.sin_addr.s_addr = htonl(0x7F000001);
checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));
CPPUNIT_ASSERT(address == BNetworkAddress(htonl(INADDR_LOOPBACK)));
server_address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
server_address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
sin.sin_addr.s_addr = htonl(INADDR_ANY); // LOOPBACK);
address.sin_addr.s_addr = htonl(ipAddress);
iph->ip_id = htonl(54321);
sa->sin_addr.s_addr = htonl(INADDR_ALLHOSTS_GROUP);
sa->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
sa->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
mrs.imr_interface.s_addr = htonl(INADDR_ANY);
mr.imr_interface.s_addr = htonl(INADDR_ANY);
address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
address.sin_addr.s_addr = htonl(0xc0a80001);
address.sin_addr.s_addr = htonl(0xc0a80001);
address.sin_addr.s_addr = htonl(0xc0a80001);
interfaceAddress.sin_addr.s_addr = htonl(0xc0a80001);
sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
((uint32_t *)bootblock)[1] = htonl(sum);
#define H2B32 htonl
fClientAddress.sin_addr.s_addr = htonl(INADDR_ANY);
fHostEndianess = (htonl(1) != 1);
fHostEndianess = (htonl(1) == 1);