projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
not every value return in an nlist structure was being
[unix-history]
/
usr
/
src
/
usr.bin
/
netstat
/
ns.c
diff --git
a/usr/src/usr.bin/netstat/ns.c
b/usr/src/usr.bin/netstat/ns.c
index
eacae0d
..
1883535
100644
(file)
--- a/
usr/src/usr.bin/netstat/ns.c
+++ b/
usr/src/usr.bin/netstat/ns.c
@@
-1,12
+1,12
@@
/*
/*
- * Copyright (c) 198
5
, 1988 Regents of the University of California.
+ * Copyright (c) 198
3
, 1988 Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
-static char sccsid[] = "@(#)ns.c 5.1
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)ns.c 5.1
6
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-43,6
+43,7
@@
struct sppcb sppcb;
struct socket sockb;
static char *ns_prpr __P((struct ns_addr *));
struct socket sockb;
static char *ns_prpr __P((struct ns_addr *));
+static void ns_erputil __P((int, int));
static int first = 1;
static int first = 1;
@@
-55,7
+56,7
@@
static int first = 1;
void
nsprotopr(off, name)
void
nsprotopr(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct nspcb cb;
char *name;
{
struct nspcb cb;
@@
-71,10
+72,10
@@
nsprotopr(off, name)
if (nspcb.nsp_next == (struct nspcb *)off)
return;
for (;nspcb.nsp_next != (struct nspcb *)off; prev = next) {
if (nspcb.nsp_next == (struct nspcb *)off)
return;
for (;nspcb.nsp_next != (struct nspcb *)off; prev = next) {
-
off_t
ppcb;
+
u_long
ppcb;
next = nspcb.nsp_next;
next = nspcb.nsp_next;
- kread((
off_t
)next, (char *)&nspcb, sizeof (nspcb));
+ kread((
u_long
)next, (char *)&nspcb, sizeof (nspcb));
if (nspcb.nsp_prev != prev) {
printf("???\n");
break;
if (nspcb.nsp_prev != prev) {
printf("???\n");
break;
@@
-82,9
+83,9
@@
nsprotopr(off, name)
if (!aflag && ns_nullhost(nspcb.nsp_faddr) ) {
continue;
}
if (!aflag && ns_nullhost(nspcb.nsp_faddr) ) {
continue;
}
- kread((
off_t
)nspcb.nsp_socket,
+ kread((
u_long
)nspcb.nsp_socket,
(char *)&sockb, sizeof (sockb));
(char *)&sockb, sizeof (sockb));
- ppcb = (
off_t
) nspcb.nsp_pcb;
+ ppcb = (
u_long
) nspcb.nsp_pcb;
if (ppcb) {
if (isspp) {
kread(ppcb, (char *)&sppcb, sizeof (sppcb));
if (ppcb) {
if (isspp) {
kread(ppcb, (char *)&sppcb, sizeof (sppcb));
@@
-130,7
+131,7
@@
nsprotopr(off, name)
*/
void
spp_stats(off, name)
*/
void
spp_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct spp_istat spp_istat;
char *name;
{
struct spp_istat spp_istat;
@@
-208,7
+209,7
@@
spp_stats(off, name)
*/
void
idp_stats(off, name)
*/
void
idp_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct idpstat idpstat;
char *name;
{
struct idpstat idpstat;
@@
-244,7
+245,7
@@
static struct {
/*ARGSUSED*/
void
nserr_stats(off, name)
/*ARGSUSED*/
void
nserr_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct ns_errstat ns_errstat;
char *name;
{
struct ns_errstat ns_errstat;