From: bodea Date: Thu, 15 Dec 2005 14:18:16 +0000 (+0000) Subject: reduce logging of LCP EchoReply packets X-Git-Tag: release_2_1_15~3 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/e68cca06cfa3fe30e85ed4b5135e2671db30f81b?ds=inline;hp=e4ea4838f832e5054593b86aae57e692f7864622 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 a01c2c0..349f388 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)