When receiving a stick-table message header as two first bytes of a TCP segement
we consider this as being part of a peer protocol session.
proto_strlen = strlen(HAPPP_PROTOCOL);
+ if (tvb_captured_length(tvb) < 2)
+ return FALSE;
+
+ if (tvb_get_guint8(tvb, 0) == PEER_MSG_CLASS_STICKTABLE &&
+ tvb_get_guint8(tvb, 1) >= PEER_MSG_STKT_UPDATE &&
+ tvb_get_guint8(tvb, 1) <= PEER_MSG_STKT_ACK)
+ goto found;
+
if (tvb_captured_length(tvb) < proto_strlen + 1)
return FALSE;
tvb_get_guint8(tvb, proto_strlen) != ' ')
return FALSE;
+ found:
conversation = find_or_create_conversation(pinfo);
if (!conversation)
return FALSE;