diff options
| author | David M. Syzdek <david.syzdek@acsalaska.com> | 2022-07-25 10:57:09 -0800 |
|---|---|---|
| committer | David M. Syzdek <david.syzdek@acsalaska.com> | 2022-07-25 10:59:13 -0800 |
| commit | c42d46c6a7a4a59c37e505ab2bcae1963f74ff7f (patch) | |
| tree | 98689bdb45147215a705316bf286079170565448 | |
| parent | 216c696039a53d3b5b94c7ef168a97cbff4fcf8e (diff) | |
| download | akcom-udpecho-c42d46c6a7a4a59c37e505ab2bcae1963f74ff7f.tar.gz akcom-udpecho-c42d46c6a7a4a59c37e505ab2bcae1963f74ff7f.tar.bz2 akcom-udpecho-c42d46c6a7a4a59c37e505ab2bcae1963f74ff7f.tar.xz akcom-udpecho-c42d46c6a7a4a59c37e505ab2bcae1963f74ff7f.zip | |
docs: adding initial manpages
| -rw-r--r-- | ChangeLog.md | 1 | ||||
| -rw-r--r-- | Makefile.am | 12 | ||||
| -rw-r--r-- | docs/akcom-udpecho.8.in | 108 | ||||
| -rw-r--r-- | docs/akcom-udpechod.8.in | 114 |
4 files changed, 234 insertions, 1 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index abb8bf8..c9ccb6a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md | |||
| @@ -12,6 +12,7 @@ All rights reserved. | |||
| 12 | - akcom-udpecho: fixing misc portability issues (syzdek) | 12 | - akcom-udpecho: fixing misc portability issues (syzdek) |
| 13 | - akcom-udpechod: fixing misc portability issues (syzdek) | 13 | - akcom-udpechod: fixing misc portability issues (syzdek) |
| 14 | - autotools: removing GNU libtool from manual build (syzdek) | 14 | - autotools: removing GNU libtool from manual build (syzdek) |
| 15 | - docs: adding initial man pages (syzdek) | ||
| 15 | 16 | ||
| 16 | 0.2.0 | 17 | 0.2.0 |
| 17 | ----- | 18 | ----- |
diff --git a/Makefile.am b/Makefile.am index c716c5c..814eaf4 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -72,7 +72,8 @@ lib_LIBRARIES = | |||
| 72 | lib_LTLIBRARIES = | 72 | lib_LTLIBRARIES = |
| 73 | EXTRA_LIBRARIES = | 73 | EXTRA_LIBRARIES = |
| 74 | EXTRA_LTLIBRARIES = | 74 | EXTRA_LTLIBRARIES = |
| 75 | man_MANS = | 75 | man_MANS = docs/akcom-udpecho.8 \ |
| 76 | docs/akcom-udpechod.8 | ||
| 76 | noinst_HEADERS = | 77 | noinst_HEADERS = |
| 77 | noinst_PROGRAMS = | 78 | noinst_PROGRAMS = |
| 78 | noinst_LIBRARIES = | 79 | noinst_LIBRARIES = |
| @@ -85,6 +86,8 @@ TESTS = | |||
| 85 | XFAIL_TESTS = | 86 | XFAIL_TESTS = |
| 86 | EXTRA_MANS = | 87 | EXTRA_MANS = |
| 87 | EXTRA_DIST = $(noinst_HEADERS) \ | 88 | EXTRA_DIST = $(noinst_HEADERS) \ |
| 89 | docs/akcom-udpecho.8.in \ | ||
| 90 | docs/akcom-udpechod.8.in \ | ||
| 88 | docs/TR-143.pdf \ | 91 | docs/TR-143.pdf \ |
| 89 | docs/rfc862.txt \ | 92 | docs/rfc862.txt \ |
| 90 | ChangeLog.md \ | 93 | ChangeLog.md \ |
| @@ -129,6 +132,13 @@ include contrib/bindletools/build-aux/makefile-version.am | |||
| 129 | # custom targets | 132 | # custom targets |
| 130 | .PHONY: | 133 | .PHONY: |
| 131 | 134 | ||
| 135 | docs/akcom-udpecho.8: Makefile $(srcdir)/docs/akcom-udpecho.8.in | ||
| 136 | @$(do_subst_dt) | ||
| 137 | |||
| 138 | |||
| 139 | docs/akcom-udpechod.8: Makefile $(srcdir)/docs/akcom-udpechod.8.in | ||
| 140 | @$(do_subst_dt) | ||
| 141 | |||
| 132 | 142 | ||
| 133 | # local targets | 143 | # local targets |
| 134 | install-exec-local: | 144 | install-exec-local: |
diff --git a/docs/akcom-udpecho.8.in b/docs/akcom-udpecho.8.in new file mode 100644 index 0000000..5bfbeb2 --- /dev/null +++ b/docs/akcom-udpecho.8.in | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | .\" | ||
| 2 | .\" Alaska Communications UDP Echo Tools | ||
| 3 | .\" Copyright (C) 2022 Alaska Communications | ||
| 4 | .\" | ||
| 5 | .\" Redistribution and use in source and binary forms, with or without | ||
| 6 | .\" modification, are permitted provided that the following conditions are | ||
| 7 | .\" met: | ||
| 8 | .\" | ||
| 9 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 10 | .\" notice, this list of conditions and the following disclaimer. | ||
| 11 | .\" | ||
| 12 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | .\" notice, this list of conditions and the following disclaimer in the | ||
| 14 | .\" documentation and/or other materials provided with the distribution. | ||
| 15 | .\" | ||
| 16 | .\" 3. Neither the name of the copyright holder nor the names of its | ||
| 17 | .\" contributors may be used to endorse or promote products derived from | ||
| 18 | .\" this software without specific prior written permission. | ||
| 19 | .\" | ||
| 20 | .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 21 | .\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 22 | .\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 23 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR | ||
| 24 | .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 25 | .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| 26 | .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 27 | .\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 28 | .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 29 | .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 30 | .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 31 | .\" | ||
| 32 | .TH "AKCOM-UDPECHO" "8" "@RELEASE_MONTH@" "Alaska Communications" "Alaska Communications UDP Echo Tools" | ||
| 33 | .SH NAME | ||
| 34 | akcom-udpecho - a shell utility for testing UDP echo servers | ||
| 35 | |||
| 36 | .SH SYNOPSIS | ||
| 37 | \fBakcom-udpecho\fR [\fBOPTONS\fR] \fIhost\fR [\fIport\fR] | ||
| 38 | |||
| 39 | .SH DESCRIPTION | ||
| 40 | \fBakcom-udpecho\fR is a shell utility for testing UDP echo servers. | ||
| 41 | \fBakcom-udpecho\fR supports for RFC 862 compliant servers and TR-143 | ||
| 42 | UDPEchoPlus compliant servers. If the UDP Echo variant is not specified, | ||
| 43 | \fBakcom-udpecho\fR will attempt to determine the variant by examining the | ||
| 44 | \fITestRespSN\fR, \fITestRespRecvTimeStamp\fR, and \fITestRespReplyTimeStamp\fR | ||
| 45 | fields of the UDPEchoPlus packet for non-zero values. | ||
| 46 | |||
| 47 | .SH OPTIONS | ||
| 48 | |||
| 49 | .TP 14 | ||
| 50 | \fB-4\fR | ||
| 51 | connect via IPv4 only | ||
| 52 | |||
| 53 | .TP 14 | ||
| 54 | \fB-6\fR | ||
| 55 | connect via IPv6 only | ||
| 56 | |||
| 57 | .TP 14 | ||
| 58 | \fB-c\fR \fIcount\fR | ||
| 59 | stop after sending count packets | ||
| 60 | |||
| 61 | .TP 14 | ||
| 62 | \fB-d\fR, \fB--debug\fR | ||
| 63 | print headers of received packets. Useful for troubleshooting remote | ||
| 64 | UDPEchoPlus servers. | ||
| 65 | |||
| 66 | .TP 14 | ||
| 67 | \fB-e\fR, \fB--echoplus\fR | ||
| 68 | expect responses from a TR-143 UDPEchoPlus compliant server. The default is to | ||
| 69 | attempt to detect UDPEchoPlus responses. | ||
| 70 | |||
| 71 | .TP 14 | ||
| 72 | \fB-h\fR, \fB--help\fR | ||
| 73 | print usage information and exit. | ||
| 74 | |||
| 75 | .TP 14 | ||
| 76 | \fB-i\fR \interval\fR | ||
| 77 | interval in seconds between sending packets (default: 1 sec) | ||
| 78 | |||
| 79 | .TP 14 | ||
| 80 | \fB-r\fR, \fB--rfc\fR | ||
| 81 | expect responses from an RFC 862 compliant server . The default is to | ||
| 82 | attempt to detect TR-143 UDPEchoPlus responses. | ||
| 83 | |||
| 84 | .TP 14 | ||
| 85 | \fB-q\fR, \fB--quiet\fR, \fB--silent\fR | ||
| 86 | do not print messages | ||
| 87 | |||
| 88 | .TP 14 | ||
| 89 | \fB-s\fR \isize\fR | ||
| 90 | size of data bytes to be sent. The minimum data size is 40 bytes. | ||
| 91 | |||
| 92 | .TP 14 | ||
| 93 | \fB-t\fR \isec\fR | ||
| 94 | response timeout (default: 5 sec) | ||
| 95 | |||
| 96 | .TP 14 | ||
| 97 | \fB-V\fR, \fB--version\fR | ||
| 98 | print version number and exit | ||
| 99 | |||
| 100 | .TP 14 | ||
| 101 | \fB-v\fR, \fB--verbose\fR | ||
| 102 | enable verbose output | ||
| 103 | |||
| 104 | .SH SEE ALSO | ||
| 105 | .BR akcom-udpechod (8) | ||
| 106 | |||
| 107 | .SH AUTHOR | ||
| 108 | David M. Syzdek <david.syzdek@acsalaska.com> | ||
diff --git a/docs/akcom-udpechod.8.in b/docs/akcom-udpechod.8.in new file mode 100644 index 0000000..78876ab --- /dev/null +++ b/docs/akcom-udpechod.8.in | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | .\" | ||
| 2 | .\" Alaska Communications UDP Echo Tools | ||
| 3 | .\" Copyright (C) 2022 Alaska Communications | ||
| 4 | .\" | ||
| 5 | .\" Redistribution and use in source and binary forms, with or without | ||
| 6 | .\" modification, are permitted provided that the following conditions are | ||
| 7 | .\" met: | ||
| 8 | .\" | ||
| 9 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 10 | .\" notice, this list of conditions and the following disclaimer. | ||
| 11 | .\" | ||
| 12 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 13 | .\" notice, this list of conditions and the following disclaimer in the | ||
| 14 | .\" documentation and/or other materials provided with the distribution. | ||
| 15 | .\" | ||
| 16 | .\" 3. Neither the name of the copyright holder nor the names of its | ||
| 17 | .\" contributors may be used to endorse or promote products derived from | ||
| 18 | .\" this software without specific prior written permission. | ||
| 19 | .\" | ||
| 20 | .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 21 | .\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 22 | .\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 23 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR | ||
| 24 | .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 25 | .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| 26 | .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 27 | .\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 28 | .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 29 | .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 30 | .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 31 | .\" | ||
| 32 | .TH "AKCOM-UDPECHOD" "8" "@RELEASE_MONTH@" "Alaska Communications" "Alaska Communications UDP Echo Tools" | ||
| 33 | .SH NAME | ||
| 34 | akcom-udpechod - a simple UDP echo server | ||
| 35 | |||
| 36 | .SH SYNOPSIS | ||
| 37 | \fBakcom-udpechod\fR [\fBOPTONS\fR] | ||
| 38 | |||
| 39 | .SH DESCRIPTION | ||
| 40 | \fBakcom-udpechod\fR is simple UDP echo server. Currently \fBakcom-udpechod\fR | ||
| 41 | processes each packet sequentially which causes all packets received before | ||
| 42 | previous packets have been processed to be skewed when using either the | ||
| 43 | \fB-D\fR or \fB-d\fR options. | ||
| 44 | |||
| 45 | .SH OPTIONS | ||
| 46 | |||
| 47 | .TP 10 | ||
| 48 | \fB-d\fR \fInum\fR, \fB--drop\fR=\fInum\fR, | ||
| 49 | set the packet drop probability [0-99]. This option should not be used if | ||
| 50 | multiple clients will be using the same UDP echo server instance. | ||
| 51 | (default: 0%) | ||
| 52 | |||
| 53 | .TP 10 | ||
| 54 | \fB-D\fR \fIusec\fR, \fB--delay\fR=\fIusec\fR | ||
| 55 | set echo delay range to microseconds. This option should not be used if | ||
| 56 | multiple clients will be using the same UDP echo server instance. | ||
| 57 | (default: 0 us) | ||
| 58 | |||
| 59 | .TP 10 | ||
| 60 | \fB-e\fB, \fB--echoplus\fR | ||
| 61 | run as a TR-143 UDPEchoPlus server. This option is not compatible with | ||
| 62 | RFC 862 UDP echo clients. | ||
| 63 | |||
| 64 | .TP 10 | ||
| 65 | \fB-f\fR \fIstr\fR, \fB--facility\fR=\fIstr\fR | ||
| 66 | set syslog facility (default: daemon) | ||
| 67 | |||
| 68 | .TP 10 | ||
| 69 | \fB-g\fR \fIgid\fR, \fB--group\fR=\fIgid\fR | ||
| 70 | setgid to gid (default: none) | ||
| 71 | |||
| 72 | .TP 10 | ||
| 73 | \fB-h\fR, \fB--help\fR | ||
| 74 | print this help and exit | ||
| 75 | |||
| 76 | .TP 10 | ||
| 77 | \fB-l\fR \fIaddr\fR, \fB--listen\fR=\fIaddr\fR | ||
| 78 | bind to IP address (default: all) | ||
| 79 | |||
| 80 | .TP 10 | ||
| 81 | \fB-n\fR, \fB--foreground\fR | ||
| 82 | do not fork | ||
| 83 | |||
| 84 | .TP 10 | ||
| 85 | \fB-p\fR \fIport\fR, \fB--port\fR=\fIport\fR | ||
| 86 | list on port number (default: 30006) | ||
| 87 | |||
| 88 | .TP 10 | ||
| 89 | \fB-P\fR \fIfile\fR, \fB--pidfile\fR=\fIfile\fR | ||
| 90 | PID file (default: /var/run/akcom-udpechod.pid) | ||
| 91 | |||
| 92 | .TP 10 | ||
| 93 | \fB-r\fR, \fB--rfc\fR | ||
| 94 | run as an RFC 862 compliant echo protocol. This option may be incompatible | ||
| 95 | with TR-143 UDPEchoPlus clients. This option is compatible with the TR-143 | ||
| 96 | UDPEchoPlus mode of \fBakcom-udpecho\fR (8). (default) | ||
| 97 | |||
| 98 | .TP 10 | ||
| 99 | \fB-u\fR \fIuid\fR, \fB--user\fR=\fUuid\fR | ||
| 100 | setuid to uid (default: none) | ||
| 101 | |||
| 102 | .TP 10 | ||
| 103 | \fB-v\fR, \fB--verbose\fR | ||
| 104 | enable verbose output | ||
| 105 | |||
| 106 | .TP 10 | ||
| 107 | \fB-V\fR, \fB--version\fR | ||
| 108 | print version number and exit | ||
| 109 | |||
| 110 | .SH SEE ALSO | ||
| 111 | .BR akcom-udpecho (8) | ||
| 112 | |||
| 113 | .SH AUTHOR | ||
| 114 | David M. Syzdek <david.syzdek@acsalaska.com> | ||
