25#ifndef JOIN_FABRIC_NETLINK_PROTOCOL_HPP
26#define JOIN_FABRIC_NETLINK_PROTOCOL_HPP
47 constexpr Netlink (
int proto = NETLINK_ROUTE) noexcept
58 static Netlink route (NETLINK_ROUTE);
68 static Netlink netfilter (NETLINK_NETFILTER);
76 constexpr int family () const noexcept
85 constexpr int type () const noexcept
112 return a.protocol () == b.protocol ();
basic netlink endpoint class.
Definition netlink_endpoint.hpp:43
netlink protocol class.
Definition netlink_protocol.hpp:38
static Netlink & rt() noexcept
get protocol suitable for netlink route.
Definition netlink_protocol.hpp:56
constexpr Netlink(int proto=NETLINK_ROUTE) noexcept
construct the netlink protocol instance by default.
Definition netlink_protocol.hpp:47
constexpr int family() const noexcept
get the protocol address family.
Definition netlink_protocol.hpp:76
constexpr int type() const noexcept
get the protocol communication semantic.
Definition netlink_protocol.hpp:85
static Netlink & nf() noexcept
get protocol suitable for netlink netfilter.
Definition netlink_protocol.hpp:66
constexpr int protocol() const noexcept
get the protocol type.
Definition netlink_protocol.hpp:94
Definition acceptor.hpp:32
bool operator==(const BasicLinkLayerEndpoint< Protocol > &a, const BasicLinkLayerEndpoint< Protocol > &b) noexcept
compare if endpoints are equal.
Definition endpoint.hpp:186
bool operator!=(const BasicLinkLayerEndpoint< Protocol > &a, const BasicLinkLayerEndpoint< Protocol > &b) noexcept
compare if endpoints are not equal.
Definition endpoint.hpp:198