From e68cca06cfa3fe30e85ed4b5135e2671db30f81b Mon Sep 17 00:00:00 2001 From: bodea Date: Thu, 15 Dec 2005 14:18:16 +0000 Subject: [PATCH] reduce logging of LCP EchoReply packets --- Changes | 3 ++- l2tpns.spec | 2 +- ppp.c | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) 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) -- 2.20.1