check_icmp: Add IPv6 support (#1384)

Lars notifications at github.com
Tue Oct 13 10:37:55 CEST 2015


This commit adds IPv6 capabilities to check_icmp. It is now possible to
specify the address family using the arguments -4 (default) or -6.

To make the change possible we had to move the argument parsing previous
to creating the socket to be able to create it with the correct address
family.

This commit also fixes some gcc 4.9.2 compiler warnings. It has been
tested with several current linux distributions (debian, ubuntu, rh,
sles).

This commit fixes monitoring-plugins/monitoring-plugins#1291
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1384

-- Commit Summary --

  * check_icmp: Add IPv6 support

-- File Changes --

    M plugins-root/check_icmp.c (491)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1384
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20151013/76f165fc/attachment.html>


More information about the Devel mailing list