ipsec-types: Add new mode for IP-TFS

Added at the end as the numeric mode is e.g. used in SQL databases.
This commit is contained in:
Tobias Brunner
2025-05-28 16:37:27 +02:00
parent 72e3b7dcc8
commit 419528f2ac
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -16,12 +16,13 @@
#include "ipsec_types.h" #include "ipsec_types.h"
ENUM(ipsec_mode_names, MODE_TRANSPORT, MODE_DROP, ENUM(ipsec_mode_names, MODE_TRANSPORT, MODE_IPTFS,
"TRANSPORT", "TRANSPORT",
"TUNNEL", "TUNNEL",
"BEET", "BEET",
"PASS", "PASS",
"DROP" "DROP",
"IPTFS",
); );
ENUM(policy_dir_names, POLICY_IN, POLICY_FWD, ENUM(policy_dir_names, POLICY_IN, POLICY_FWD,
+3 -1
View File
@@ -51,7 +51,9 @@ enum ipsec_mode_t {
/** passthrough policy for traffic without an IPsec SA */ /** passthrough policy for traffic without an IPsec SA */
MODE_PASS, MODE_PASS,
/** drop policy discarding traffic */ /** drop policy discarding traffic */
MODE_DROP MODE_DROP,
/** IP-TFS mode, tunnel mode with aggregation/fragmentation */
MODE_IPTFS,
}; };
/** /**