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

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

#include <mitigator_bpf.h>

Data Fields

TableValue value
 
Time update_time
 
uint32_t padding
 

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().

Field Documentation

◆ padding

uint32_t TableRecord::padding

Reserved, not used by API.

◆ update_time

Time TableRecord::update_time

Update time maintained by the system.

◆ value

TableValue TableRecord::value

User data.


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