From bd5d85c0b4a139ffa6770edb3053b9436917548d Mon Sep 17 00:00:00 2001 From: calle Date: Fri, 6 Nov 1998 14:28:31 +0000 Subject: [PATCH] AVM-B1 d-channel trace level 2 (newer firmware) now running with isdnlog. --- isdnlog/isdnlog/processor.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/isdnlog/isdnlog/processor.c b/isdnlog/isdnlog/processor.c index 2e286681..d3b71ff5 100644 --- a/isdnlog/isdnlog/processor.c +++ b/isdnlog/isdnlog/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.30 1998/11/05 19:09:49 akool Exp $ +/* $Id: processor.c,v 1.31 1998/11/06 14:28:31 calle Exp $ * * ISDN accounting for isdn4linux. (log-module) * @@ -19,6 +19,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Log: processor.c,v $ + * Revision 1.31 1998/11/06 14:28:31 calle + * AVM-B1 d-channel trace level 2 (newer firmware) now running with isdnlog. + * * Revision 1.30 1998/11/05 19:09:49 akool * - Support for all the new L2 frames from HiSax 3.0d (RR, UA, SABME and * tei management) @@ -4147,6 +4150,13 @@ static void processctrl(int card, char *s) if (verbose & VERBOSE_CTRL) print_msg(PRT_LOG, "%s\n", s); + if (!memcmp(ps, "D2", 2)) { /* AVMB1 */ + if (firsttime) { + firsttime = 0; + print_msg (PRT_NORMAL, "(AVM B1 driver detected (D2))\n"); + } + memcpy(ps, "HEX: ", 5); + } if (!memcmp(ps, "HEX: ", 5)) { /* new HiSax Driver */ if (((verbose & VERBOSE_HEX) && !(verbose & VERBOSE_CTRL)) || stdoutput) @@ -4274,11 +4284,11 @@ static void processctrl(int card, char *s) ps += (tei == BROADCAST) ? 1 : 4; } - else if (!memcmp(ps, "D2", 2) || !memcmp(ps, "D3", 2)) { /* AVMB1 */ + else if (!memcmp(ps, "D3", 2)) { /* AVMB1 */ if (firsttime) { firsttime = 0; - print_msg (PRT_NORMAL, "(AVM B1 driver detected)\n"); + print_msg (PRT_NORMAL, "(AVM B1 driver detected (D3))\n"); } if (*(ps + 2) == '<') /* this is our "direction flag" */