Include <time.h> to declare "gmtime()".
[obnox/wireshark/wip.git] / resolv.h
index 9453449981b94bdd23aa68d0c5e09ed32752a4db..2a7723e90db316519a55f5f8c78f6e57336fa073 100644 (file)
--- a/resolv.h
+++ b/resolv.h
@@ -1,7 +1,7 @@
 /* resolv.h
  * Definitions for network object lookup
  *
- * $Id: resolv.h,v 1.9 1999/10/22 07:17:51 guy Exp $
+ * $Id: resolv.h,v 1.11 1999/11/21 16:32:16 gram Exp $
  *
  * Laurent Deniel <deniel@worldnet.fr>
  *
 #endif
 
 #define EPATH_ETHERS           "/etc/ethers"
+#define EPATH_IPXNETS          "/etc/ipxnets"
 #define EPATH_MANUF            DATAFILE_DIR "/manuf"
-#define EPATH_PERSONAL_ETHERS  ".ethereal/ethers" /* with "$HOME/" prefix */
+#define EPATH_PERSONAL_ETHERS  ".ethereal/ethers"  /* with "$HOME/" prefix */
+#define EPATH_PERSONAL_IPXNETS         ".ethereal/ipxnets" /* with "$HOME/" prefix */
+
+#ifndef MAXNAMELEN
+#define MAXNAMELEN     64      /* max name length (hostname and port name) */
+#endif
 
 /* global variables */
 
 extern gchar *g_ethers_path;
+extern gchar *g_ipxnets_path;
 extern gchar *g_manuf_path;
 extern gchar *g_pethers_path;
+extern gchar *g_pipxnets_path;
 
 /* Functions in resolv.c */
 
@@ -62,12 +70,23 @@ gchar* get_hostname6(struct e_in6_addr *ad);
    "%02x:%02x:%02x:%02x:%02x:%02x" */
 extern u_char *get_ether_name(const u_char *addr);
 
+/* get_ether_name returns the logical name if found in ethers files else NULL */
+extern u_char *get_ether_name_if_known(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);
 
+/* get_ipxnet_name returns the logical name if found in an ipxnets file,
+ * or a string formatted with "%X" if not */
+extern u_char *get_ipxnet_name(const guint32 addr);
+
 /* returns the ethernet address corresponding to name or NULL if not known */
 extern u_char *get_ether_addr(u_char *name);
 
+/* returns the ipx network corresponding to name. If name is unknown,
+ * 0 is returned and 'known' is set to TRUE. */
+guint32 get_ipxnet_addr(u_char *name, gboolean *known);
+
 /* adds a hostname/IP in the hash table */
 extern void add_host_name(u_int addr, u_char *name);