summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-03-28 21:06:13 +0100
committerDmitry Kozlov <xeb@mail.ru>2014-04-01 06:48:02 +0400
commit0293d2c800f6e22536b82c0c0c2a5f73e9c5d01a (patch)
tree38478dbf1d0ae8d59eda803d67b64c5b1a54d8cb /accel-pppd/ctrl
parentd8fb53e618e6cc191c226ece0320116e293f3d84 (diff)
downloadaccel-ppp-0293d2c800f6e22536b82c0c0c2a5f73e9c5d01a.tar.gz
accel-ppp-0293d2c800f6e22536b82c0c0c2a5f73e9c5d01a.zip
l2tp: modify control channel name string
Use a syntax closer to the one used by log_session() in order to ease grep searching in log files. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index a4256276..255dd887 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -1526,8 +1526,11 @@ static int l2tp_session_connect(struct l2tp_sess_t *sess)
u_inet_ntoa(conn->peer_addr.sin_addr.s_addr, addr);
peer_port = ntohs(conn->peer_addr.sin_port);
- if (_asprintf(&sess->ppp.ses.chan_name, "%s:%i session %i",
- addr, peer_port, sess->peer_sid) < 0) {
+ if (_asprintf(&sess->ppp.ses.chan_name,
+ "%s:%hu session %hu-%hu, %hu-%hu",
+ addr, peer_port,
+ sess->paren_conn->tid, sess->paren_conn->peer_tid,
+ sess->sid, sess->peer_sid) < 0) {
log_session(log_error, sess, "impossible to connect session:"
" setting session's channel name failed\n");
goto out_err;