Skip to content

Commit 9d9cfca

Browse files
committed
rpcapd(8): Document the -a option better.
Make it clear that in the current implementation multiple "active" mode clients can be specified using a single -a flag. Explain what values a port takes and when it can be omitted.
1 parent 80f0e95 commit 9d9cfca

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

rpcapd/rpcapd.manadmin.in

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3131
.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
.\"
33-
.TH RPCAPD @MAN_ADMIN_COMMANDS@ "21 August 2024"
33+
.TH RPCAPD @MAN_ADMIN_COMMANDS@ "18 October 2025"
3434
.SH NAME
3535
rpcapd \- capture daemon to be controlled by a remote libpcap application
3636
.SH SYNOPSIS
@@ -260,14 +260,20 @@ Permit NULL authentication (usually used with the
260260
.B \-l
261261
flag).
262262
.TP
263-
.BI \-a " host" , "port"
264-
Run in active mode, connecting to host
263+
.BI \-a " host1" , "port1" , "host2" , "port2" , ... , "hostN" , "portN"
264+
Run in active mode, connecting to each host
265265
.I host
266-
on port
267-
.IR port .
268-
In case
266+
(which may be a hostname or an address) on TCP port
269267
.I port
270-
is omitted, the default port (2003) is used.
268+
(which may be either a number or a service name recognized by
269+
.BR getaddrinfo (3)
270+
or the word
271+
.B \%DEFAULT
272+
to mean port number 2003). Only the very last value of the port may be
273+
omitted (for example,
274+
.BI \-a " host"
275+
is a valid syntax), which means the same as
276+
.BR \%DEFAULT .
271277
.TP
272278
.B -v
273279
Run in active mode only; by default, if

0 commit comments

Comments
 (0)