Update README.

This commit is contained in:
gamemann
2020-12-18 02:21:50 +00:00
parent 95c771c825
commit 68b9b0b124

View File

@@ -65,7 +65,7 @@ ICMP options exist in the main filter array and start with `icmp_`. Please see b
**Note** - 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** - 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 55 maximum filters. This is due to the BPF map's max entries limitation while using `BPF_MAP_TYPE_ARRAY`. I don't believe we'd be able to use a per-CPU map for this as well because if we do, I don't believe we'd be able to reliably read the filters within the XDP program. If you want more filters, you could try using a hash map (changing the filter map's type to `BPF_MAP_TYPE_HASH`), but keep in mind lookups on the filters will be slower. **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.
## Configuration Example ## Configuration Example
Here's an example of a config: Here's an example of a config: