Record in the program-wide table. More...
#include <mitigator_bpf.h>
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().