avoid double printing of "unknown proto" message

This commit is contained in:
hannes 2005-11-24 07:42:53 +00:00
parent 197c4f27c8
commit 988611f8df

View File

@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.41 2005-11-04 18:30:21 hannes Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.42 2005-11-24 07:42:53 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -110,7 +110,8 @@ chdlc_print(register const u_char *p, u_int length) {
isoclns_print(p+CHDLC_HDRLEN, length, length);
break;
default:
printf("unknown CHDLC protocol (0x%04x)", proto);
if (!eflag)
printf("unknown CHDLC protocol (0x%04x)", proto);
break;
}