aboutsummaryrefslogtreecommitdiffstats
path: root/include/arpa/nameser.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-06-04 22:38:27 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-06-04 22:38:27 +0000
commitf05a568074001a710a50d859e93a8dc34c1fee6b (patch)
tree7a5484b256ea0a308a0e88cc696823b73d917a66 /include/arpa/nameser.h
parentc5b52d6d9d28dfaae973c1b49daa01bf49d04df7 (diff)
downloadsrc-f05a568074001a710a50d859e93a8dc34c1fee6b.tar.gz
src-f05a568074001a710a50d859e93a8dc34c1fee6b.zip
Change an internal variable from "class" to "ns_class" for C++'s benefit.
Apparently BIND-8.2.1 uses ns_class. Submitted by: John Plevyak <jplevyak@inktomi.com>
Notes
Notes: svn path=/head/; revision=47742
Diffstat (limited to 'include/arpa/nameser.h')
-rw-r--r--include/arpa/nameser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
index 634dece37b0d..556210ee7153 100644
--- a/include/arpa/nameser.h
+++ b/include/arpa/nameser.h
@@ -50,7 +50,7 @@
/*
* From: Id: nameser.h,v 8.16 1998/02/06 00:35:58 halley Exp
- * $Id$
+ * $Id: nameser.h,v 1.12 1998/06/11 08:55:15 peter Exp $
*/
#ifndef _ARPA_NAMESER_H_
@@ -140,7 +140,7 @@ extern struct _ns_flagdata _ns_flagdata[];
typedef struct __ns_rr {
char name[NS_MAXDNAME]; /* XXX need to malloc */
u_int16_t type;
- u_int16_t class;
+ u_int16_t rr_class;
u_int32_t ttl;
u_int16_t rdlength;
const u_char *rdata;
@@ -149,7 +149,7 @@ typedef struct __ns_rr {
/* Accessor macros - this is part of the public interface. */
#define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".")
#define ns_rr_type(rr) ((rr).type + 0)
-#define ns_rr_class(rr) ((rr).class + 0)
+#define ns_rr_class(rr) ((rr).rr_class + 0)
#define ns_rr_ttl(rr) ((rr).ttl + 0)
#define ns_rr_rdlen(rr) ((rr).rdlength + 0)
#define ns_rr_rdata(rr) ((rr).rdata + 0)