diff options
author | Sean O. Stalley <sean.stalley@intel.com> | 2014-06-06 15:53:27 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-07 17:42:03 +0000 |
commit | 78bc006082b98b272502c139107b3d634ca5c66f (patch) | |
tree | 6ef437817a0c77ff6530a258294852b340f09e17 /epan/dissectors/packet-mausb.c | |
parent | 0c62f06bc81481f4123d991a44fa566c1e241a07 (diff) |
Removed MAUSB DWORD-Aligned Length Check
Removed a check to see if the Packet is in DWORDs.
I misread section 6.2 of the spec, which states that all _headers_
mausb be DWORD-aligned, not all _packets_.
Change-Id: I11e320e6e2592930024ffa8143e4d8f470de13ba
Reviewed-on: https://code.wireshark.org/review/2013
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mausb.c')
-rw-r--r-- | epan/dissectors/packet-mausb.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mausb.c b/epan/dissectors/packet-mausb.c index 004e6da9ca..d739d63e2c 100644 --- a/epan/dissectors/packet-mausb.c +++ b/epan/dissectors/packet-mausb.c @@ -103,7 +103,6 @@ static int hf_mausb_payload = -1; /* expert info fields */ static expert_field ei_ep_handle_len = EI_INIT; static expert_field ei_len = EI_INIT; -static expert_field ei_len_dword = EI_INIT; static expert_field ei_mgmt_type_undef = EI_INIT; static expert_field ei_mgmt_type_spec_len_long = EI_INIT; static expert_field ei_mgmt_type_spec_len_short = EI_INIT; @@ -993,9 +992,6 @@ dissect_mausb_pkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (tvb_reported_length(tvb) != header.length) { expert_add_info(pinfo, len_field, &ei_len); } - if (0 != header.length % 4) { - expert_add_info(pinfo, len_field, &ei_len_dword); - } /* Is the next field a device handle or an endpoint handle */ @@ -1473,10 +1469,6 @@ proto_register_mausb(void) { "mausb.length", PI_MALFORMED, PI_ERROR, "Packet length field does not match size of packet", EXPFILL } }, - { &ei_len_dword, - { "mausb.length", PI_PROTOCOL, PI_WARN, - "Packet contains partial DWORD", EXPFILL } - }, { &ei_mgmt_type_undef, { "mausb.type", PI_PROTOCOL, PI_WARN, "Undefined managment packet type", EXPFILL } |