diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-10-15 18:19:57 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-10-15 18:19:57 +0000 |
commit | 9c3be9d5aef912c8cad33cf414dff1b2c8ef9d8f (patch) | |
tree | d188801bf4500a5daf56872b4ae9cca4617bf21d /epan/dissectors/packet-clique-rm.c | |
parent | 4ae53bc208154b729e97da181ae4c73958a44a69 (diff) |
Try to optimize heuristics slightly.
svn path=/trunk/; revision=52624
Diffstat (limited to 'epan/dissectors/packet-clique-rm.c')
-rw-r--r-- | epan/dissectors/packet-clique-rm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-clique-rm.c b/epan/dissectors/packet-clique-rm.c index 1fd0da1df1..cba3d0cc82 100644 --- a/epan/dissectors/packet-clique-rm.c +++ b/epan/dissectors/packet-clique-rm.c @@ -276,11 +276,14 @@ dissect_clique_rm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat guint8 version; guint8 type; int offset = 0; + guint64 qword; if (tvb_length(tvb) < 12) return FALSE; - if (tvb_strneql(tvb, offset, "Clique", 6)) + qword = tvb_get_ntoh48(tvb,0); + /* ASCII str for 'Clique' = 0x436c69717565 */ + if(qword != G_GINT64_CONSTANT (0x436c69717565U)) return FALSE; offset += 6; |