diff options
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 3722915..bdfd9ff 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -705,12 +705,6 @@ static struct l2tp_conn_t *l2tp_tunnel_alloc(struct l2tp_serv_t *serv, conn->tunnel_fd = -1; - if (conf_verbose) { - log_switch(&conn->ctx, NULL); - log_ppp_info2("recv "); - l2tp_packet_print(pack, log_ppp_info2); - } - conn->sessions = NULL; conn->sess_count = 0; @@ -1142,6 +1136,12 @@ static int l2tp_recv_SCCRQ(struct l2tp_serv_t *serv, struct l2tp_packet_t *pack, if (conn == NULL) return -1; + if (conf_verbose) { + log_switch(&conn->ctx, NULL); + log_ppp_info2("recv "); + l2tp_packet_print(pack, log_ppp_info2); + } + conn->peer_tid = assigned_tid->val.uint16; if (l2tp_tunnel_start(conn, (triton_event_func)l2tp_send_SCCRP, conn) < 0) { |