diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-09 07:18:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-09 07:18:11 +0000 |
commit | 950e97c6d4810ea4aafc8f21b2c34dd0c6916684 (patch) | |
tree | b97e78488c65393010c4b31c7d6b6fa27fd02a40 /plugins | |
parent | c7d03ae2dad14325d9c956f1498aa1e3ce294ecb (diff) |
The PDU length is the length field minus the length of the EHDR *minus
the length of the HCS*.
svn path=/trunk/; revision=8427
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/docsis/packet-docsis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/docsis/packet-docsis.c b/plugins/docsis/packet-docsis.c index ef328cf75d..17b51f94dc 100644 --- a/plugins/docsis/packet-docsis.c +++ b/plugins/docsis/packet-docsis.c @@ -2,7 +2,7 @@ * Routines for docsis dissection * Copyright 2002, Anand V. Narwani <anand[AT]narwani.org> * - * $Id: packet-docsis.c,v 1.14 2003/09/09 05:49:15 guy Exp $ + * $Id: packet-docsis.c,v 1.15 2003/09/09 07:18:11 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -360,7 +360,7 @@ dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) else { framelen = 6 + len_sid; - pdulen = len_sid - ((guint16) (mac_parm & 0xFF)); + pdulen = len_sid - (mac_parm + 2); } /* if this is a concatenated frame setup the length of the concatenated |