diff options
Diffstat (limited to 'doc/README.dissector')
-rw-r--r-- | doc/README.dissector | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/README.dissector b/doc/README.dissector index 6753483e75..197a985253 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -41,6 +41,7 @@ Laurent Deniel <laurent.deniel[AT]free.fr> Gerald Combs <gerald[AT]wireshark.org> Guy Harris <guy[AT]alum.mit.edu> Ulf Lamping <ulf.lamping[AT]web.de> +Barbu Paul - Gheorghe <barbu.paul.gheorghe[AT]gmail.com> 1. Setting up your protocol dissector code. @@ -405,6 +406,16 @@ Pointer-retrieval: */ guint8* tvb_get_ptr(tvbuff_t *tvb, gint offset, gint length); +Length query: +Get amount of captured data in the buffer (which is *NOT* necessarily the +length of the packet). You probably want tvb_reported_length instead: + + guint tvb_captured_length(const tvbuff_t *tvb); + +Get reported length of buffer: + + guint tvb_reported_length(const tvbuff_t *tvb); + 1.4 Functions to handle columns in the traffic summary window. @@ -2695,7 +2706,7 @@ upon the conversation index and values inside the request packets. NOTE: This sections assumes that all information is available to create a complete conversation, source port/address and destination port/address. If either the destination port or - address is know, see section 2.4 Dynamic server port dissector + address is known, see section 2.4 Dynamic server port dissector registration. For protocols that negotiate a secondary port connection, for example |