Searched refs:htobe16 (Results 1 - 19 of 19) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-packet.c96 packet->ip.tot_len = htobe16(len);
104 packet->udp.source = htobe16(source_port);
105 packet->udp.dest = htobe16(destination_port);
107 packet->udp.len = htobe16(len - DHCP_IP_SIZE);
H A Ddhcp6-network.c38 .in6.sin6_port = htobe16(DHCP6_PORT_CLIENT),
78 .in6.sin6_port = htobe16(DHCP6_PORT_SERVER),
H A Ddhcp-network.c76 BPF_STMT(BPF_LD + BPF_IMM, htobe16(*((unsigned short *) (((char *) eth_mac) + 4)))), /* A <- remainder of client's MAC */
160 .in.sin_port = htobe16(port),
221 .in.sin_port = htobe16(port),
H A Ddhcp6-option.c55 option->code = htobe16(optcode);
56 option->len = htobe16(optlen);
H A Dsd-dhcp6-client.c214 client->duid.type = htobe16(type);
257 if (client->req_opts[t] == htobe16(option))
264 client->req_opts[client->req_opts_len++] = htobe16(option);
421 elapsed_time = htobe16(elapsed_usec / USEC_PER_MSEC / 10);
1299 client->req_opts[t] = htobe16(default_req_opts[t]);
H A Darp-util.c55 BPF_STMT(BPF_LD + BPF_IMM, htobe16(*((uint16_t *) (((char *) eth_mac) + 4)))), /* A <- remainder of client's MAC */
H A Dsd-dhcp-server.c287 .in.sin_port = htobe16(DHCP_PORT_CLIENT),
339 return req->message->flags & htobe16(0x8000);
391 packet->dhcp.flags = htobe16(0x8000);
H A Dsd-dhcp-client.c447 packet->dhcp.secs = htobe16(secs);
461 packet->dhcp.flags = htobe16(0x8000);
536 max_size = htobe16(size);
/systemd/src/basic/
H A Dsparse-endian.h43 #undef htobe16 macro
76 static inline be16_t htobe16(uint16_t value) { return (be16_t __force) bswap_16_on_le(value); } function
/systemd/src/network/
H A Dnetworkd-netdev-vxlan.c113 r = sd_netlink_message_append_u16(m, IFLA_VXLAN_PORT, htobe16(v->dest_port));
120 port_range.low = htobe16(v->port_range.low);
121 port_range.high = htobe16(v->port_range.high);
/systemd/src/resolve/
H A Dresolved-dns-scope.c320 sa.in.sin_port = htobe16(port);
324 sa.in6.sin6_port = htobe16(port);
337 sa.in.sin_port = htobe16(port);
341 sa.in6.sin6_port = htobe16(port);
620 DNS_PACKET_HEADER(p)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
638 DNS_PACKET_HEADER(p)->qdcount = htobe16(q->n_keys);
648 DNS_PACKET_HEADER(p)->ancount = htobe16(answer->n_rrs);
658 DNS_PACKET_HEADER(p)->arcount = htobe16(soa->n_rrs);
809 DNS_PACKET_HEADER(p)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
824 DNS_PACKET_HEADER(p)->qdcount = htobe16(
[all...]
H A Dresolved-llmnr.c126 .in.sin_port = htobe16(LLMNR_PORT),
206 .in6.sin6_port = htobe16(LLMNR_PORT),
334 .in.sin_port = htobe16(LLMNR_PORT),
408 .in6.sin6_port = htobe16(LLMNR_PORT),
H A Dresolved-mdns.c138 .in.sin_port = htobe16(MDNS_PORT),
215 .in6.sin6_port = htobe16(MDNS_PORT),
H A Dresolved-dns-packet.c79 h->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0 /* qr */,
91 h->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0 /* qr */,
105 h->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0 /* qr */,
745 DNS_PACKET_HEADER(p)->arcount = htobe16(DNS_PACKET_ARCOUNT(p) + 1);
775 DNS_PACKET_HEADER(p)->arcount = htobe16(DNS_PACKET_ARCOUNT(p) - 1);
H A Dresolved-dns-stream.c399 s->write_size = htobe16(p->size);
H A Dresolved-dns-cache.c1007 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
1026 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
H A Dresolved-manager.c820 sa.in.sin_port = htobe16(port),
869 sa.in6.sin6_port = htobe16(port),
H A Dresolved-dns-transaction.c1381 DNS_PACKET_HEADER(p)->qdcount = htobe16(qdcount);
1416 DNS_PACKET_HEADER(p)->qdcount = htobe16(1);
H A Dresolved-dns-dnssec.c455 v = htobe16(v);

Completed in 5169 milliseconds