25#include <seastar/net/socket_defs.hh>
26#include <seastar/core/byteorder.hh>
27#include <seastar/util/modules.hh>
33SEASTAR_MODULE_EXPORT_BEGIN
46 template <
typename Adjuster>
47 auto adjust_endianness(Adjuster a) {
return a(ip); }
58 ia.ip = read_be<uint32_t>(p);
66 void write(
char* p)
const noexcept {
67 write_be<uint32_t>(p, ip);
69 void produce(
char*& p)
const noexcept {
70 produce_be<uint32_t>(p, ip);
72 static constexpr size_t size() {
77inline bool is_unspecified(
ipv4_address addr)
noexcept {
return addr.ip == 0; }
79std::ostream& operator<<(std::ostream& os,
const ipv4_address& a);
81SEASTAR_MODULE_EXPORT_END
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: socket_defs.hh:113
Definition: ipv4_address.hh:35
Definition: unaligned.hh:58