From: Brendan O'Dea Date: Thu, 15 Dec 2005 14:18:16 +0000 (+0000) Subject: reduce logging of LCP EchoReply packets X-Git-Tag: 2.2.1-2fdn3.1~19^2^2~1^2~63 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/12d5aa7c656fda308803b72399eef9b86904d61c reduce logging of LCP EchoReply packets --- diff --git a/Changes b/Changes index 3f94f2f..e9cf0c2 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,6 @@ -* Wed Dec 14 2005 Brendan O'Dea 2.1.15 +* Fri Dec 16 2005 Brendan O'Dea 2.1.15 - Drop backtrace. +- Reduce logging of LCP EchoReply packets. * Fri Dec 9 2005 Brendan O'Dea 2.1.14 - Run PLUGIN_RADIUS_ACCOUNT for Start records. diff --git a/l2tpns.spec b/l2tpns.spec index cb380c1..60889c6 100644 --- a/l2tpns.spec +++ b/l2tpns.spec @@ -43,5 +43,5 @@ rm -rf %{buildroot} %attr(644,root,root) /usr/share/man/man[58]/* %changelog -* Wed Dec 14 2005 Brendan O'Dea 2.1.15-1 +* Fri Dec 16 2005 Brendan O'Dea 2.1.15-1 - 2.1.15 release, see /usr/share/doc/l2tpns-2.1.15/Changes diff --git a/ppp.c b/ppp.c index 9c98a3c..d6b5893 100644 --- a/ppp.c +++ b/ppp.c @@ -1,6 +1,6 @@ // L2TPNS PPP Stuff -char const *cvs_id_ppp = "$Id: ppp.c,v 1.89 2005-12-14 02:19:15 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.90 2005-12-15 14:18:16 bodea Exp $"; #include #include @@ -499,7 +499,9 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l) if (session[s].die) // going down... return; - LOG(*p == EchoReq ? 4 : 3, s, t, "LCP: recv %s\n", ppp_code(*p)); + LOG((*p == EchoReq || *p == EchoReply) ? 4 : 3, s, t, + "LCP: recv %s\n", ppp_code(*p)); + if (config->debug > 3) dumplcp(p, l); if (*p == ConfigAck)