diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-24 21:56:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-24 21:56:24 +0000 |
commit | de51ae65a6c060f2e487f9c185e1cedecf01ad80 (patch) | |
tree | d34a4622c83654eae5727a037b9253acea7d560a /packet-isl.c | |
parent | a9ef5b897909fa98dcb8f3534b11a5bf990346f7 (diff) |
The CRC is at the end of the frame, not at the end of the captured data
in the frame.
svn path=/trunk/; revision=1544
Diffstat (limited to 'packet-isl.c')
-rw-r--r-- | packet-isl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-isl.c b/packet-isl.c index 1ea22b37e1..2af7c3a0d3 100644 --- a/packet-isl.c +++ b/packet-isl.c @@ -1,7 +1,7 @@ /* packet-isl.c * Routines for Cisco ISL Ethernet header disassembly * - * $Id: packet-isl.c,v 1.3 2000/01/24 21:49:39 guy Exp $ + * $Id: packet-isl.c,v 1.4 2000/01/24 21:56:24 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -194,8 +194,8 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) pntohs(&pd[offset+22])); /* Now for the CRC, which is at the *end* of the packet. */ - if (BYTES_ARE_IN_FRAME(END_OF_FRAME - 4, 4)) { - proto_tree_add_item(fh_tree, hf_isl_crc, END_OF_FRAME - 4, 4, + if (BYTES_ARE_IN_FRAME(pi.len - 4, 4)) { + proto_tree_add_item(fh_tree, hf_isl_crc, pi.len - 4, 4, pntohl(&pd[END_OF_FRAME - 4])); } } |