]> The Tcpdump Group git mirrors - tcpdump/commitdiff
wrong offset for functype calculation
authorhannes <hannes>
Wed, 18 May 2005 20:24:04 +0000 (20:24 +0000)
committerhannes <hannes>
Wed, 18 May 2005 20:24:04 +0000 (20:24 +0000)
print-atm.c

index 136b99fc787a65e8bb9d489be78b87f3de0aa588..110d3881f16015d3c2c4434634247555896687ee 100644 (file)
@@ -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.39 2005-05-18 20:24:04 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;