aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-13 07:19:37 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-13 07:19:37 +0000
commit401c68ff147a95f12cd0386ed37894b410a1fc05 (patch)
treed3b2949261e9970321c2a8fac4be3d2baaeb63c1 /packet-ipp.c
parent25a7934bd5cd4316c41286871b1771d9160b9da1 (diff)
Move "bytes_to_str()" to "strutil.c" from "packet.c" - it's just a
string formatter, like "format_text()", and, as "tvbuff.c" now calls it (*vide infra*), we don't want to have to make "tvbuff.c" drag "packet.h" in just to declare "bytes_to_str()". It's now declared in "strutil.h", so include it in modules that use "bytes_to_str()" and weren't already including it. Add a "tvb_bytes_to_str()" wrapper that calls "tvb_get_ptr()" to get a pointer to a chunk of N bytes at a given offset in a tvbuff and then hands that chunk to "bytes_to_str()". Convert the code that was doing that to use "tvb_bytes_to_str()" instead (which caught what I suspect is a bug in the Q.2931 dissector, where it was handing an offset of 0 to "tvb_get_ptr()" - a cut-and-pasteo, I think). Tvbuffify the ARP dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2634 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ipp.c')
-rw-r--r--packet-ipp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-ipp.c b/packet-ipp.c
index a265b439b2..378d2de541 100644
--- a/packet-ipp.c
+++ b/packet-ipp.c
@@ -3,7 +3,7 @@
*
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-ipp.c,v 1.13 2000/11/09 10:56:32 guy Exp $
+ * $Id: packet-ipp.c,v 1.14 2000/11/13 07:18:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -40,6 +40,7 @@
#include <glib.h>
#include "packet.h"
+#include "strutil.h"
#include "packet-http.h"
static int proto_ipp = -1;