diff options
author | Francesco Fondelli <francesco.fondelli@gmail.com> | 2016-09-16 15:13:44 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-10-08 03:21:44 +0000 |
commit | b682bbd6ee5b93b45727c85293edce5ced9b337c (patch) | |
tree | 9c7693416ca3791be8d6e01319fe8c902cf53bd1 /epan/tvbuff.h | |
parent | 268841f3e00b7cf0f16c81dd2b3b952172130b8b (diff) |
add tvb_find_guint16() utility
Change-Id: I75c0165948325c2e50918706d8a821411761727b
Signed-off-by: Francesco Fondelli <francesco.fondelli@gmail.com>
Reviewed-on: https://code.wireshark.org/review/17734
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index c52e3b03f1..4ceb5a000e 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -497,6 +497,9 @@ WS_DLL_PUBLIC const guint8 *tvb_get_ptr(tvbuff_t *tvb, const gint offset, WS_DLL_PUBLIC gint tvb_find_guint8(tvbuff_t *tvb, const gint offset, const gint maxlength, const guint8 needle); +/** Same as tvb_find_guint8() with 16bit needle. */ +WS_DLL_PUBLIC gint tvb_find_guint16(tvbuff_t *tvb, const gint offset, + const gint maxlength, const guint16 needle); /** Find first occurrence of any of the needles of the pre-compiled pattern in * tvbuff, starting at offset. The passed in pattern must have been "compiled" |