Searched refs:htonl (Results 1 - 25 of 57) sorted by path

123

/haiku/headers/posix/netinet/
H A Din.h37 #ifndef htonl
39 # define htonl(x) ((uint32_t)__net_swap_int32(x)) macro
44 # define htonl(x) (x) macro
/haiku/headers/private/firewire/
H A Dfirewire.h461 #ifndef htonl
462 # define htonl(x) B_HOST_TO_BENDIAN_INT32(x) macro
/haiku/headers/private/kernel/boot/net/
H A DNetDefs.h19 #ifndef htonl
20 # define htonl(x) B_HOST_TO_BENDIAN_INT32(x) macro
/haiku/src/add-ons/kernel/debugger/netconsole/
H A Dnetconsole.cpp65 fServerAddress.sin_addr.s_addr = htonl(INADDR_BROADCAST);
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A DRemoteDisk.cpp104 fServerAddress.sin_addr.s_addr = htonl(serverAddress);
128 fServerAddress.sin_addr.s_addr = htonl(INADDR_BROADCAST);
/haiku/src/add-ons/print/transports/ipp/
H A DIppContent.cpp222 unsigned long val = htonl(value);
511 unsigned long val = htonl(xres);
515 val = htonl(yres);
581 unsigned long val = htonl(lower);
585 val = htonl(upper);
804 unsigned long ns_request_id = htonl(request_id); // request-id
/haiku/src/bin/fwcontrol/
H A Dfwcontrol.c120 *(u_int32_t*)&(eui->octet[0]) = htonl(fweui->hi);
121 *(u_int32_t*)&(eui->octet[4]) = htonl(fweui->lo);
244 asyreq->pkt.mode.wreqq.data = htonl(data);
335 asyreq->pkt.mode.wreqq.data = htonl(0x1);
H A Dfwdv.c182 htonl(ptr[0]), htonl(ptr[1]),
183 htonl(ptr[2]), htonl(ptr[3]));
328 htonl(hdr[0]), htonl(hdr[1]), htonl(hdr[2]));
H A Dfwmpegts.c218 htonl(ptr[0]), htonl(ptr[1]),
219 htonl(ptr[2]), htonl(ptr[3]));
/haiku/src/system/boot/loader/net/
H A DARP.cpp87 || header->target_ip != htonl(fEthernet->IPAddress()))) {
99 if (header->sender_ip != htonl(INADDR_ANY)
100 && header->sender_ip != htonl(INADDR_BROADCAST)) {
176 header.sender_ip = htonl(fEthernet->IPAddress());
178 header.target_ip = htonl(ip);
H A DIP.cpp100 || (header->destination != htonl(INADDR_BROADCAST)
102 || header->destination != htonl(fEthernet->IPAddress())))
147 header.source = htonl(fEthernet->IPAddress());
148 header.destination = htonl(destination);
H A DTCP.cpp801 header.seqNumber = htonl(sequenceNumber);
802 header.ackNumber = htonl(acknowledgmentNumber);
856 htonl(source),
857 htonl(destination),
H A DUDP.cpp427 htonl(source),
428 htonl(destination),
/haiku/src/system/kernel/fs/
H A Dvfs_net_boot.cpp236 address.sin_addr.s_addr = htonl(fClientIP);
245 address.sin_addr.s_addr = htonl(fNetMask);
253 address.sin_addr.s_addr = htonl(fClientIP | ~fNetMask);
/haiku/src/tests/kits/net/
H A DNetAddressTest.cpp74 checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
76 netAddr.SetTo(htonl(0x7F000001), 123);
77 checkNetAddr(netAddr, htonl(0x7F000001), htons(123));
80 addr.s_addr = htonl(0x7F000001);
82 checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));
86 sockaddr.sin_addr.s_addr = htonl(0x7F000001);
89 checkNetAddr(netAddr, htonl(0x7F000001), htons(54321));
/haiku/src/tests/system/network/
H A Dat_client.c34 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dat_srv.c33 sin.sin_addr.s_addr = htonl(INADDR_ANY); // LOOPBACK);
H A Dfirefox_crash.cpp38 address.sin_addr.s_addr = htonl(ipAddress);
H A Dtest2.c29 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dtest3.c29 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
/haiku/src/tests/system/network/icmp/
H A Dbig_datagram.cpp103 iph->ip_id = htonl(54321);
/haiku/src/tests/system/network/ipv6/
H A Dmulticast_sender.cpp59 sa->sin_addr.s_addr = htonl(INADDR_ALLHOSTS_GROUP);
H A Draw_client.cpp42 sa->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dudp_client.cpp43 sa->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
/haiku/src/tests/system/network/multicast/
H A Dmulticat.c308 mrs.imr_interface.s_addr = htonl(INADDR_ANY);
314 mr.imr_interface.s_addr = htonl(INADDR_ANY);

Completed in 149 milliseconds

123