Skip to main content

Module budget

Module budget 

Source
Expand description

Pre-authentication amplification budget.

Unauthenticated discovery and handshake bytes/work are charged before neighbor state or reassembly buffers are occupied. Excess is QdnfError::BudgetExhausted, not a larger table.

Structs§

PreAuthBudget

Constants§

MAX_UNAUTH_BYTES
Default unauthenticated byte cap (a few beacons / cookies, not a flood).
MAX_UNAUTH_WORK
Default unauthenticated work units (one HMAC / beacon decode each).

Functions§

admit_unauthenticated
Admit an unauthenticated frame: charge first, then the caller may copy.