diff options
| author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-07-22 12:03:58 +0000 |
|---|---|---|
| committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-07-22 12:03:58 +0000 |
| commit | 66da78b4bb37dd4efff797bd0d41bd055dc418a3 (patch) | |
| tree | 75d150e3e94b72ec69f6bcdff570c9256c6b455f /src/charon/plugins/stroke | |
| parent | c3967e779ef6e05802d31b16cd1109f51c8177e6 (diff) | |
| download | strongswan-66da78b4bb37dd4efff797bd0d41bd055dc418a3.tar.bz2 strongswan-66da78b4bb37dd4efff797bd0d41bd055dc418a3.tar.xz | |
ipsec status lists IPCOMP CPIs
Diffstat (limited to 'src/charon/plugins/stroke')
| -rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c index 138e24e93..8f67b2c91 100644 --- a/src/charon/plugins/stroke/stroke_list.c +++ b/src/charon/plugins/stroke/stroke_list.c @@ -127,11 +127,21 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all) if (child_sa->get_state(child_sa) == CHILD_INSTALLED) { + u_int16_t my_cpi = child_sa->get_cpi(child_sa, TRUE); + u_int16_t other_cpi = child_sa->get_cpi(child_sa, FALSE); + fprintf(out, ", %N SPIs: %.8x_i %.8x_o", protocol_id_names, child_sa->get_protocol(child_sa), ntohl(child_sa->get_spi(child_sa, TRUE)), ntohl(child_sa->get_spi(child_sa, FALSE))); - + + /* Is IPcomp installed ? */ + if (my_cpi && other_cpi) + { + fprintf(out, ", IPCOMP CPIs: %.4x_i %.4x_o", + ntohs(my_cpi), ntohs(other_cpi)); + } + if (all) { fprintf(out, "\n%12s{%d}: ", child_sa->get_name(child_sa), |
