From 75f5e8b33a0d1c084bba35e838f993caf1cc169a Mon Sep 17 00:00:00 2001 From: Christian Deacon Date: Mon, 15 May 2023 18:51:52 +0000 Subject: [PATCH] Update README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d4b5012..60f4c33 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ ICMP options exist in the main filter array and start with `icmp_`. Please see b Everything besides the main `enabled` and `action` options within a filter are **not** required. This means you do not have to define them within your config. -**Note** - As of right now, you can specify up to 100 maximum filters. This is due to BPF's max jump limit within the while loop. +**Note** - As of right now, you can specify up to 90 maximum filters. This is due to BPF's limitations with complexity and jumps. If you want more than 90 filters, you may increase BPF limitations manually or with a patch. If you want to do this, please read [this](https://github.com/gamemann/XDP-Forwarding/tree/master/patches) README from my XDP Forwarding project. Afterwards, feel free to raise the `MAX_FILTERS` constant in the `src/xdpfw.h` [file](https://github.com/gamemann/XDP-Firewall/blob/master/src/xdpfw.h#L6) and then recompile the firewall. ## Configuration Example Here's an example of a config: