net::/ipv4:: namespace, mac/addr filter framework with default filters, dlog on registry overflow
This commit is contained in:
@@ -64,4 +64,7 @@ bool addressed_to_us(ip4_addr dst);
|
||||
using protocol_handler = void (*)(std::span<const uint8_t> frame, span_writer& tx);
|
||||
void register_protocol(uint8_t protocol, protocol_handler fn);
|
||||
|
||||
using addr_filter = bool (*)(const ip4_addr& dst);
|
||||
void register_addr_filter(addr_filter fn);
|
||||
|
||||
} // namespace ipv4
|
||||
|
||||
Reference in New Issue
Block a user