From: hannes Date: Wed, 18 May 2005 20:25:47 +0000 (+0000) Subject: wrong offset for functype calculation X-Git-Tag: tcpdump-3.9.1~49 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/2a9f4573968c6771b928a34a7de536897b2563c7?ds=inline wrong offset for functype calculation --- diff --git a/print-atm.c b/print-atm.c index 136b99fc..e0df2615 100644 --- a/print-atm.c +++ b/print-atm.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.38 2005-01-19 16:46:27 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.38.2.1 2005-05-18 20:25:47 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -294,7 +294,7 @@ oam_print (const u_char *p, u_int length) { cell_header = EXTRACT_32BITS(p); cell_type = ((*(p+4))>>4) & 0x0f; - func_type = *(p) & 0x0f; + func_type = *(p+4) & 0x0f; vpi = (cell_header>>20)&0xff; vci = (cell_header>>4)&0xffff;