More text

This commit is contained in:
Florian Hoss 2022-07-20 15:13:36 +02:00
parent 92efceb034
commit e2cb500f97
2 changed files with 15 additions and 5 deletions

View file

@ -1,6 +1,6 @@
\section{ESP Storage}
\section{Storage}
To store the firewall rules there will be a class to handle storing and retrieving of the currently active rules. For each board there is a library available that will handle most of the work for us.
To store the firewall rules there will be a class to handle storing and retrieving of the currently active rules. For each board there is a library available that will handle most of the work.
\subsection{esp8266}
@ -26,3 +26,7 @@ To use the individual library with the firewall rules the firewall can be extend
void store_all_firewall_rules(firewall_rule_t *rule_head);
void store_firewall_rule(firewall_rule_t *rule_ptr);
\end{lstlisting}
\subsection{Space Allocation}
Each rule will get exactly the space it needs (\verb|firewall_rule_t|). Therefore a maximum of rules of \textbf{15} is specified in the constructor of the class. At the lowest storage space, there will be 8 bit for the current amount of rules to keep track how many rules need to be restored at power up.