basic function to check client

This commit is contained in:
Florian Hoss 2022-05-03 20:40:42 +02:00
parent dfb92d6bf9
commit 8e29479aea
3 changed files with 19 additions and 3 deletions

View file

@ -3,6 +3,7 @@
#include "Utils.hpp"
#include "Storage.hpp"
#include "WiFiClient.h"
namespace fw
{
@ -18,6 +19,8 @@ namespace fw
firewall_rule_t *get_rule_from_firewall(const uint8_t key);
ok_t delete_rule_from_firewall(const uint8_t key);
bool is_client_allowed(WiFiClient client);
protected:
uint8_t amount_of_rules = 0;
firewall_rule_t *rule_head = NULL;