From Richard Kuemmel via http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1430 : fix length mask.
svn path=/trunk/; revision=24459
This commit is contained in:
parent
1efbef8ef4
commit
74905320f8
|
@ -450,7 +450,7 @@ static void dissect_ecat_datagram(tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
init_EcParserHDR(&ecHdr, tvb, suboffset);
|
||||
|
||||
subsize = get_cmd_len(&ecHdr);
|
||||
len = ecHdr.len&0x7fff;
|
||||
len = ecHdr.len&0x07ff;
|
||||
|
||||
if ( len >= sizeof(ETHERCAT_MBOX_HEADER_LEN) &&
|
||||
(ecHdr.cmd==EC_CMD_TYPE_FPWR || ecHdr.cmd==EC_CMD_TYPE_FPRD || ecHdr.cmd==EC_CMD_TYPE_APWR || ecHdr.cmd==EC_CMD_TYPE_APRD) &&
|
||||
|
|
Loading…
Reference in New Issue