diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-03-28 21:06:37 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-04-01 06:48:02 +0400 |
commit | 8cea2461960a56205b839994b3db0c9c8f09f856 (patch) | |
tree | e6a5df46fe94fd1d8c56cab4c1fb987c6e23c80f /accel-pppd/ctrl | |
parent | 0293d2c800f6e22536b82c0c0c2a5f73e9c5d01a (diff) | |
download | accel-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>
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 4 |
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) |