17 #ifndef __LINUX_ROUTING_HANDLE_HPP__ 18 #define __LINUX_ROUTING_HANDLE_HPP__ 24 #include <netlink/route/tc.h> 44 :
handle((((uint32_t) primary) << 16) + secondary) {}
66 constexpr uint32_t
get()
const {
return handle; }
97 #endif // __LINUX_ROUTING_HANDLE_HPP__ constexpr Handle(uint32_t _handle)
Definition: handle.hpp:41
uint32_t handle
Definition: handle.hpp:69
constexpr Handle EGRESS_ROOT
Definition: handle.hpp:92
Definition: handle.hpp:38
std::ostream & operator<<(std::ostream &stream, const Handle &handle)
constexpr uint16_t primary() const
Definition: handle.hpp:64
constexpr bool operator!=(const Handle &that) const
Definition: handle.hpp:57
static Try< Handle > parse(const std::string &str)
constexpr uint16_t secondary() const
Definition: handle.hpp:65
Definition: diagnosis.hpp:30
constexpr Handle(uint16_t primary, uint16_t secondary)
Definition: handle.hpp:43
constexpr bool operator==(const Handle &that) const
Definition: handle.hpp:52
constexpr Handle INGRESS_ROOT
Definition: handle.hpp:93
constexpr Handle(const Handle &parent, uint16_t id)
Definition: handle.hpp:49