nat: add ipfix rate-limiter for nat44-ed, nat44-ei and nat64 76/39576/3
authorVladislav Grishenko <themiron@yandex-team.ru>
Thu, 14 Sep 2023 17:14:38 +0000 (22:14 +0500)
committerOle Tr�an <otroan@employees.org>
Mon, 16 Oct 2023 13:13:00 +0000 (13:13 +0000)
commitda34f4add5f141d58670d81d53553986e9a472b4
treeda22aadb4d979440daf735ec8640f87a204fef55
parentff344a98afd2057cd0df312a9d7277a95853fd0a
nat: add ipfix rate-limiter for nat44-ed, nat44-ei and nat64

This prevents ipfix flood with the repeating events and allows
to enable nat64 max_session and max_bibs events. Also fix wrong
endian for det44 and nat64 ipfix tests, now should be fine with
extended tests enabled.
Max session per user event @ nat44-ei requires more precise rate
limiter per user address, probably with sparse vec, not handled.

Type: improvement
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: Ib20cc1ee3f81e7acc88a415fe83b4e2deae2a836
src/plugins/nat/lib/ipfix_logging.c
src/plugins/nat/lib/ipfix_logging.h
src/plugins/nat/nat64/nat64_db.c
test/test_det44.py
test/test_nat44_ei.py
test/test_nat64.py