From 7652be891c5d3b1cd305d3e32bce64f5e67134c7 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 21 Dec 2006 14:35:17 +0000 Subject: added support for transport mode and (experimental!) BEET mode support for the type=transport/tunnel parameter in charon --- src/starter/ipsec.conf.5 | 6 ++++-- src/starter/starterstroke.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/starter') diff --git a/src/starter/ipsec.conf.5 b/src/starter/ipsec.conf.5 index 981b8d33c..9ca2e6776 100644 --- a/src/starter/ipsec.conf.5 +++ b/src/starter/ipsec.conf.5 @@ -234,9 +234,11 @@ signifying that no IPsec processing should be done at all; signifying that packets should be discarded; and .BR reject , signifying that packets should be discarded and a diagnostic ICMP returned. -Charon currently supports only the +Charon currently supports only .BR tunnel -connection type. +and +.BR transport +connection types. .TP .B left (required) diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c index eff157add..41f67c891 100644 --- a/src/starter/starterstroke.c +++ b/src/starter/starterstroke.c @@ -194,6 +194,7 @@ int starter_stroke_add_conn(starter_conn_t *conn) msg.add_conn.name = push_string(&msg, connection_name(conn)); msg.add_conn.auth_method = (conn->policy & POLICY_PSK)? SHARED_KEY_MESSAGE_INTEGRITY_CODE : RSA_DIGITAL_SIGNATURE; + msg.add_conn.mode = (conn->policy & POLICY_TUNNEL) ? 1 : 0; if (conn->policy & POLICY_DONT_REKEY) { -- cgit v1.2.3