17 #ifndef __LINUX_ROUTING_FILTER_BASIC_HPP__ 18 #define __LINUX_ROUTING_FILTER_BASIC_HPP__ 36 #define ETH_P_ALL 0x0003 39 #define ETH_P_ARP 0x0806 64 const std::string& link,
75 const std::string& link,
89 const std::string& link,
103 const std::string& link,
115 const std::string& link,
125 const std::string& link,
134 #endif // __LINUX_ROUTING_FILTER_BASIC_HPP__ Definition: option.hpp:29
Try< bool > update(const std::string &link, const Handle &parent, uint16_t protocol, const action::Mirror &mirror)
Definition: handle.hpp:38
Try< bool > exists(const std::string &link, const Handle &parent, uint16_t protocol)
Future< Nothing > redirect(int_fd from, Option< int_fd > to, size_t chunk=4096, const std::vector< lambda::function< void(const std::string &)>> &hooks={})
Redirect output from the 'from' file descriptor to the 'to' file descriptor (or /dev/null if 'to' is ...
Definition: action.hpp:41
Classifier(uint16_t _protocol)
Definition: basic.hpp:49
Try< bool > create(const std::string &link, const Handle &parent, uint16_t protocol, const Option< Priority > &priority, const Option< Handle > &classid)
uint16_t protocol
Definition: basic.hpp:57
bool operator==(const Classifier &that) const
Definition: basic.hpp:52
Definition: diagnosis.hpp:30
Try< uint32_t > classid(const std::string &hierarchy, const std::string &cgroup)
Definition: action.hpp:54
void filter(Filter *filter)