aboutsummaryrefslogtreecommitdiffstats
path: root/resolv.h
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>1998-09-25 23:24:07 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>1998-09-25 23:24:07 +0000
commit8ebc4133148f1445f0e14a731df82d281c79da34 (patch)
tree8d5725d0fe36059aa33286b93b05f4a9f701d193 /resolv.h
parent86872f354f4f7d9cbf18fd305e90a7ad9bbb2657 (diff)
* Ethernet manufacturer support (Laurent)
* PPP fixes (Gerald) * Null/loopback interface support (Gerald) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'resolv.h')
-rw-r--r--resolv.h36
1 files changed, 33 insertions, 3 deletions
diff --git a/resolv.h b/resolv.h
index dd994b70d0..278190a319 100644
--- a/resolv.h
+++ b/resolv.h
@@ -1,7 +1,7 @@
/* resolv.h
* Definitions for network object lookup
*
- * $Id: resolv.h,v 1.2 1998/09/16 03:22:18 gerald Exp $
+ * $Id: resolv.h,v 1.3 1998/09/25 23:24:07 gerald Exp $
*
* Laurent Deniel <deniel@worldnet.fr>
*
@@ -28,14 +28,44 @@
#ifndef __RESOLV_H__
#define __RESOLV_H__
-/* global variable */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
-extern int g_resolving_actif;
+#define EPATH_ETHERS "/etc/ethers"
+#define EPATH_MANUF DATAFILE_DIR "/manuf"
+#define EPATH_PERSONAL_ETHERS ".ethereal/ethers" /* with "$HOME/" prefix */
+
+/* global variables */
+
+extern gchar *g_ethers_path;
+extern gchar *g_manuf_path;
+extern gchar *g_pethers_path;
+extern int g_resolving_actif;
/* Functions in resolv.c */
+/* get_tcp_port returns the UDP port name or "%d" if not found */
extern u_char *get_udp_port(u_int port);
+
+/* get_tcp_port returns the TCP port name or "%d" if not found */
extern u_char *get_tcp_port(u_int port);
+
+/* get_hostname returns the host name or "%d.%d.%d.%d" if not found */
extern u_char *get_hostname(u_int addr);
+/* 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);
+
+/* get_manuf_name returns the vendor name or "%02x:%02x:%02x" if not known */
+extern u_char *get_manuf_name(u_char *addr);
+
+/* returns the ethernet address corresponding to name or NULL if not known */
+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);
+
#endif /* __RESOLV_H__ */