From 8cea2461960a56205b839994b3db0c9c8f09f856 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Fri, 28 Mar 2014 21:06:37 +0100 Subject: l2tp: display control channel name upon apsession start Ease log file analysis by explicitely logging which L2TP control channel carries a given data channel (PPP). Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 255dd887..a6404781 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -1010,7 +1010,9 @@ static void apses_started(struct ap_session *apses) __sync_add_and_fetch(&stat_active, 1); sess->apses_state = APSTATE_STARTED; - log_ppp_info1("session started\n"); + log_ppp_info1("session started over l2tp session %hu-%hu, %hu-%hu\n", + sess->paren_conn->tid, sess->paren_conn->peer_tid, + sess->sid, sess->peer_sid); } static void apses_start(void *data) -- cgit v1.2.3