summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/addrtoname.h
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2000-01-16 12:07:30 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2000-01-16 12:07:30 +0000
commit1f422276195f7e3d9e8dc7ec2eba1b7c3aafea2c (patch)
treedd9e21fd07a351ad648425f959be9dc4e89b6c7e /usr.sbin/tcpdump/addrtoname.h
parent309e3f7a5c479705e2d7447ebe30c607003943bf (diff)
INET6 address resolution (from KAME)
Diffstat (limited to 'usr.sbin/tcpdump/addrtoname.h')
-rw-r--r--usr.sbin/tcpdump/addrtoname.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/addrtoname.h b/usr.sbin/tcpdump/addrtoname.h
index c3be7ea8a61..bd35301ec91 100644
--- a/usr.sbin/tcpdump/addrtoname.h
+++ b/usr.sbin/tcpdump/addrtoname.h
@@ -18,7 +18,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.h,v 1.6 1999/07/28 20:41:35 jakob Exp $ (LBL)
+ * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.h,v 1.7 2000/01/16 12:07:29 jakob Exp $ (LBL)
*/
/* Name to address translation routines. */
@@ -28,9 +28,18 @@ extern char *etherproto_string(u_short);
extern char *tcpport_string(u_short);
extern char *udpport_string(u_short);
extern char *getname(const u_char *);
+#ifdef INET6
+extern char *getname6(const u_char *);
+#endif
extern char *intoa(u_int32_t);
extern void init_addrtoname(u_int32_t, u_int32_t);
extern struct hnamemem *newhnamemem(void);
+#ifdef INET6
+extern struct h6namemem *newh6namemem(void);
+#endif
#define ipaddr_string(p) getname((const u_char *)(p))
+#ifdef INET6
+#define ip6addr_string(p) getname6((const u_char *)(p))
+#endif