diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-09-20 17:29:20 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-09-20 17:29:20 +0000 |
commit | b97970cf2c8f86d4dada1b82fc0fef005b48c6a0 (patch) | |
tree | bb740e93b9c12969bf2df9e40031cf16589e9b6f /sbin/ipsecctl/ike.c | |
parent | ee62390afe00f47f4da8a2fbc68c4e8153588158 (diff) |
add a "Connection=..." entry for active connections
Diffstat (limited to 'sbin/ipsecctl/ike.c')
-rw-r--r-- | sbin/ipsecctl/ike.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c index 72100ecba9a..9f5b530907e 100644 --- a/sbin/ipsecctl/ike.c +++ b/sbin/ipsecctl/ike.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike.c,v 1.1 2005/08/22 17:26:46 hshoexer Exp $ */ +/* $OpenBSD: ike.c,v 1.2 2005/09/20 17:29:19 hshoexer Exp $ */ /* * Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -285,6 +285,8 @@ ike_connect(u_int8_t mode, struct ipsec_addr *src, struct ipsec_addr *dst, { switch (mode) { case IKE_ACTIVE: + fprintf(fd, ADD "[Phase 2]:Connections=IPsec-%s-%s\n", + src->name, dst->name); fprintf(fd, "t IPsec-%s-%s\n", src->name, dst->name); fprintf(fd, "c IPsec-%s-%s\n", src->name, dst->name); break; |