diff options
author | hannes <hannes> | 2005-11-24 07:42:53 +0000 |
---|---|---|
committer | hannes <hannes> | 2005-11-24 07:42:53 +0000 |
commit | 988611f8dffb0b6b0428136fa48b29568bddc35d (patch) | |
tree | a027ea38fa47d6350bfb9e3af7e03dd7e3a34c5f /print-chdlc.c | |
parent | 197c4f27c84ee817c3dea7bac5c53da8cac61361 (diff) | |
download | tcpdump-988611f8dffb0b6b0428136fa48b29568bddc35d.tar.gz |
avoid double printing of "unknown proto" message
Diffstat (limited to 'print-chdlc.c')
-rw-r--r-- | print-chdlc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/print-chdlc.c b/print-chdlc.c index 7354dc72..8de73748 100644 --- a/print-chdlc.c +++ b/print-chdlc.c @@ -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; } |