summaryrefslogtreecommitdiff
path: root/epan/ipv4.h
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.h
parentadf711d5fb40af4af8b6914704c984709f551e81 (diff)
downloadwireshark-5b04b9a4ff42eb6e59c4102cfe7d9a3e121fb3c9.tar.gz
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.h')
-rw-r--r--epan/ipv4.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/epan/ipv4.h b/epan/ipv4.h
index 40648c3207..6b7e135998 100644
--- a/epan/ipv4.h
+++ b/epan/ipv4.h
@@ -1,17 +1,16 @@
-/* ip4.h
+/* ipv4.h
*
* IPv4 address class. They understand how to take netmasks into consideration
* during equivalence testing.
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: ipv4.h,v 1.4 2002/08/28 20:40:44 jmayer Exp $
+ * $Id: ipv4.h,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
@@ -50,9 +49,9 @@ void ipv4_addr_set_netmask_bits(ipv4_addr *ipv4, guint new_nmask_bits);
guint32 ipv4_get_net_order_addr(ipv4_addr *ipv4);
guint32 ipv4_get_host_order_addr(ipv4_addr *ipv4);
-/* Returns a string pointer to a dotted-decimal notation representation of an IPv4
- * address. The pointer points to a internal buffer, so don't try to g_free() it */
-gchar* ipv4_addr_str(ipv4_addr *ipv4);
+/* Fills in a buffer with a dotted-decimal notation representation of an IPv4
+ * address. */
+void ipv4_addr_str_buf(const ipv4_addr *ipv4, gchar *buf);
/* Compares two ipv4_addrs, taking into account the less restrictive of the
* two netmasks, applying that netmask to both addrs.