more updates to bgp dissector.
[obnox/wireshark/wip.git] / resolv.h
index 02fae12a4b66b41371bfb83d6427518ee9f2b71f..9453449981b94bdd23aa68d0c5e09ed32752a4db 100644 (file)
--- a/resolv.h
+++ b/resolv.h
@@ -1,7 +1,7 @@
 /* resolv.h
  * Definitions for network object lookup
  *
- * $Id: resolv.h,v 1.6 1999/09/26 14:39:12 deniel Exp $
+ * $Id: resolv.h,v 1.9 1999/10/22 07:17:51 guy Exp $
  *
  * Laurent Deniel <deniel@worldnet.fr>
  *
@@ -60,7 +60,7 @@ gchar* get_hostname6(struct e_in6_addr *ad);
 /* get_ether_name returns the logical name if found in ethers files else
    "<vendor>_%02x:%02x:%02x" if the vendor code is known else
    "%02x:%02x:%02x:%02x:%02x:%02x" */
-extern u_char *get_ether_name(u_char *addr);
+extern u_char *get_ether_name(const u_char *addr);
 
 /* get_manuf_name returns the vendor name or "%02x:%02x:%02x" if not known */
 extern u_char *get_manuf_name(u_char *addr);
@@ -71,7 +71,16 @@ extern u_char *get_ether_addr(u_char *name);
 /* adds a hostname/IP in the hash table */
 extern void add_host_name(u_int addr, u_char *name);
 
-/* Returns IP address for a string representing the hostname or dotted-decial IP address */
-unsigned long get_host_ipaddr(const char *host);
+/* Translates a string representing the hostname or dotted-decimal IP address
+ * into a numeric IP address value, returning TRUE if it succeeds and
+ * FALSE if it fails. */
+gboolean get_host_ipaddr(const char *host, guint32 *addrp);
+
+/*
+ * Translate IPv6 numeric address or FQDN hostname, into binary IPv6 address.
+ * Return TRUE if we succeed and set "*addrp" to that numeric IP address;
+ * return FALSE if we fail.
+ */
+gboolean get_host_ipaddr6(const char *host, struct e_in6_addr *addrp);
 
 #endif /* __RESOLV_H__ */