X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmans%2Fping_setopt.pod;h=f8c4ff66ed4b6a1770f3c702aefcb3394662f974;hb=e67d7327869b9e7e91cdf1971670d29c8bd22e64;hp=5a986c28bc2a17532201baadd9a99829b432291f;hpb=d5d694cbc340ef730d0135bc55722004269913dd;p=liboping.git diff --git a/src/mans/ping_setopt.pod b/src/mans/ping_setopt.pod index 5a986c2..f8c4ff6 100644 --- a/src/mans/ping_setopt.pod +++ b/src/mans/ping_setopt.pod @@ -10,14 +10,16 @@ ping_setopt - Set options for a liboping object =head1 DESCRIPTION -The B method sets options that effect all hosts associated with +The B method sets options that apply to all hosts associated with the object I and hosts that are yet to be added to the object. -The I argument is a pointer to an liboping object, as returned by +The I argument is a pointer to an I object, as returned by L. The I argument specifies the option to set. Use one of the following -constants: +constants. You can check if the required constant is supported by the library +at compile time using C<#ifdef>. It is recommended to check for desired +features using the C define. =over 4 @@ -37,7 +39,7 @@ 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 +option only affects hosts that are being added B this option has been set. Default is B. If you change this option, and a source address is set (see B) that setting will be reset. @@ -51,14 +53,38 @@ 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 +null-terminated string specifying either a numerical network address or +network hostname. 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. +=item B + +Set the outgoing network device to be used. The value passed must be a +char-pointer to a null-terminated string specifying an interface name +(e.Eg. C). Please note that this might not be supported by all +operating systems. In that case, B sets the error to +C. + +=item B + +Sets the I flags that should be used when crafting ICMP and +ICMPv6 packets. The memory pointed to by I is interpreted as a C. +The byte is passed to L without modification, using the +C (IPv4) or C (IPv6) option. It is the caller's +responsibility to chose a valid bit combination. For details, read the L +and L manual pages, as well as I2474>. + +=item B + +Mark (as in netfilter) outgoing packets using the SO_MARK socket option. Takes +an int* pointer as a value. Setting this requires CAP_NET_ADMIN under Linux. +Fails with C on platforms which don't have SO_MARK. + =back The I argument is a pointer to the new value. It must not be NULL. It is -dereferences depending on the value of the I argument, see above. The +dereferenced depending on the value of the I argument, see above. The memory pointed to by I is not changed. =head1 RETURN VALUE @@ -72,7 +98,7 @@ L =head1 AUTHOR -liboping is written by Florian octo Forster Eocto at verplant.orgE. -It's homepage can be found at L. +liboping is written by Florian "octo" Forster Eff at octo.itE. +Its homepage can be found at L. -(c) 2005-2009 by Florian octo Forster. +Copyright (c) 2005-2016 by Florian "octo" Forster.