]> git.ozlabs.org Git - ppp.git/commitdiff
add man page for pppdump and add it to the list of things
authorPaul Mackerras <paulus@samba.org>
Thu, 1 Apr 1999 11:44:55 +0000 (11:44 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 1 Apr 1999 11:44:55 +0000 (11:44 +0000)
to be installed on linux, sol2, svr4, sunos4

configure
linux/Makefile.top
pppdump/Makefile [deleted file]
pppdump/Makefile.linux [new file with mode: 0644]
pppdump/Makefile.sol2 [new file with mode: 0644]
pppdump/Makefile.sunos4 [new file with mode: 0644]
pppdump/Makefile.svr4 [new file with mode: 0644]
pppdump/pppdump.8 [new file with mode: 0644]
sunos4/Makefile.top
svr4/Makefile.top

index de2e6e4528af80b5e8678ad55048ed91dbde91b2..586f4fb4dcc36fc4c3f7892fe93cc93740c7e5b7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #!/bin/sh
 #!/bin/sh
-# $Id: configure,v 1.13 1997/04/30 05:39:02 paulus Exp $
+# $Id: configure,v 1.14 1999/04/01 11:44:54 paulus Exp $
 
 if [ -d /NextApps ]; then
   system="NeXTStep"
 
 if [ -d /NextApps ]; then
   system="NeXTStep"
@@ -105,9 +105,11 @@ if [ -d "$ksrc" ]; then
     ln -s Makefile.$makext $ksrc/Makefile
     echo "  $ksrc/Makefile -> Makefile.$makext"
   fi
     ln -s Makefile.$makext $ksrc/Makefile
     echo "  $ksrc/Makefile -> Makefile.$makext"
   fi
-  for dir in pppd pppstats chat; do
+  for dir in pppd pppstats chat pppdump; do
     rm -f $dir/Makefile
     rm -f $dir/Makefile
-    ln -s Makefile.$makext $dir/Makefile
-    echo "  $dir/Makefile -> Makefile.$makext"
+    if [ -e $dir/Makefile.$makext ]; then
+      ln -s Makefile.$makext $dir/Makefile
+      echo "  $dir/Makefile -> Makefile.$makext"
+    fi
   done
 fi
   done
 fi
index 79dd4304e1b9a18bf7edc87a930c673566fc05ec..1ebb8586c68126ae942446ea68023b6551afd9d0 100644 (file)
@@ -20,6 +20,7 @@ install-progs:
        cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
        cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
        cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
        cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
        cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
        cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
+       cd pppdump; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        $(ETCDIR)/chap-secrets
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        $(ETCDIR)/chap-secrets
diff --git a/pppdump/Makefile b/pppdump/Makefile
deleted file mode 100644 (file)
index 2532fac..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-CFLAGS= -O -I../include/net
-OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
-
-all:   pppdump
-
-pppdump: $(OBJS)
-       $(CC) -o pppdump $(OBJS)
-
-clean:
-       rm -f pppdump $(OBJS) *~
-
-install:
diff --git a/pppdump/Makefile.linux b/pppdump/Makefile.linux
new file mode 100644 (file)
index 0000000..69e018a
--- /dev/null
@@ -0,0 +1,15 @@
+CFLAGS= -O -I../include/net
+OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
+
+all:   pppdump
+
+pppdump: $(OBJS)
+       $(CC) -o pppdump $(OBJS)
+
+clean:
+       rm -f pppdump $(OBJS) *~
+
+install:
+       mkdir -p $(BINDIR) $(MANDIR)/man8
+       install -s -c pppdump $(BINDIR)
+       install -c -m 444 pppdump.8 $(MANDIR)/man8
\ No newline at end of file
diff --git a/pppdump/Makefile.sol2 b/pppdump/Makefile.sol2
new file mode 100644 (file)
index 0000000..042b4d5
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# pppdump Makefile for SVR4 systems
+# $Id: Makefile.sol2,v 1.1 1999/04/01 11:44:54 paulus Exp $
+#
+
+include ../svr4/Makedefs
+
+CFLAGS= $(COPTS) -I../include/net
+OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
+
+all:   pppdump
+
+pppdump: $(OBJS)
+       $(CC) -o pppdump $(OBJS)
+
+clean:
+       rm -f pppdump *~
+
+install:
+       $(INSTALL) -f $(BINDIR) pppdump
+       $(INSTALL) -m 444 -f $(MANDIR)/man8 pppdump.8
diff --git a/pppdump/Makefile.sunos4 b/pppdump/Makefile.sunos4
new file mode 100644 (file)
index 0000000..6f2581f
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# pppstats makefile
+# $Id: Makefile.sunos4,v 1.1 1999/04/01 11:44:55 paulus Exp $
+#
+
+include ../sunos4/Makedefs
+
+OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
+CFLAGS = $(COPTS) -I../include/net
+
+all:   pppdump
+
+pppdump: $(OBJS)
+       $(CC) -o pppdump $(OBJS)
+
+clean:
+       rm -f pppdump $(OBJS) *~
+
+install: pppdump
+       $(INSTALL) -c pppdump $(BINDIR)/pppdump
+       $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)/man8/pppdump.8
diff --git a/pppdump/Makefile.svr4 b/pppdump/Makefile.svr4
new file mode 100644 (file)
index 0000000..15a4f2f
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# pppdump Makefile for SVR4 systems
+# $Id: Makefile.svr4,v 1.1 1999/04/01 11:44:55 paulus Exp $
+#
+
+include ../svr4/Makedefs
+
+CFLAGS= $(COPTS) -I../include/net
+OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
+
+all:   pppdump
+
+pppdump: $(OBJS)
+       $(CC) -o pppdump $(OBJS)
+
+clean:
+       rm -f pppdump *~
+
+install:
+       $(INSTALL) -f $(BINDIR) pppdump
+       $(INSTALL) -m 444 -f $(MANDIR)/man8 pppdump.8
diff --git a/pppdump/pppdump.8 b/pppdump/pppdump.8
new file mode 100644 (file)
index 0000000..49b6c4b
--- /dev/null
@@ -0,0 +1,62 @@
+.\"    @(#) $Id: pppdump.8,v 1.1 1999/04/01 11:44:55 paulus Exp $
+.TH PPPDUMP 8 "1 April 1999"
+.SH NAME
+pppdump \- convert PPP record file to readable format
+.SH SYNOPSIS
+.B pppdump
+[
+.B -h
+|
+.B -p
+[
+.B -d
+]] [
+.B -r
+] [
+.B -m \fImru
+] [
+.I file \fR...
+]
+.ti 12
+.SH DESCRIPTION
+The
+.B pppdump
+utility converts the files written using the \fIrecord\fR option of
+.B pppd
+into a human-readable format.  If one or more filenames are specified,
+.B pppdump
+will read each in turn; otherwise it will read its standard input.  In
+each case the result is written to standard output.
+.PP
+The options are as follows:
+.TP
+.B -h
+Prints the bytes sent and received in hexadecimal.  If neither this
+option nor the \fB-p\fR option is specified, the bytes are printed as
+the characters themselves, with non-printing and non-ASCII characters
+printed as escape sequences.
+.TP
+.B -p
+Collects the bytes sent and received into PPP packets, interpreting
+the async HDLC framing and escape characters and checking the FCS
+(frame check sequence) of each packet.  The packets are printed as hex
+values and as characters (non-printable characters are printed as
+`.').
+.TP
+.B -d
+With the \fB-p\fR option, this option causes
+.B pppdump
+to decompress packets which have been compressed with the BSD-Compress
+or Deflate methods.
+.TP
+.B -r
+Reverses the direction indicators, so that `sent' is printed for
+bytes or packets received, and `rcvd' is printed for bytes or packets
+sent.
+.TP
+.B -m \fImru
+Use \fImru\fR as the MRU (maximum receive unit) for both directions of
+the link when checking for over-length PPP packets (with the \fB-p\fR
+option).
+.SH SEE ALSO
+pppd(8)
index 926017d309e6036abac9ae4b6cd5033594ab630e..c86e0884d2d0f903c05a31f9baf50a936fb82207 100644 (file)
@@ -17,6 +17,7 @@ install-progs:
        cd chat; $(MAKE) install
        cd pppd; $(MAKE) install
        cd pppstats; $(MAKE) install
        cd chat; $(MAKE) install
        cd pppd; $(MAKE) install
        cd pppstats; $(MAKE) install
+       cd pppdump; $(MAKE) install
        cd sunos4; $(MAKE) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        cd sunos4; $(MAKE) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
index fc4f1934d1890fd2cfc17c956be3172578598b27..ffba7b3a58791da12dad55b76a13b3f2c0afed0c 100644 (file)
@@ -1,7 +1,7 @@
 #
 # ppp top level makefile for SVR4 and Solaris 2
 #
 #
 # ppp top level makefile for SVR4 and Solaris 2
 #
-# $Id: Makefile.top,v 1.7 1999/03/23 03:33:23 paulus Exp $
+# $Id: Makefile.top,v 1.8 1999/04/01 11:44:55 paulus Exp $
 #
 
 include svr4/Makedefs
 #
 
 include svr4/Makedefs
@@ -19,6 +19,7 @@ install-progs:
        cd chat; $(MAKE) install
        cd pppd; $(MAKE) install
        cd pppstats; $(MAKE) install
        cd chat; $(MAKE) install
        cd pppd; $(MAKE) install
        cd pppstats; $(MAKE) install
+       cd pppdump; $(MAKE) install
        cd svr4; $(MAKE) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        cd svr4; $(MAKE) install
 
 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \