Searched refs:be16toh (Results 1 - 12 of 12) sorted by relevance
/systemd/src/systemd/ |
H A D | sd-ndisc.h | 71 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 D | resolved-dns-packet.h | 112 #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 D | resolved-dns-stream.c | 256 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 D | resolved-manager.c | 667 p->sender_port = be16toh(sa.in.sin_port); 670 p->sender_port = be16toh(sa.in6.sin6_port);
|
/systemd/src/libsystemd-network/ |
H A D | dhcp-packet.c | 156 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 D | dhcp6-option.c | 152 len = be16toh(option->len); 157 *optcode = be16toh(option->code);
|
H A D | test-dhcp-client.c | 118 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 D | sd-ndisc.c | 582 lifetime = be16toh(ra->nd_ra_router_lifetime);
|
H A D | sd-dhcp-server.c | 628 req->max_optlen = be16toh(*(be16_t*)option) -
|
/systemd/src/basic/ |
H A D | sparse-endian.h | 45 #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 D | timesyncd-manager.c | 131 return be16toh(ts->sec) + (be16toh(ts->frac) / 65536.0);
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-message.c | 607 *data = be16toh(*(uint16_t *) attr_data);
|
Completed in 32 milliseconds