summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Burman <yanb@mellanox.com>2014-07-08 16:45:50 +0300
committerAnders Broman <a.broman58@gmail.com>2014-07-08 15:18:17 +0000
commit17872b57e96ab056c0585591b8940d3206711c8f (patch)
treed16a4d87d46649a959f336b1f5fdb312dd1210d5
parentac52c06038d919b94e77c7d0c5bdb1e3e659815c (diff)
downloadwireshark-17872b57e96ab056c0585591b8940d3206711c8f.tar.gz
Fix setting PT_IBQP type
Without this patch, pinfo->ptype is PT_UNKNOWN Change-Id: Ia15b5115f874d0c9ff69be11ed7ee3dac1fadbd5 Signed-off-by: Yan Burman <yanb@mellanox.com> Reviewed-on: https://code.wireshark.org/review/2941 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-infiniband.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c
index 0cd39cec12..4aee7b2709 100644
--- a/epan/dissectors/packet-infiniband.c
+++ b/epan/dissectors/packet-infiniband.c
@@ -1540,11 +1540,7 @@ dissect_infiniband_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g
pinfo->srcport = pinfo->destport = 0xffffffff; /* set the src/dest QPN to something impossible instead of the default 0,
so we don't mistake it for a MAD. (QP is only 24bit, so can't be 0xffffffff)*/
- /* add any code that should only run the first time the packet is dissected here: */
- if (!pinfo->fd->flags.visited)
- {
- pinfo->ptype = PT_IBQP; /* set the port-type for this packet to be Infiniband QP number */
- }
+ pinfo->ptype = PT_IBQP; /* set the port-type for this packet to be Infiniband QP number */
/* Mark the Packet type as Infiniband in the wireshark UI */
/* Clear other columns */