Searched refs:be16toh (Results 1 - 12 of 12) sorted by relevance

/systemd/src/systemd/
H A Dsd-ndisc.h71 be16toh((address).s6_addr16[0]), \
72 be16toh((address).s6_addr16[1]), \
73 be16toh((address).s6_addr16[2]), \
74 be16toh((address).s6_addr16[3]), \
75 be16toh((address).s6_addr16[4]), \
76 be16toh((address).s6_addr16[5]), \
77 be16toh((address).s6_addr16[6]), \
78 be16toh((address).s6_addr16[7])
/systemd/src/resolve/
H A Dresolved-dns-packet.h112 #define DNS_PACKET_QR(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 15) & 1)
113 #define DNS_PACKET_OPCODE(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 11) & 15)
114 #define DNS_PACKET_AA(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 10) & 1)
115 #define DNS_PACKET_TC(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 9) & 1)
116 #define DNS_PACKET_RD(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 8) & 1)
117 #define DNS_PACKET_RA(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 7) & 1)
118 #define DNS_PACKET_AD(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 5) & 1)
119 #define DNS_PACKET_CD(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 4) & 1)
129 return rcode | (be16toh(DNS_PACKET_HEADER(p)->flags) & 15);
136 #define DNS_PACKET_QDCOUNT(p) be16toh(DNS_PACKET_HEADE
[all...]
H A Dresolved-dns-stream.c256 if (be16toh(s->read_size) < DNS_PACKET_HEADER_SIZE)
259 if (s->n_read < sizeof(s->read_size) + be16toh(s->read_size)) {
263 r = dns_packet_new(&s->read_packet, s->protocol, be16toh(s->read_size));
267 s->read_packet->size = be16toh(s->read_size);
275 s->read_packet->sender_port = be16toh(s->peer.in.sin_port);
277 s->read_packet->destination_port = be16toh(s->local.in.sin_port);
281 s->read_packet->sender_port = be16toh(s->peer.in6.sin6_port);
283 s->read_packet->destination_port = be16toh(s->local.in6.sin6_port);
294 sizeof(s->read_size) + be16toh(s->read_size) - s->n_read);
305 if (s->n_read >= sizeof(s->read_size) + be16toh(
[all...]
H A Dresolved-manager.c667 p->sender_port = be16toh(sa.in.sin_port);
670 p->sender_port = be16toh(sa.in6.sin6_port);
/systemd/src/libsystemd-network/
H A Ddhcp-packet.c156 if (len < hdrlen + be16toh(packet->udp.len)) {
159 hdrlen + be16toh(packet->udp.len));
163 if (be16toh(packet->udp.dest) != DHCP_PORT_CLIENT) {
166 be16toh(packet->udp.dest), DHCP_PORT_CLIENT);
184 be16toh(packet->udp.len) + 12)) {
H A Ddhcp6-option.c152 len = be16toh(option->len);
157 *optcode = be16toh(option->code);
H A Dtest-dhcp-client.c118 assert_se(dhcp_packet_checksum((uint8_t*)&buf, 20) == be16toh(0x78ae));
165 assert_se(discover->udp.source == be16toh(DHCP_PORT_CLIENT));
166 assert_se(discover->udp.dest == be16toh(DHCP_PORT_SERVER));
H A Dsd-ndisc.c582 lifetime = be16toh(ra->nd_ra_router_lifetime);
H A Dsd-dhcp-server.c628 req->max_optlen = be16toh(*(be16_t*)option) -
/systemd/src/basic/
H A Dsparse-endian.h45 #undef be16toh macro
84 static inline uint16_t be16toh(be16_t value) { return bswap_16_on_le((uint16_t __force)value); } function
/systemd/src/timesync/
H A Dtimesyncd-manager.c131 return be16toh(ts->sec) + (be16toh(ts->frac) / 65536.0);
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-message.c607 *data = be16toh(*(uint16_t *) attr_data);

Completed in 32 milliseconds