Changeset 4661

Show
Ignore:
Timestamp:
11/16/08 22:19:17 (2 months ago)
Author:
andreas
Message:

show TRANSPORT_PROXY mode in ipsec status

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/charon/plugins/stroke/stroke_list.c

    r4576 r4661  
    138138    u_int32_t use_in, use_out; 
    139139    proposal_t *proposal; 
    140      
    141     fprintf(out, "%12s{%d}:  %N, %N",  
     140    child_cfg_t *config = child_sa->get_config(child_sa); 
     141     
     142    fprintf(out, "%12s{%d}:  %N, %N%s",  
    142143            child_sa->get_name(child_sa), child_sa->get_reqid(child_sa), 
    143144            child_sa_state_names, child_sa->get_state(child_sa), 
    144             ipsec_mode_names, child_sa->get_mode(child_sa)); 
     145            ipsec_mode_names, child_sa->get_mode(child_sa), 
     146            config->use_proxy_mode(config) ? "_PROXY" : ""); 
    145147     
    146148    if (child_sa->get_state(child_sa) == CHILD_INSTALLED) 
     
    148150        fprintf(out, ", %N%s SPIs: %.8x_i %.8x_o", 
    149151                protocol_id_names, child_sa->get_protocol(child_sa), 
    150                 child_sa->has_encap(child_sa) ? " in UDP": "", 
     152                child_sa->has_encap(child_sa) ? " in UDP" : "", 
    151153                ntohl(child_sa->get_spi(child_sa, TRUE)), 
    152154                ntohl(child_sa->get_spi(child_sa, FALSE)));