]> git.ozlabs.org Git - ppp.git/commitdiff
Initial revision
authorPaul Mackerras <paulus@samba.org>
Fri, 28 Apr 1995 06:22:53 +0000 (06:22 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 28 Apr 1995 06:22:53 +0000 (06:22 +0000)
pppstats/Makefile.aix4 [new file with mode: 0644]
pppstats/Makefile.osf [new file with mode: 0644]
pppstats/pppstats.8 [new file with mode: 0644]

diff --git a/pppstats/Makefile.aix4 b/pppstats/Makefile.aix4
new file mode 100644 (file)
index 0000000..c1b0ca4
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# pppstats makefile
+#
+
+#ifndef BINDIR
+BINDIR=/usr/sbin
+#endif
+#ifndef MANDIR
+MANDIR = /usr/man
+#ENDIF
+
+PPPSTATSRCS = pppstats.c
+PPPSTATOBJS = pppstats.o
+
+CC = xlc
+COPTS = -O
+COMPILE_FLAGS = -DSTREAMS 
+LIBS =
+
+CFLAGS = -I.. $(COPTS) $(COMPILE_FLAGS)
+
+all: pppstats
+
+install: all
+       install -O root -G system -M 4555 -f $(BINDIR) pppstats
+       install -M 555 -O root -f $(MANDIR)/man8 pppstats.8
+
+pppstats: $(PPPSTATSRCS)
+       $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
+
+clean:
+       rm -f pppstats *.o
+
+depend:
+       cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
+#      makedepend $(CFLAGS) $(PPPSTATSRCS)
+
+saber_pppstats:
+       #setopt load_flags $(CFLAGS)
+       #load $(PPPSTATSRCS)
diff --git a/pppstats/Makefile.osf b/pppstats/Makefile.osf
new file mode 100644 (file)
index 0000000..29cd984
--- /dev/null
@@ -0,0 +1,28 @@
+#
+# pppstats makefile
+#
+
+PPPSTATSRCS = pppstats.c
+PPPSTATOBJS = pppstats.o
+
+#CC = gcc
+COPTS = -O
+COMPILE_FLAGS = -DSTREAMS
+LIBS =
+
+CFLAGS = -I.. $(COPTS) $(COMPILE_FLAGS)
+
+all: pppstats
+
+install: pppstats
+       installbsd -c pppstats $(BINDIR)/pppstats
+
+pppstats: $(PPPSTATSRCS)
+       $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
+
+clean:
+       rm -f pppstats *~ #* core
+
+depend:
+       cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
+#      makedepend $(CFLAGS) $(PPPSTATSRCS)
diff --git a/pppstats/pppstats.8 b/pppstats/pppstats.8
new file mode 100644 (file)
index 0000000..45bdc7b
--- /dev/null
@@ -0,0 +1,39 @@
+.\"    @(#) $Id: pppstats.8,v 1.1 1995/04/28 06:22:53 paulus Exp $
+.TH PPPSTATS 8 "23 Aug 1994"
+.SH NAME
+pppstats \- print PPP statistics
+.SH SYNOPSIS
+.B pppstats
+[
+.B -v
+] [
+.B -i
+.I <secs>
+] [
+.I <unit#>
+]
+.ti 12
+.br
+[
+.I objectfile
+[
+.I corefile
+]]
+.SH DESCRIPTION
+.B pppstats
+prints PPP-related statistics.
+.PP
+The
+.B -v
+flag causes
+.B pppstats
+to display additional statistics, such as the number of packets tossed.
+.PP
+The
+.B -i
+flag is used to specify the interval between printouts. The default is
+5 seconds.
+.PP
+.B pppstats
+must be installed set-group-id to kmem, or the user must have read
+access to /dev/kmem.