From: Florian Forster Date: Mon, 12 Jun 2006 21:03:05 +0000 (+0200) Subject: Update the manpages: Added information about setting the source address. X-Git-Tag: liboping-0.3.0~5 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=6fa5005cc728176caa79249705874f7aa8521eeb;p=liboping.git Update the manpages: Added information about setting the source address. --- diff --git a/src/mans/oping.pod b/src/mans/oping.pod index e6ef195..44cb6c3 100644 --- a/src/mans/oping.pod +++ b/src/mans/oping.pod @@ -36,6 +36,11 @@ Send (and receive) I ICMP packets, then stop and exit. Send one ICMP packet (per host) each I seconds. This can be a floating-point number to specify sub-second precision. +=item B<-I> I
+ +Set the source address to use. You B pass the interface name, as you +can with GNU's L. + =back =head1 BUGS diff --git a/src/mans/ping_setopt.pod b/src/mans/ping_setopt.pod index 9c73929..fefc8ca 100644 --- a/src/mans/ping_setopt.pod +++ b/src/mans/ping_setopt.pod @@ -38,7 +38,8 @@ values are 1 through 255. Default is B. The address family to use. The memory pointed to by I is interpreted as an integer and must be either B, B, or B. This option only effects hosts that are being added B this option has been -set. Default is B. +set. Default is B. If you change this option, and a source address +is set (see B) that setting will be reset. =item B @@ -47,6 +48,13 @@ null-terminated string. By default a 56 byte long string is used so that the packet size of an ICMPv4 packet is exactly 64 bytes. That's the behavior of the L command. +=item B + +Set the source address to use. The value passed must be a char-pointer to a +null-terminated string. This option will ignore the address family setting (as +set with B) and will set the object's address family according to +the source address assigned. + =back The I argument is a pointer to the new value. It must not be NULL. It is