aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ipv4.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-07-31 04:18:01 +0000
committerGuy Harris <guy@alum.mit.edu>2003-07-31 04:18:01 +0000
commit5b04b9a4ff42eb6e59c4102cfe7d9a3e121fb3c9 (patch)
treea3e8da74b17554447e946574b19d51a1c067e631 /epan/ipv4.c
parentadf711d5fb40af4af8b6914704c984709f551e81 (diff)
Give FT_IPv4 val_repr_len and val_to_repr methods, and use them for
generating display filters from FT_IPv4 fields. svn path=/trunk/; revision=8110
Diffstat (limited to 'epan/ipv4.c')
-rw-r--r--epan/ipv4.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/epan/ipv4.c b/epan/ipv4.c
index f37caef07d..21903a6713 100644
--- a/epan/ipv4.c
+++ b/epan/ipv4.c
@@ -5,13 +5,12 @@
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: ipv4.c,v 1.4 2002/08/28 20:40:44 jmayer Exp $
+ * $Id: ipv4.c,v 1.5 2003/07/31 04:18:00 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -86,11 +85,11 @@ ipv4_get_host_order_addr(ipv4_addr *ipv4)
return ipv4->addr;
}
-gchar*
-ipv4_addr_str(ipv4_addr *ipv4)
+void
+ipv4_addr_str_buf(const ipv4_addr *ipv4, gchar *buf)
{
guint32 ipv4_host_order = g_htonl(ipv4->addr);
- return ip_to_str((gchar*)&ipv4_host_order);
+ return ip_to_str_buf((gchar*)&ipv4_host_order, buf);
}
static guint32