diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-14 23:06:11 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-14 23:06:11 +0400 |
commit | 6efad618371915bf0b402f26117a02ad53aaeb20 (patch) | |
tree | bb42d0b5cf81cfc2622ef72dbe33b60c154e5190 /accel-pppd/ppp | |
parent | 64c36cc7dc0beac13c715bb5dedc697861c1badf (diff) | |
download | accel-ppp-6efad618371915bf0b402f26117a02ad53aaeb20.tar.gz accel-ppp-6efad618371915bf0b402f26117a02ad53aaeb20.zip |
cli: add 'comp' field to 'show sessions' to indicate compression/encryption method
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ccp_mppe.c | 4 | ||||
-rw-r--r-- | accel-pppd/ppp/ppp.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ccp_mppe.c b/accel-pppd/ppp/ccp_mppe.c index 90f9d838..388e2f6c 100644 --- a/accel-pppd/ppp/ccp_mppe.c +++ b/accel-pppd/ppp/ccp_mppe.c @@ -214,7 +214,9 @@ static int mppe_recv_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u } log_ppp_debug(" (mppe enabled)"); - } + ccp->ppp->comp = "mppe"; + } else + ccp->ppp->comp = NULL; return CCP_OPT_ACK; } diff --git a/accel-pppd/ppp/ppp.h b/accel-pppd/ppp/ppp.h index 18cb5c21..f831242f 100644 --- a/accel-pppd/ppp/ppp.h +++ b/accel-pppd/ppp/ppp.h @@ -114,6 +114,7 @@ struct ppp_t struct ipv6db_item_t *ipv6; char *ipv4_pool_name; char *ipv6_pool_name; + const char *comp; struct ppp_ctrl_t *ctrl; |