From 69f355ec5c208853ce388efdf2560b5345a9e8b4 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 28 Apr 1995 06:22:53 +0000 Subject: [PATCH] Initial revision --- pppstats/Makefile.aix4 | 40 ++++++++++++++++++++++++++++++++++++++++ pppstats/Makefile.osf | 28 ++++++++++++++++++++++++++++ pppstats/pppstats.8 | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 pppstats/Makefile.aix4 create mode 100644 pppstats/Makefile.osf create mode 100644 pppstats/pppstats.8 diff --git a/pppstats/Makefile.aix4 b/pppstats/Makefile.aix4 new file mode 100644 index 0000000..c1b0ca4 --- /dev/null +++ b/pppstats/Makefile.aix4 @@ -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 index 0000000..29cd984 --- /dev/null +++ b/pppstats/Makefile.osf @@ -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 index 0000000..45bdc7b --- /dev/null +++ b/pppstats/pppstats.8 @@ -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 +] [ +.I +] +.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. -- 2.39.2