summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-03-28 21:06:37 +0100
committerDmitry Kozlov <xeb@mail.ru>2014-04-01 06:48:02 +0400
commit8cea2461960a56205b839994b3db0c9c8f09f856 (patch)
treee6a5df46fe94fd1d8c56cab4c1fb987c6e23c80f
parent0293d2c800f6e22536b82c0c0c2a5f73e9c5d01a (diff)
downloadaccel-ppp-8cea2461960a56205b839994b3db0c9c8f09f856.tar.gz
accel-ppp-8cea2461960a56205b839994b3db0c9c8f09f856.zip
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 <g.nault@alphalink.fr>
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c4
1 files changed, 3 insertions, 1 deletions
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)