summaryrefslogtreecommitdiffstats
path: root/usr.sbin/named
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-02-06 20:36:15 +0000
committerwollman <wollman@FreeBSD.org>1996-02-06 20:36:15 +0000
commit61d8d8e40b45efc45d9bbdf14fe96e565ceb074f (patch)
tree3775e2813ec951933b9585e48e3c57ba7dca08e2 /usr.sbin/named
parentf0d10418a5a87de35e721ce8bbfd0e9353207adc (diff)
downloadFreeBSD-src-61d8d8e40b45efc45d9bbdf14fe96e565ceb074f.zip
FreeBSD-src-61d8d8e40b45efc45d9bbdf14fe96e565ceb074f.tar.gz
Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)
in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
Diffstat (limited to 'usr.sbin/named')
-rw-r--r--usr.sbin/named/db_dump.c8
-rw-r--r--usr.sbin/named/db_load.c8
-rw-r--r--usr.sbin/named/xfer/named-xfer.c8
3 files changed, 21 insertions, 3 deletions
diff --git a/usr.sbin/named/db_dump.c b/usr.sbin/named/db_dump.c
index 27ffadd..e38719d 100644
--- a/usr.sbin/named/db_dump.c
+++ b/usr.sbin/named/db_dump.c
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static char sccsid[] = "@(#)db_dump.c 4.33 (Berkeley) 3/3/91";
-static char rcsid[] = "$Id: db_dump.c,v 1.4 1995/08/20 21:18:14 peter Exp $";
+static char rcsid[] = "$Id: db_dump.c,v 1.5 1996/01/07 05:48:21 peter Exp $";
#endif /* not lint */
/*
@@ -61,7 +61,9 @@ static char rcsid[] = "$Id: db_dump.c,v 1.4 1995/08/20 21:18:14 peter Exp $";
#include <sys/param.h>
#include <sys/stat.h>
#include <netinet/in.h>
+#ifdef ISO
#include <netiso/iso.h>
+#endif
#include <arpa/nameser.h>
#include <arpa/inet.h>
#include <netdb.h>
@@ -360,7 +362,9 @@ db_dump(htp, fp, zone, origin)
u_int32_t n;
u_int32_t addr;
int j, i;
+#ifdef ISO
struct iso_addr isoa;
+#endif
register u_char *cp;
u_char *end;
char *proto, *sep;
@@ -556,6 +560,7 @@ db_dump(htp, fp, zone, origin)
(void) fputs("\"", fp);
break;
+#ifdef ISO
case T_NSAP:
isoa.isoa_len = dp->d_size;
if (isoa.isoa_len > sizeof(isoa.isoa_genaddr))
@@ -564,6 +569,7 @@ db_dump(htp, fp, zone, origin)
isoa.isoa_len);
(void) fputs(iso_ntoa(&isoa), fp);
break;
+#endif
#ifdef LOC_RR
case T_LOC:
(void) fputs(loc_ntoa(dp->d_data, NULL), fp);
diff --git a/usr.sbin/named/db_load.c b/usr.sbin/named/db_load.c
index fbe8466..7909434 100644
--- a/usr.sbin/named/db_load.c
+++ b/usr.sbin/named/db_load.c
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static char sccsid[] = "@(#)db_load.c 4.38 (Berkeley) 3/2/91";
-static char rcsid[] = "$Id: db_load.c,v 1.4 1995/08/20 21:18:22 peter Exp $";
+static char rcsid[] = "$Id: db_load.c,v 1.5 1996/01/07 05:48:25 peter Exp $";
#endif /* not lint */
/*
@@ -65,7 +65,9 @@ static char rcsid[] = "$Id: db_load.c,v 1.4 1995/08/20 21:18:22 peter Exp $";
#include <sys/param.h>
#include <sys/stat.h>
#include <netinet/in.h>
+#ifdef ISO
#include <netiso/iso.h>
+#endif
#include <arpa/nameser.h>
#include <arpa/inet.h>
#include <stdio.h>
@@ -182,7 +184,9 @@ db_load(filename, in_origin, zp, def_domain)
int c, class, type, dbflags, dataflags, multiline;
u_int32_t ttl;
struct databuf *dp;
+#ifdef ISO
struct iso_addr *isoa;
+#endif
FILE *fp;
int slineno, i, errs, didinclude;
register u_int32_t n;
@@ -681,6 +685,7 @@ db_load(filename, in_origin, zp, def_domain)
endline(fp);
break;
+#ifdef ISO
case T_NSAP:
isoa = iso_addr(buf);
if (!isoa)
@@ -689,6 +694,7 @@ db_load(filename, in_origin, zp, def_domain)
bcopy(isoa->isoa_genaddr, data, n);
endline(fp);
break;
+#endif
#ifdef LOC_RR
case T_LOC:
cp = buf + (n = strlen(buf));
diff --git a/usr.sbin/named/xfer/named-xfer.c b/usr.sbin/named/xfer/named-xfer.c
index f7a5d5c..b5f384a 100644
--- a/usr.sbin/named/xfer/named-xfer.c
+++ b/usr.sbin/named/xfer/named-xfer.c
@@ -70,7 +70,7 @@ char copyright[] =
#if !defined(lint) && !defined(SABER)
static char sccsid[] = "@(#)named-xfer.c 4.18 (Berkeley) 3/7/91";
-static char rcsid[] = "$Id: named-xfer.c,v 1.4 1995/08/20 21:49:40 peter Exp $";
+static char rcsid[] = "$Id: named-xfer.c,v 1.5 1996/01/07 05:48:49 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -79,7 +79,9 @@ static char rcsid[] = "$Id: named-xfer.c,v 1.4 1995/08/20 21:49:40 peter Exp $";
#include <sys/socket.h>
#include <netinet/in.h>
+#ifdef ISO
#include <netiso/iso.h>
+#endif
#if defined(__osf__)
# include <sys/mbuf.h>
# include <net/route.h>
@@ -1155,7 +1157,9 @@ print_output(msg, msglen, rrp)
register HEADER *hp = (HEADER *) msg;
u_int32_t addr, ttl;
int i, j, tab, result, class, type, dlen, n1, n;
+#ifdef ISO
struct iso_addr isoa;
+#endif
char data[BUFSIZ];
u_char *cp1, *cp2, *temp_ptr;
char *cdata, *origin, *proto, dname[MAXDNAME];
@@ -1538,6 +1542,7 @@ print_output(msg, msglen, rrp)
(void) fputs("\"\n", dbfp);
break;
+#ifdef ISO
case T_NSAP:
isoa.isoa_len = n;
if (isoa.isoa_len > sizeof(isoa.isoa_genaddr))
@@ -1545,6 +1550,7 @@ print_output(msg, msglen, rrp)
bcopy(cp, isoa.isoa_genaddr, isoa.isoa_len);
fprintf(dbfp, "%s\n", iso_ntoa(&isoa));
break;
+#endif
case T_UINFO:
(void) fprintf(dbfp, "\"%s\"\n", cp);
OpenPOWER on IntegriCloud