Fix to WTP retransmission indicator dissection, from Olivier Biot.

svn path=/trunk/; revision=3316
This commit is contained in:
Guy Harris 2001-04-17 18:57:10 +00:00
parent 4acaa8b961
commit 4694e6b0d8
3 changed files with 22 additions and 3 deletions

View File

@ -567,6 +567,14 @@ Hannes Gredler <hannes@juniper.net> {
Many ISIS enhancements
}
Inoue <inoue@ainet.or.jp> {
Preference dialog crash fix
}
Olivier Biot <Olivier.Biot@siemens.atea.be> {
Fix to WTP retransmission indicator dissection
}
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to
give his permission to use his version of snprintf.c.

View File

@ -1086,6 +1086,8 @@ B<http://www.ethereal.com>.
Hartmut Mueller <hartmut@wendolene.ping.de>
Michal Melerowicz <Michal.Melerowicz@nokia.com>
Hannes Gredler <hannes@juniper.net>
Inoue <inoue@ainet.or.jp>
Olivier Biot <Olivier.Biot@siemens.atea.be>
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to give his
permission to use his version of snprintf.c.

View File

@ -2,7 +2,7 @@
*
* Routines to dissect WTP component of WAP traffic.
*
* $Id: packet-wtp.c,v 1.12 2001/03/23 20:11:46 guy Exp $
* $Id: packet-wtp.c,v 1.13 2001/04/17 18:57:09 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -458,8 +458,17 @@ static char transaction_class(unsigned char octet)
static char retransmission_indicator(unsigned char octet)
{
char ch = (octet >> 0) & 0x01; /* ......,X */
return ch;
switch ( pdu_type(octet) ) {
case INVOKE:
case RESULT:
case ACK:
case SEGMENTED_INVOKE:
case SEGMENTED_RESULT:
case NEGATIVE_ACK:
return (octet >> 0) & 0x01; /* ......,X */
default:
return 0;
}
};
/* Register the protocol with Ethereal */