some implementations do provide a CRC in the FCIP frame so skip the
'test for zero' check. the heuristics are probably strong enough even without this check. svn path=/trunk/; revision=14796
This commit is contained in:
parent
06067ecc7c
commit
77823f61bc
|
@ -173,7 +173,7 @@ get_next_fcip_header_offset (tvbuff_t *tvb, packet_info *pinfo, gint offset)
|
|||
* c) Replication of encapsulation word 0 in word 1 (1 test);
|
||||
* d) Reserved field and its ones complement (2 tests);
|
||||
* e) Flags field and its ones complement (2 tests);
|
||||
* f) CRC field is equal to zero (1 test);
|
||||
* f) CRC field is equal to zero (1 test); (DONT DO THIS TEST!)
|
||||
* g) SOF fields and ones complement fields (4 tests);
|
||||
* h) Format and values of FC header (1 test);
|
||||
* i) CRC of FC Frame (2 tests);
|
||||
|
@ -268,14 +268,12 @@ NXT_BYTE: while (bytes_remaining) {
|
|||
}
|
||||
|
||||
/* Test e */
|
||||
|
||||
/* Test f */
|
||||
if (tvb_get_ntohl (tvb, offset+24)) {
|
||||
/* Failed */
|
||||
offset++;
|
||||
bytes_remaining--;
|
||||
goto NXT_BYTE;
|
||||
}
|
||||
|
||||
|
||||
/* Test f
|
||||
* We dont test this since some implementations actually provide
|
||||
* a CRC here.
|
||||
*/
|
||||
|
||||
if (bytes_remaining >= (frame_len)) {
|
||||
if (tvb_bytes_exist (tvb, offset+frame_len, 8)) {
|
||||
|
|
Loading…
Reference in New Issue