]> git.ipfire.org Git - thirdparty/suricata.git/commit
ike: log ikev1 tx fields instead of state ones
authorPhilippe Antoine <pantoine@oisf.net>
Sun, 24 Jul 2022 20:18:29 +0000 (22:18 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 9 Aug 2022 08:52:10 +0000 (10:52 +0200)
commit3de735ae7020da4e9ea42f12676609a9ec637d1a
treeb17d4ecbf9c3fc103a9cd7abc113813ab0ab23ac
parentd0171d7418a5e7bd1c52a08190d19a88595e9700
ike: log ikev1 tx fields instead of state ones

As state fields can grow abitrarily, and this can lead to DOS
by quadratic complexity (CPU time and disk space)

Adds a direction field to retain all the information in the
transaction.

Also checks array vendor_ids had at least one element before
logging it.

Ticket: #5455
rust/src/ike/ike.rs
rust/src/ike/ikev1.rs
rust/src/ike/logger.rs