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

123

/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/bin/fwcontrol/
H A Dfwmpegts.c218 htonl(ptr[0]), htonl(ptr[1]),
219 htonl(ptr[2]), htonl(ptr[3]));
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]));
/haiku/src/tools/fixup_amiga_boot_checksum/
H A Dfixup_amiga_boot_checksum.c40 ((uint32_t *)bootblock)[1] = htonl(sum);
/haiku/src/preferences/time/
H A Dntp.cpp55 this->integer = htonl(integer);
56 this->fraction = htonl(fraction);
59 uint32 Integer() { return htonl(integer); }
60 uint32 Fraction() { return htonl(fraction); }
/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);
/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/src/libs/compat/freebsd_network/compat/sys/
H A Dparam.h103 #ifndef htonl
104 # 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/tests/system/network/
H A Dat_srv.c33 sin.sin_addr.s_addr = htonl(INADDR_ANY); // LOOPBACK);
H A Dat_client.c34 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dtest2.c29 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dtest3.c29 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
H A Dfirefox_crash.cpp38 address.sin_addr.s_addr = htonl(ipAddress);
/haiku/src/tests/system/network/ipv6/
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);
H A Dmulticast_sender.cpp59 sa->sin_addr.s_addr = htonl(INADDR_ALLHOSTS_GROUP);
/haiku/src/tests/system/network/posixnet/
H A DSocketTests.cpp31 address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
/haiku/src/system/kernel/util/
H A Dinet_addr.c194 addr->s_addr = htonl(val);
/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/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/add-ons/kernel/network/protocols/ipv4/
H A Dipv4_address.cpp429 net = htonl(IN_CLASSA_NET);
432 net = htonl(IN_CLASSB_NET);
435 net = htonl(IN_CLASSC_NET);
519 address->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
/haiku/src/tools/fixup_next_boot_floppy/
H A Dfixup_next_boot_floppy.c22 #define H2B32 htonl
/haiku/src/tests/system/network/icmp/
H A Dbig_datagram.cpp103 iph->ip_id = htonl(54321);

Completed in 382 milliseconds

123