From nobody@FreeBSD.org  Tue Feb 26 13:18:36 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 95234731
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 13:18:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 823E822F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 13:18:36 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1QDIZRJ064611
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 13:18:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1QDIZVC064610;
	Tue, 26 Feb 2013 13:18:35 GMT
	(envelope-from nobody)
Message-Id: <201302261318.r1QDIZVC064610@red.freebsd.org>
Date: Tue, 26 Feb 2013 13:18:35 GMT
From: Alexandre RAYNAUD <alexandre.raynaud@sallanches.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Possible Fping incompatibility with FreeBSD
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: jharris@widomaker.com

>Number:         176439
>Category:       ports
>Synopsis:       net/fping: Possible Fping incompatibility with FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ak
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 26 13:20:00 UTC 2013
>Closed-Date:    Mon Apr 22 15:46:57 UTC 2013
>Last-Modified:  Mon Apr 22 15:50:01 UTC 2013
>Originator:     Alexandre RAYNAUD
>Release:        9.1-RELEASE
>Organization:
MAIRIE DE SALLANCHES
>Environment:
FreeBSD zabbix 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
In precise circumstances, Fping 3.4 command gives inconsistent results on FreeBSD OS using either Fping 3.4 FreeBSD port or Fping 3.4 compilled from source.

From a FreeBSD box, using fping command to check an unreachable host_ip's availability located in the same subnet as the FreeBSD Host, fping get stuck at the second try returning many errors ("host_ip  error while sending ping: Host is down"). The first try will be ok.

If we wait few seconds (maybe 1 minute) between each test, the error doesn't occur.

The returned fping error message part "error while sending ping" is comming from fping source (fping.c) at line 1581
the second part of fping error message "Host is down" seems to come from /usr/src/sys/sys/errno.h line  133 (#define EHOSTDOWN       64              /* Host is down */).

As consequence of this issue, applications relying on Fping to check host availability cannot be fully trusted.

(ps : Using fping with ip located on external/routed network, fping always
works normally, without any error)
>How-To-Repeat:
To repeat the problem :  
-The  FreeBSD box from where we run fping command must have an interface configured with an ip address in the same subnet as the host_ip we want to check the availability.
The host_ip we want to check availability MUST BE DOWN. 
All the tests must be done with THE SAME HOST_IP.

Running {fping host_ip} for the first time return : {host_ip is unreachable} which is the expected output.
As soon as the firt command finish (important to not wait), running another {fping host_ip} return : 
{
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
host_ip error while sending ping: Host is down
..
}

Then pfing will get stuck and if you ctrl-c, it will stops and you will
get the normal fping output : {^Chost_ip is unreachable}

Remark : if you wait about 1 minute between 2 testS, no error occur.
>Fix:
Don't know how to fix the problem but it seems to be related with a caching issue.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 27 00:10:51 UTC 2013 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176439 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Feb 27 00:11:26 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176439 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: jharris@widomaker.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with FreeBSD
Date: Wed, 27 Feb 2013 00:11:25 UT

 Maintainer of net/fping,
 
 Please note that PR ports/176439 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176439
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Jason Harris <jharris@widomaker.com>
To: bug-followup@FreeBSD.org
Cc: Jason Harris <jharris@widomaker.com>
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with
 FreeBSD
Date: Wed, 27 Feb 2013 22:57:48 -0400

 --45Z9DzgjV8m4Oswq
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Feb 27, 2013 at 12:11:25AM +0000, Edwin Groothuis wrote:
 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/176439
 
 Sorry, but I can only reproduce that output with ping(8), not fping(8),
 which I just rebuilt from the latest port:
 
   %uname -a ; echo ; svn info . ; fping -v ; fping 192.168.1.99 ; fping 192=
 =2E168.1.99 ; fping 192.168.1.99 ; echo ; ping -r 192.168.1.99 | & head -5
   FreeBSD laptop 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:=
 23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERI=
 C  amd64
 
   Path: .
   Working Copy Root Path: /usr/ports
   URL: svn://svn.freebsd.org/ports/head/net/fping
   Repository Root: svn://svn.freebsd.org/ports
   Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
   Revision: 313076
   Node Kind: directory
   Schedule: normal
   Last Changed Author: zeising
   Last Changed Rev: 304773
   Last Changed Date: 2012-09-24 05:15:59 -0400 (Mon, 24 Sep 2012)
 
   fping: Version 3.4
   fping: comments to david@schweikert.ch
   192.168.1.99 is unreachable
   192.168.1.99 is unreachable
   192.168.1.99 is unreachable
 
   ping: sendto: Network is unreachable
   ping: sendto: Network is unreachable
   ping: sendto: Network is unreachable
   ping: sendto: Network is unreachable
   ping: sendto: Network is unreachable
 
 Is there something I'm missing?
 
 Thanks.
 
 --=20
 Jason Harris           |  PGP:  This _is_ PGP-signed, isn't it?
 jharris@widomaker.com _|_ Got photons? (TM), (C) 2004
 
 --45Z9DzgjV8m4Oswq
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (FreeBSD)
 
 iJ0EARECAF0FAlEux6xWGGh0dHA6Ly9rZXlzZXJ2ZXIua2pzbC5jb206MTEzNzEv
 cGtzL2xvb2t1cD9vcD1nZXQmc2VhcmNoPTB4RDM5REEwRTMmd2VoYXZleW91bm93
 PXRydWUACgkQSypIl9OdoONLDwCfa2B574SswUR+wQvWAAfeH48FEnsAoMBhn9+G
 ChW5vdwWtqnPypk+H9Hb
 =gyve
 -----END PGP SIGNATURE-----
 
 --45Z9DzgjV8m4Oswq--

From: "Raynaud Alexandre" <alexandre.raynaud@sallanches.fr>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with FreeBSD
Date: Sat, 2 Mar 2013 10:37:30 +0100

 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01CE1729.8F3EE819
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 Missed:  Unreachable IP address tested has to be in the same subnet as =
 the FreeBSD host from where fping is executed to reproduce the issue.
 
 =20
 
 MAIRIE DE SALLANCHES
 
 Direction des Syst=E8mes d'Information
 
 Alexandre RAYNAUD
 
 email: alexandre.raynaud@sallanches.fr
 
 =20
 
 
 ------_=_NextPart_001_01CE1729.8F3EE819
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
 xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
 xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
 xmlns=3D"http://www.w3.org/TR/REC-html40">
 
 <head>
 <meta http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
 <o:SmartTagType =
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
  name=3D"PersonName"/>
 <!--[if !mso]>
 <style>
 st1\:*{behavior:url(#default#ieooui) }
 </style>
 <![endif]-->
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{margin:0cm;
 	margin-bottom:.0001pt;
 	font-size:12.0pt;
 	font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;}
 span.EmailStyle17
 	{mso-style-type:personal-compose;
 	font-family:Arial;
 	color:windowtext;}
 @page Section1
 	{size:595.3pt 841.9pt;
 	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 
 </head>
 
 <body lang=3DFR link=3Dblue vlink=3Dpurple>
 
 <div class=3DSection1>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
 style=3D'font-size:
 10.0pt;font-family:Arial'>Missed:=A0 Unreachable IP address tested has =
 to be in
 the same subnet as the FreeBSD host from where fping is executed to =
 reproduce
 the issue.<o:p></o:p></span></font></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
 style=3D'font-size:
 10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
 
 <p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
 style=3D'font-size:
 10.0pt;font-family:Arial'>MAIRIE DE =
 SALLANCHES</span></font></b></strong><o:p></o:p></p>
 
 <p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
 style=3D'font-size:
 10.0pt;font-family:Arial'>Direction des Syst=E8mes =
 d'Information</span></font></b></strong><o:p></o:p></p>
 
 <p class=3DMsoNormal><st1:PersonName ProductID=3D"Alexandre RAYNAUD" =
 w:st=3D"on"><strong><b><font
  size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;font-family:Arial'>Alexandre
  RAYNAUD</span></font></b></strong></st1:PersonName><o:p></o:p></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'>email: <a =
 href=3D"mailto:alexandre.raynaud@sallanches.fr">alexandre.raynaud@sallanc=
 hes.fr</a></span></font><o:p></o:p></p>
 
 <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
 style=3D'font-size:
 12.0pt'><o:p>&nbsp;</o:p></span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------_=_NextPart_001_01CE1729.8F3EE819--

From: "Raynaud Alexandre" <alexandre.raynaud@sallanches.fr>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with FreeBSD
Date: Sat, 2 Mar 2013 20:24:02 +0100

 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01CE177B.7FAE8395
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 This issue has been declared as bug from fping maintainer=20
 
 =20
 
 https://github.com/schweikert/fping/issues/39
 
 =20
 
 =20
 
 MAIRIE DE SALLANCHES
 
 Direction des Syst=E8mes d'Information
 
 Alexandre RAYNAUD
 
 email: alexandre.raynaud@sallanches.fr
 
 =20
 
 
 ------_=_NextPart_001_01CE177B.7FAE8395
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
 xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
 xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
 xmlns=3D"http://www.w3.org/TR/REC-html40">
 
 <head>
 <meta http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
 <o:SmartTagType =
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
  name=3D"PersonName"/>
 <!--[if !mso]>
 <style>
 st1\:*{behavior:url(#default#ieooui) }
 </style>
 <![endif]-->
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{margin:0cm;
 	margin-bottom:.0001pt;
 	font-size:12.0pt;
 	font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;}
 span.EmailStyle17
 	{mso-style-type:personal-compose;
 	font-family:Arial;
 	color:windowtext;}
 @page Section1
 	{size:595.3pt 841.9pt;
 	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 
 </head>
 
 <body lang=3DFR link=3Dblue vlink=3Dpurple>
 
 <div class=3DSection1>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
 style=3D'font-size:
 10.0pt;font-family:Arial'>This issue has been declared as bug from fping
 maintainer <o:p></o:p></span></font></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
 style=3D'font-size:
 10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'><a =
 href=3D"https://github.com/schweikert/fping/issues/39">https://github.com=
 /schweikert/fping/issues/39</a><o:p></o:p></span></font></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
 
 <p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
 style=3D'font-size:
 10.0pt;font-family:Arial'>MAIRIE DE =
 SALLANCHES</span></font></b></strong><o:p></o:p></p>
 
 <p class=3DMsoNormal><strong><b><font size=3D2 face=3DArial><span =
 style=3D'font-size:
 10.0pt;font-family:Arial'>Direction des Syst=E8mes =
 d'Information</span></font></b></strong><o:p></o:p></p>
 
 <p class=3DMsoNormal><st1:PersonName ProductID=3D"Alexandre RAYNAUD" =
 w:st=3D"on"><strong><b><font
  size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;font-family:Arial'>Alexandre
  RAYNAUD</span></font></b></strong></st1:PersonName><o:p></o:p></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'>email: <a =
 href=3D"mailto:alexandre.raynaud@sallanches.fr">alexandre.raynaud@sallanc=
 hes.fr</a></span></font><o:p></o:p></p>
 
 <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
 style=3D'font-size:
 12.0pt'><o:p>&nbsp;</o:p></span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------_=_NextPart_001_01CE177B.7FAE8395--

From: Jason Harris <jharris@widomaker.com>
To: bug-followup@FreeBSD.org
Cc: Raynaud Alexandre <alexandre.raynaud@sallanches.fr>,
        Jason Harris <jharris@widomaker.com>
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with
 FreeBSD
Date: Mon, 4 Mar 2013 08:33:43 -0400

 --2fHTh5uZTiUOsy+g
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 OK, using the CORRECT subnet, I can reproduce it:
 
   %fping 10.0.1.99 ; sudo arp -d 10.0.1.99 ; fping 10.0.1.99 ; fping 10.0.1=
 =2E99
 
   %arp 10.0.1.99
   ? (10.0.1.99) at (incomplete) on rl0 expired [ethernet]
 
 The difference is if the unreachable IP is in the arp cache when fping star=
 ts.
 
 Note that ping does the same thing:
 
   %ping 10.0.1.99 ; sudo arp -d 10.0.1.99 ; ping 10.0.1.99 ; ping 10.0.1.99
 
 (and you have to hit ^C to stop every ping process).
 
 It looks like adding -c is a way to get fping to give up sooner:
 
   %fping 10.0.1.99 ; sudo arp -d 10.0.1.99 ; fping 10.0.1.99 ; fping -c 5 1=
 0.0.1.99
   10.0.1.99 is unreachable
   10.0.1.99 (10.0.1.99) deleted
   10.0.1.99 is unreachable
 
   10.0.1.99 : xmt/rcv/%loss =3D 5/0/100%
 
 The OP (Raynaud Alexandre) says this causes problems for zabbix, but only o=
 n FreeBSD.
 
 OP:  Is it one or both of ports/net-mgmt/zabbix{,2}-server?  [Note:  Reply =
 directly
 to this message, leaving the subject line and bug-followup@FreeBSD.org inta=
 ct,
 to update this PR.]
 
 Thanks.
 
 --=20
 Jason Harris           |  PGP:  This _is_ PGP-signed, isn't it?
 jharris@widomaker.com _|_ Got photons? (TM), (C) 2004
 
 --2fHTh5uZTiUOsy+g
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (FreeBSD)
 
 iJ0EARECAF0FAlE0lKdWGGh0dHA6Ly9rZXlzZXJ2ZXIua2pzbC5jb206MTEzNzEv
 cGtzL2xvb2t1cD9vcD1nZXQmc2VhcmNoPTB4RDM5REEwRTMmd2VoYXZleW91bm93
 PXRydWUACgkQSypIl9OdoOOTkgCeOjPt+wsYhtsjRQ4S653Mo2b7oVsAn1f6bbAE
 cBA9TQ5Bh3NsOtKV/oSC
 =9ab3
 -----END PGP SIGNATURE-----
 
 --2fHTh5uZTiUOsy+g--

From: "Raynaud Alexandre" <alexandre.raynaud@sallanches.fr>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: RE: ports/176439: net/fping: Possible Fping incompatibility with FreeBSD
Date: Tue, 5 Mar 2013 10:52:39 +0100

 I have only tested ports/net-mgmt/zabbix2-server (actually our zabbix =
 production server)
 
 Zabbix works perfectly, nothing wrong in that port. The only issue is =
 Zabbix icmpping simple check that relies on fping. And because fping =
 gives inconsistant results (as you describe it has to do with arp =
 cache), Zabbix icmpping simple check is not reliable to check host =
 availability.
 
 
 
 MAIRIE DE SALLANCHES
 Direction des Syst=E8mes d'Information
 Alexandre RAYNAUD
 email: alexandre.raynaud@sallanches.fr

From: Jason Harris <jharris@widomaker.com>
To: bug-followup@FreeBSD.org
Cc: Raynaud Alexandre <alexandre.raynaud@sallanches.fr>,
        Jason Harris <jharris@widomaker.com>
Subject: Re: ports/176439: net/fping: Possible Fping incompatibility with
 FreeBSD
Date: Tue, 5 Mar 2013 09:36:54 -0400

 --a8Wt8u1KmwUX3Y2C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Mar 04, 2013 at 08:33:43AM -0400, Jason Harris wrote:
 
 > The difference is if the unreachable IP is in the arp cache when fping st=
 arts.
 
 > The OP (Raynaud Alexandre) says this causes problems for zabbix, but only=
  on FreeBSD.
 =20
 This [MAINTAINER-approved/written] patch solves the reported inconsistency =
 based on
 the state of the ARP cache:
 
   %fping 10.0.1.99 ; fping 10.0.1.99 ; fping 10.0.1.99 ; fping 10.0.1.99
   10.0.1.99 is unreachable
   10.0.1.99 is unreachable
   10.0.1.99 is unreachable
   10.0.1.99 is unreachable
 
 Note that you need to "mkdir files && mv patch-fping.c files/" and then rei=
 nstall fping.
 
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 NotDashEscaped: You need GnuPG to verify this message
 
 diff -r 830ac78f8d7f Makefile
 --- a/Makefile	Tue Mar 05 08:51:42 2013 -0400
 +++ b/Makefile	Tue Mar 05 08:53:29 2013 -0400
 @@ -8,6 +8,7 @@
 =20
  PORTNAME=3D	fping
  PORTVERSION=3D	3.4
 +PORTREVISION=3D	1
  CATEGORIES=3D	net ipv6
  MASTER_SITES=3D   http://fping.org/dist/
 =20
 diff -r 830ac78f8d7f files/patch-fping.c
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
 +++ b/files/patch-fping.c	Tue Mar 05 08:53:29 2013 -0400
 @@ -0,0 +1,16 @@
 +diff -r c564b3055165 src/fping.c
 +--- src/fping.c	Tue Mar 05 08:13:11 2013 -0400
 ++++ src/fping.c	Tue Mar 05 08:45:33 2013 -0400
 +@@ -1572,7 +1572,11 @@
 +     n =3D sendto( s, buffer, ping_pkt_size, 0,
 +         ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) );
 +=20
 +-    if( n < 0 || n !=3D ping_pkt_size )
 ++    if(( n < 0 || n !=3D ping_pkt_size)
 ++#if defined( EHOSTDOWN )
 ++                                      && errno !=3D EHOSTDOWN
 ++#endif
 ++                                                            )
 +     {
 +         if( verbose_flag || unreachable_flag )
 +         {
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (FreeBSD)
 
 iJ0EARECAF0FAlE16tJWGGh0dHA6Ly9rZXlzZXJ2ZXIua2pzbC5jb206MTEzNzEv
 cGtzL2xvb2t1cD9vcD1nZXQmc2VhcmNoPTB4RDM5REEwRTMmd2VoYXZleW91bm93
 PXRydWUACgkQSypIl9OdoOOpngCeM7o5Fiyz+tNd913oIw9eQgx3bFIAnjzizqhw
 i0Ah52bnldvJGfXn/nwT
 =3DR4KM
 -----END PGP SIGNATURE-----
 
 --=20
 Jason Harris           |  PGP:  This _is_ PGP-signed, isn't it?
 jharris@widomaker.com _|_ Got photons? (TM), (C) 2004
 
 --a8Wt8u1KmwUX3Y2C
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (FreeBSD)
 
 iJ0EARECAF0FAlE19PZWGGh0dHA6Ly9rZXlzZXJ2ZXIua2pzbC5jb206MTEzNzEv
 cGtzL2xvb2t1cD9vcD1nZXQmc2VhcmNoPTB4RDM5REEwRTMmd2VoYXZleW91bm93
 PXRydWUACgkQSypIl9OdoOP7MwCeMmQFoOgnD34bWP7l17ODaho5N5YAoMFkpHGt
 Kp2jHGnSjA71c0iyOMPy
 =bmmK
 -----END PGP SIGNATURE-----
 
 --a8Wt8u1KmwUX3Y2C--
State-Changed-From-To: feedback->closed 
State-Changed-By: ak 
State-Changed-When: Mon Apr 22 15:46:56 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176439 
Responsible-Changed-From-To: freebsd-ports-bugs->ak 
Responsible-Changed-By: ak 
Responsible-Changed-When: Mon Apr 22 15:47:27 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176439 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176439: commit references a PR
Date: Mon, 22 Apr 2013 15:44:49 +0000 (UTC)

 Author: ak
 Date: Mon Apr 22 15:44:41 2013
 New Revision: 316242
 URL: http://svnweb.freebsd.org/changeset/ports/316242
 
 Log:
   - Add timestamps option (used by netperf-wrapper) [1]
   - Fix fping issue with the unreachable ip in the arp cache [2]
   - Convert Makefile headers to new style
   
   PR:	ports/177368 [1]
   PR:	ports/176439 [2]
   Submitted by:	Lars Eggert <lars@eggert.org> [1], Alexandre RAYNAUD <alexandre.raynaud@sallanches.fr> [2]
   Approved by:	Jason Harris <jharris@widomaker.com> (maintainer)
 
 Added:
   head/net/fping/files/
   head/net/fping/files/patch-fping.c   (contents, props changed)
 Modified:
   head/net/fping/Makefile   (contents, props changed)
   head/net/fping/distinfo   (contents, props changed)
 
 Modified: head/net/fping/Makefile
 ==============================================================================
 --- head/net/fping/Makefile	Mon Apr 22 15:37:34 2013	(r316241)
 +++ head/net/fping/Makefile	Mon Apr 22 15:44:41 2013	(r316242)
 @@ -1,22 +1,23 @@
 -# ex:ts=8
 -# Ports collection makefile for:  fping
 -# Date created:			  Tue Mar 25, 1997
 -# Whom:				  David O'Brien (obrien@NUXI.com)
 -#
 +# Created by: David O'Brien (obrien@NUXI.com)
  # $FreeBSD$
 -#
  
  PORTNAME=	fping
  PORTVERSION=	3.4
 +PORTREVISION=	1
  CATEGORIES=	net ipv6
 -MASTER_SITES=   http://fping.org/dist/
 +MASTER_SITES=	http://fping.org/dist/
 +
 +PATCH_SITES=	https://raw.github.com/tohojo/netperf-wrapper/master/misc/
 +PATCH_DIST_STRIP=	-p1
  
  MAINTAINER=	jharris@widomaker.com
  COMMENT=	Quickly ping N hosts w/o flooding the network
  
 +OPTIONS_DEFINE=		TIMESTAMPS
  OPTIONS_MULTI=		NET
  OPTIONS_MULTI_NET=	IPV4 IPV6
  OPTIONS_DEFAULT=	IPV4
 +TIMESTAMPS_DESC=	Enable timestamps
  
  GNU_CONFIGURE=	yes
  CONFIGURE_ARGS=	--bindir="${PREFIX}/sbin"
 @@ -39,6 +40,10 @@ MAN8+=	fping6.8
  CONFIGURE_ARGS+=--disable-ipv6
  .endif
  
 +.if ${PORT_OPTIONS:MTIMESTAMPS}
 +PATCHFILES+=	fping_timestamps.patch
 +.endif
 +
  post-install:
  .if ${PORT_OPTIONS:MIPV4}
  	@${STRIP_CMD} ${PREFIX}/sbin/fping
 
 Modified: head/net/fping/distinfo
 ==============================================================================
 --- head/net/fping/distinfo	Mon Apr 22 15:37:34 2013	(r316241)
 +++ head/net/fping/distinfo	Mon Apr 22 15:44:41 2013	(r316242)
 @@ -1,2 +1,4 @@
  SHA256 (fping-3.4.tar.gz) = d42528af4931f16a8e3438bd4a45cfdd72163ad8835a3c95351c336a26e56afe
  SIZE (fping-3.4.tar.gz) = 142986
 +SHA256 (fping_timestamps.patch) = 5e07b36e2029a042de79536c30d852a7ee65d90216747ca68fe54eba94798f3a
 +SIZE (fping_timestamps.patch) = 2211
 
 Added: head/net/fping/files/patch-fping.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/fping/files/patch-fping.c	Mon Apr 22 15:44:41 2013	(r316242)
 @@ -0,0 +1,16 @@
 +diff -r c564b3055165 src/fping.c
 +--- src/fping.c	Tue Mar 05 08:13:11 2013 -0400
 ++++ src/fping.c	Tue Mar 05 08:45:33 2013 -0400
 +@@ -1572,7 +1572,11 @@
 +     n = sendto( s, buffer, ping_pkt_size, 0,
 +         ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) );
 + 
 +-    if( n < 0 || n != ping_pkt_size )
 ++    if(( n < 0 || n != ping_pkt_size)
 ++#if defined( EHOSTDOWN )
 ++                                      && errno != EHOSTDOWN
 ++#endif
 ++                                                            )
 +     {
 +         if( verbose_flag || unreachable_flag )
 +         {
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
