#ifndef SMALL changes. saves 30k on the sparc
This commit is contained in:
parent
07c1a182cd
commit
a112081f50
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if.c,v 1.29 1998/08/25 20:59:39 ross Exp $ */
|
||||
/* $NetBSD: if.c,v 1.30 1999/01/11 12:31:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: if.c,v 1.29 1998/08/25 20:59:39 ross Exp $");
|
||||
__RCSID("$NetBSD: if.c,v 1.30 1999/01/11 12:31:53 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -202,6 +202,7 @@ intpr(interval, ifnetaddr)
|
||||
}
|
||||
}
|
||||
break;
|
||||
#ifndef SMALL
|
||||
case AF_APPLETALK:
|
||||
printf("atalk:%-7.7s ",
|
||||
atalk_print(sa,0x10));
|
||||
@ -223,6 +224,7 @@ intpr(interval, ifnetaddr)
|
||||
ns_phost((struct sockaddr *)sns));
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case AF_LINK:
|
||||
{
|
||||
struct sockaddr_dl *sdl =
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.17 1998/07/18 05:04:10 lukem Exp $ */
|
||||
/* $NetBSD: main.c,v 1.18 1999/01/11 12:31:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.17 1998/07/18 05:04:10 lukem Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.18 1999/01/11 12:31:53 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -170,6 +170,7 @@ struct protox {
|
||||
0, 0, 0 }
|
||||
};
|
||||
|
||||
#ifndef SMALL
|
||||
struct protox atalkprotox[] = {
|
||||
{ N_DDPCB, N_DDPSTAT, 1, atalkprotopr,
|
||||
ddp_stats, 0, "ddp" },
|
||||
@ -200,9 +201,13 @@ struct protox isoprotox[] = {
|
||||
{ -1, -1, 0, 0,
|
||||
0, 0, 0 }
|
||||
};
|
||||
#endif
|
||||
|
||||
struct protox *protoprotox[] = { protox, atalkprotox,
|
||||
nsprotox, isoprotox, NULL };
|
||||
struct protox *protoprotox[] = { protox,
|
||||
#ifndef SMALL
|
||||
atalkprotox, nsprotox, isoprotox,
|
||||
#endif
|
||||
NULL };
|
||||
|
||||
int main __P((int, char *[]));
|
||||
static void printproto __P((struct protox *, char *));
|
||||
@ -262,9 +267,11 @@ main(argc, argv)
|
||||
errx(1, "%s: unknown address family",
|
||||
optarg);
|
||||
break;
|
||||
#ifndef SMALL
|
||||
case 'g':
|
||||
gflag = 1;
|
||||
break;
|
||||
#endif
|
||||
case 'I':
|
||||
iflag = 1;
|
||||
interface = optarg;
|
||||
@ -404,6 +411,7 @@ main(argc, argv)
|
||||
routepr(nl[N_RTREE].n_value);
|
||||
exit(0);
|
||||
}
|
||||
#ifndef SMALL
|
||||
if (gflag) {
|
||||
if (sflag)
|
||||
mrt_stats(nl[N_MRTPROTO].n_value,
|
||||
@ -415,6 +423,7 @@ main(argc, argv)
|
||||
nl[N_VIFTABLE].n_value);
|
||||
exit(0);
|
||||
}
|
||||
#endif
|
||||
if (af == AF_INET || af == AF_UNSPEC) {
|
||||
setprotoent(1);
|
||||
setservent(1);
|
||||
@ -429,6 +438,7 @@ main(argc, argv)
|
||||
}
|
||||
endprotoent();
|
||||
}
|
||||
#ifndef SMALL
|
||||
if (af == AF_APPLETALK || af == AF_UNSPEC)
|
||||
for (tp = atalkprotox; tp->pr_name; tp++)
|
||||
printproto(tp, tp->pr_name);
|
||||
@ -440,6 +450,7 @@ main(argc, argv)
|
||||
printproto(tp, tp->pr_name);
|
||||
if ((af == AF_LOCAL || af == AF_UNSPEC) && !sflag)
|
||||
unixpr(nl[N_UNIXSW].n_value);
|
||||
#endif
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netstat.h,v 1.10 1998/06/03 02:41:11 thorpej Exp $ */
|
||||
/* $NetBSD: netstat.h,v 1.11 1999/01/11 12:31:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -41,7 +41,9 @@ int Aflag; /* show addresses of protocol control block */
|
||||
int aflag; /* show all sockets (including servers) */
|
||||
int bflag; /* show i/f byte stats */
|
||||
int dflag; /* show i/f dropped packets */
|
||||
#ifndef SMALL
|
||||
int gflag; /* show group (multicast) routing or stats */
|
||||
#endif
|
||||
int iflag; /* show interfaces */
|
||||
int mflag; /* show memory stats */
|
||||
int nflag; /* show addresses numerically */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: route.c,v 1.32 1998/12/05 13:14:04 pk Exp $ */
|
||||
/* $NetBSD: route.c,v 1.33 1999/01/11 12:31:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: route.c,v 1.32 1998/12/05 13:14:04 pk Exp $");
|
||||
__RCSID("$NetBSD: route.c,v 1.33 1999/01/11 12:31:53 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -407,6 +407,7 @@ p_sockaddr(sa, mask, flags, width)
|
||||
break;
|
||||
}
|
||||
|
||||
#ifndef SMALL
|
||||
case AF_APPLETALK:
|
||||
case 0:
|
||||
{
|
||||
@ -419,6 +420,7 @@ p_sockaddr(sa, mask, flags, width)
|
||||
case AF_NS:
|
||||
cp = ns_print((struct sockaddr *)sa);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case AF_LINK:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user