Mitigator BPF API
Functions and types programs can use to filter packets.
TableRecord Struct Reference

Record in the program-wide table. More...

#include <mitigator_bpf.h>

Detailed Description

Record in the program-wide table.

Each program has a table to store 1M records of 64-bit data by 64-bit keys. This table is called basic table, for there is also an extended table.

Key 0 is reserved and forbidden. Values are loaded and stored atomically.

Last update time is maintained for each record and stale records are purged, so there is no removal operation. To keep a record in the table, call table_get() or table_put().


The documentation for this struct was generated from the following file: