aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dns.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-07 07:44:29 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-07 07:44:29 +0000
commit1fa5650f17a24bb4ba876b8a511a18484d55bf20 (patch)
treeba9c4486a8b33017df217dfe6a800fd41539240b /packet-dns.h
parent5afbccc62c0c40cf0ff6a2ab238d531c166c69f5 (diff)
Add more packet bounds checking to DNS, and add some to NetBIOS-over-TCP
as well. svn path=/trunk/; revision=779
Diffstat (limited to 'packet-dns.h')
-rw-r--r--packet-dns.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-dns.h b/packet-dns.h
index 8d9b5a6933..be22b440b9 100644
--- a/packet-dns.h
+++ b/packet-dns.h
@@ -2,7 +2,7 @@
* Definitions for packet disassembly structures and routines used both by
* DNS and NBNS.
*
- * $Id: packet-dns.h,v 1.3 1999/05/27 05:35:08 guy Exp $
+ * $Id: packet-dns.h,v 1.4 1999/10/07 07:44:28 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -30,8 +30,8 @@
char *dns_class_name(int class);
-int get_dns_name(const u_char *dns_data_ptr, const u_char *pd,
- char *name, int maxname);
+int get_dns_name(const u_char *pd, int offset, int dns_data_offset,
+ char *name, int maxname);
#define MAXDNAME 1025 /* maximum domain name length */
@@ -41,4 +41,3 @@ add_rr_to_tree(proto_item *trr, int rr_type, int offset, const char *name,
u_short data_len);
#endif /* packet-dns.h */
-