]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-juniper.c
fix the ATM1 PIC OAM cell dissecting
[tcpdump] / print-juniper.c
index 349caa4ccb548fb506f0595891cbe8226b49f292..5be4adeea0da5e3c0000ca5cdfb1563e3b78b3cc 100644 (file)
@@ -15,7 +15,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.3 2004-10-28 09:36:16 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.5 2005-01-25 09:59:40 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -80,8 +80,9 @@ juniper_atm1_print(const struct pcap_pkthdr *h, register const u_char *p)
         length-=4;
         caplen-=4;
 
-        if (cookie1 & 0x80000000) { /* OAM cell ? */
+        if ((cookie1 >> 24) == 0x80) { /* OAM cell ? */
             oam_print(p,length);
+            return 0;
         }
 
         if (EXTRACT_24BITS(p) == 0xfefe03 || /* NLPID encaps ? */