diff options
| author | hannes <hannes> | 2005-01-25 09:59:40 +0000 |
|---|---|---|
| committer | hannes <hannes> | 2005-01-25 09:59:40 +0000 |
| commit | 04eb6a7629e32b0738654ecbea4dc576aa2a1ab3 (patch) | |
| tree | dcd6a874dce2d66797688edcbd9de3425728fd93 /print-juniper.c | |
| parent | f92053e7c4470b3566b77c0fe0a21b98d5c68ecd (diff) | |
| download | tcpdump-04eb6a7629e32b0738654ecbea4dc576aa2a1ab3.tar.gz | |
fix the ATM1 PIC OAM cell dissecting
Diffstat (limited to 'print-juniper.c')
| -rw-r--r-- | print-juniper.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/print-juniper.c b/print-juniper.c index e806eff2..5be4adee 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -15,7 +15,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.4 2005-01-24 03:27:26 guy 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,9 +80,7 @@ juniper_atm1_print(const struct pcap_pkthdr *h, register const u_char *p) length-=4; caplen-=4; - if (cookie1 & 0x80000000) { /* OAM cell ? */ - /* XXX - at least some packets are mis-identified as OAM - cells by this test */ + if ((cookie1 >> 24) == 0x80) { /* OAM cell ? */ oam_print(p,length); return 0; } |
