Searched refs:be32toh (Results 1 - 17 of 17) sorted by relevance
/systemd/src/basic/ |
H A D | in-addr-util.c | 51 return (be32toh(u->in.s_addr) & UINT32_C(0xFFFF0000)) == (UINT32_C(169) << 24 | UINT32_C(254) << 16); 64 return (be32toh(u->in.s_addr) & UINT32_C(0xFF000000)) == UINT32_C(127) << 24; 109 x = be32toh(a->in.s_addr ^ b->in.s_addr); 161 c = be32toh(u->in.s_addr); 267 return 32 - u32ctz(be32toh(addr->s_addr));
|
H A D | sparse-endian.h | 49 #undef be32toh macro 85 static inline uint32_t be32toh(be32_t value) { return bswap_32_on_le((uint32_t __force)value); } function
|
/systemd/src/import/ |
H A D | qcow2-util.c | 63 #define HEADER_MAGIC(header) be32toh((header)->magic) 64 #define HEADER_VERSION(header) be32toh((header)->version) 65 #define HEADER_CLUSTER_BITS(header) be32toh((header)->cluster_bits) 69 #define HEADER_CRYPT_METHOD(header) be32toh((header)->crypt_method) 70 #define HEADER_L1_SIZE(header) be32toh((header)->l1_size) 78 return be32toh(h->header_length);
|
/systemd/src/libsystemd-network/ |
H A D | sd-dhcp-server.c | 54 server_off = be32toh(address->s_addr & ~netmask); 55 broadcast_off = be32toh(~netmask); 427 be32toh(req->message->xid), type, ARPHRD_ETHER, 599 req->lifetime = be32toh(*(be32_t*)option); 688 if (be32toh(requested_ip) < (be32toh(server->subnet) | server->pool_offset) || 689 be32toh(requested_ip) >= (be32toh(server->subnet) | (server->pool_offset + server->pool_size))) 692 return be32toh(requested_ip & ~server->netmask) - server->pool_offset; 735 be32toh(re [all...] |
H A D | dhcp6-option.c | 210 lt_t1 = be32toh(ia->lifetime_t1); 211 lt_t2 = be32toh(ia->lifetime_t2); 262 lt_valid = be32toh(addr->iaaddr.lifetime_valid); 263 lt_pref = be32toh(addr->iaaddr.lifetime_valid);
|
H A D | sd-dhcp6-lease.c | 46 t = be32toh(addr->iaaddr.lifetime_valid); 51 t = be32toh(ia->lifetime_t2); 165 be32toh(lease->addr_iter->iaaddr.lifetime_preferred); 166 *lifetime_valid = be32toh(lease->addr_iter->iaaddr.lifetime_valid);
|
H A D | sd-ndisc.c | 347 lifetime_valid = be32toh(prefix_opt->nd_opt_pi_valid_time); 348 lifetime_preferred = be32toh(prefix_opt->nd_opt_pi_preferred_time); 443 mtu = be32toh(opt_mtu->nd_opt_mtu_mtu);
|
H A D | sd-dhcp6-client.c | 1058 be32toh(client->lease->ia.lifetime_t1), 1059 be32toh(client->lease->ia.lifetime_t2)); 1064 timeout = client_timeout_compute_random(be32toh(client->lease->ia.lifetime_t1) * USEC_PER_SEC); 1086 timeout = client_timeout_compute_random(be32toh(client->lease->ia.lifetime_t2) * USEC_PER_SEC);
|
H A D | sd-ipv4ll.c | 240 addr = be32toh(address->s_addr);
|
H A D | test-dhcp-client.c | 227 printf(" recv DHCP Discover 0x%08x\n", be32toh(dhcp->xid)); 397 printf(" recv DHCP Request 0x%08x\n", be32toh(xid)); 428 printf(" recv DHCP Discover 0x%08x\n", be32toh(xid));
|
H A D | sd-dhcp-client.c | 1559 if (be32toh(message->magic) != DHCP_MAGIC_COOKIE) { 1594 be32toh(message->xid) != client->xid) { 1598 be32toh(message->xid), client->xid);
|
H A D | test-dhcp6-client.c | 226 assert_se((be32toh(advertise->transaction_id) & 0x00ffffff) ==
|
/systemd/src/network/ |
H A D | networkd-link.h | 205 be32toh((address).s_addr) >> 24, \ 206 (be32toh((address).s_addr) >> 16) & 0xFFu, \ 207 (be32toh((address).s_addr) >> 8) & 0xFFu, \ 208 be32toh((address).s_addr) & 0xFFu
|
H A D | networkd-address.c | 122 prefix = be32toh(a->in_addr_peer.in.s_addr) >> (32 - a->prefixlen); 124 prefix = be32toh(a->in_addr.in.s_addr) >> (32 - a->prefixlen); 164 b1 = be32toh(a1->in_addr_peer.in.s_addr) >> (32 - a1->prefixlen); 166 b1 = be32toh(a1->in_addr.in.s_addr) >> (32 - a1->prefixlen); 169 b2 = be32toh(a2->in_addr_peer.in.s_addr) >> (32 - a1->prefixlen); 171 b2 = be32toh(a2->in_addr.in.s_addr) >> (32 - a1->prefixlen);
|
/systemd/src/timesync/ |
H A D | timesyncd-manager.c | 135 return be32toh(ts->sec) + ((double)be32toh(ts->frac) / UINT_MAX); 558 if (be32toh(ntpmsg.origin_time.sec) != m->trans_time.tv_sec + OFFSET_1900_1970 || 559 be32toh(ntpmsg.origin_time.frac) != m->trans_time.tv_nsec) { 566 if (be32toh(ntpmsg.recv_time.sec) < TIME_EPOCH + OFFSET_1900_1970 || 567 be32toh(ntpmsg.trans_time.sec) < TIME_EPOCH + OFFSET_1900_1970) {
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-socket.c | 866 a = be32toh(a); 867 b = be32toh(b);
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-message.c | 634 *data = be32toh(*(uint32_t *) attr_data);
|
Completed in 4275 milliseconds