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

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

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

<p>This commit fixes <a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1291" class="issue-link" title="check_icmp and IPv6">monitoring-plugins/monitoring-plugins#1291</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1384'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1384</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_icmp: Add IPv6 support</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1384/files#diff-0">plugins-root/check_icmp.c</a>
    (491)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1384.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1384">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2Rq-D58HdaysD7HvoRtcz0ZZLgyOks5o7LpjgaJpZM4GNrvl.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1384"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>