aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-infiniband.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-05-03 17:58:22 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-05-03 17:58:22 +0000
commite1ba9e371b817fdd575a0a3c6f6005cc7bdfe2d6 (patch)
tree03a722d0b4c6b5bc93d95320a2e88dbccacf7f5a /epan/dissectors/packet-infiniband.h
parent15d860553aa44de1ab904d076cf7255d82cfc878 (diff)
This patch is submitted on behalf of Mellanox Technologies:
This patch fixes a bug in Infiniband dissection where the offset was incorrectly incremented in some cases leading to attempt to read past the end of the tvb and a MALFORMED-PACKET error being issued. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4738 svn path=/trunk/; revision=32645
Diffstat (limited to 'epan/dissectors/packet-infiniband.h')
-rw-r--r--epan/dissectors/packet-infiniband.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-infiniband.h b/epan/dissectors/packet-infiniband.h
index b03a947afd..53099d73d4 100644
--- a/epan/dissectors/packet-infiniband.h
+++ b/epan/dissectors/packet-infiniband.h
@@ -1320,4 +1320,6 @@ static guint32 opCode_PAYLD[] = {
* RC_ACKNOWLEDGE
* }; */
+#define MAD_DATA_SIZE 232 /* size of data field a MAD payload carries */
+
#endif