diff options
author | Olivier Biot <obiot.ethereal@gmail.com> | 2004-05-05 06:55:09 +0000 |
---|---|---|
committer | Olivier Biot <obiot.ethereal@gmail.com> | 2004-05-05 06:55:09 +0000 |
commit | 659ac78357caef4ed2fd990b5e3347579ad0ef89 (patch) | |
tree | e9cc287460c04c21e5fbcef2781b307db757d5cd /epan/tvbuff.h | |
parent | ed22e7941fe188219ba2dbe55dea89a8bcf5048b (diff) | |
download | wireshark-659ac78357caef4ed2fd990b5e3347579ad0ef89.tar.gz wireshark-659ac78357caef4ed2fd990b5e3347579ad0ef89.tar.bz2 wireshark-659ac78357caef4ed2fd990b5e3347579ad0ef89.zip |
From Jerry Talkington:
- Helper functions for uncompressing compressed tvbuffers.
- Compressed content coding dissection in HTTP.
svn path=/trunk/; revision=10799
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index bf9715dc32..7fff54d325 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -9,7 +9,7 @@ * the data of a backing tvbuff, or can be a composite of * other tvbuffs. * - * $Id: tvbuff.h,v 1.41 2004/03/23 18:06:29 guy Exp $ + * $Id: tvbuff.h,v 1.42 2004/05/05 06:55:09 obiot Exp $ * * Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu> * @@ -513,6 +513,13 @@ extern gchar *tvb_bytes_to_str(tvbuff_t *tvb, gint offset, gint len); extern gint tvb_find_tvb(tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, gint haystack_offset); +/* + * Uncompresses a zlib compressed packet inside a tvbuff at offset with + * length comprlen. Returns an uncompressed tvbuffer if uncompression + * succeeded or NULL if uncompression failed. + */ +extern tvbuff_t* tvb_uncompress(tvbuff_t *tvb, int offset, int comprlen); + /************** END OF ACCESSORS ****************/ #endif /* __TVBUFF_H__ */ |