summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/arpa/nameser.h6
-rw-r--r--lib/libc/net/ns_parse.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
index 634dece..556210e 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)
diff --git a/lib/libc/net/ns_parse.c b/lib/libc/net/ns_parse.c
index 318b363..1fb9205 100644
--- a/lib/libc/net/ns_parse.c
+++ b/lib/libc/net/ns_parse.c
@@ -16,7 +16,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: ns_parse.c,v 8.8 1998/02/17 17:20:33 vixie Exp $";
+static char rcsid[] = "$Id: ns_parse.c,v 1.1 1998/06/11 09:02:40 peter Exp $";
#endif
#include <sys/types.h>
@@ -160,7 +160,7 @@ ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
NS_GET16(rr->type, handle->_ptr);
if (handle->_ptr + NS_INT16SZ > handle->_eom)
goto emsgsize;
- NS_GET16(rr->class, handle->_ptr);
+ NS_GET16(rr->rr_class, handle->_ptr);
if (section == ns_s_qd) {
rr->ttl = 0;
rr->rdlength = 0;
OpenPOWER on IntegriCloud