aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-04 13:14:08 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-04 21:14:42 +0000
commitcdf9943717c9bb1cba7af381507b295b384e800b (patch)
tree183f70fcbc06d492130997c9fe559b532d83b44a /epan/proto.h
parent849d87af1cb9f3e19222e452fd76483244375a03 (diff)
Don't walk the entire protocol tree to extract the value of one field.
Instead, prime the epan_dissect_t's tree to look for rtp.ssrc, and extract that value with proto_get_finfo_ptr_array(). Also, have the filter used to check whether the packet is a candidate for RTP analysis to check for RTPv2 (and add a check for IPv4 or IPv6 back to the Qt version), and get rid of an unnecessary extra level of indirection for that string. In the Qt version, if findStreams() set the error string, don't overwrite it with a "No streams found." indication, and fix error handling for the "filter didn't compile" case. Change-Id: I09d0ea37ccd4806d99e3b6394f2a8a376e974705 Reviewed-on: https://code.wireshark.org/review/13045 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 8277cde828..51e4dc0bac 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2088,7 +2088,7 @@ WS_DLL_PUBLIC header_field_info* proto_registrar_get_byname(const char *field_na
/** Get the header_field id based upon a field name.
@param field_name the field name to search for
@return the field id for the registered item */
-extern int proto_registrar_get_id_byname(const char *field_name);
+WS_DLL_PUBLIC int proto_registrar_get_id_byname(const char *field_name);
/** Get enum ftenum FT_ of registered header_field number n.
@param n item # n (0-indexed)