From dwmalone@maths.tcd.ie  Sun Jul 29 06:32:17 2012
Return-Path: <dwmalone@maths.tcd.ie>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 6AF701065677
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2012 06:32:17 +0000 (UTC)
	(envelope-from dwmalone@maths.tcd.ie)
Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b])
	by mx1.freebsd.org (Postfix) with SMTP id D5EE98FC24
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2012 06:32:16 +0000 (UTC)
Received: from walton.maths.tcd.ie  ([134.226.81.10] helo=walton.maths.tcd.ie)
          by salmon.maths.tcd.ie with SMTP id <aa42816@salmon>;
          29 Jul 2012 07:32:15 +0100 (BST)
Received: by walton.maths.tcd.ie (Postfix, from userid 238)
	id 0F642730D8; Sun, 29 Jul 2012 07:32:14 +0100 (IST)
Message-Id: <20120729063214.GA91614@walton.maths.tcd.ie>
Date: Sun, 29 Jul 2012 07:32:14 +0100
From: David Malone <dwmalone@maths.tcd.ie>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
In-Reply-To: <201207290528.q6T5SRLf078094@red.freebsd.org>
Subject: Re: misc/170243: ping: useless/uninformative error message
References: <201207290528.q6T5SRLf078094@red.freebsd.org>

>Number:         170250
>Category:       bin
>Synopsis:       Re: bin/170243: ping(8): useless/uninformative error message
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 29 06:40:01 UTC 2012
>Closed-Date:    Mon Jul 30 03:17:04 UTC 2012
>Last-Modified:  Mon Jul 30 03:17:04 UTC 2012
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 > # ping 10.11.19.54
 
 > # netstat -nr
 > default            X.X.X.X            UG1         0       93 vlan40
 > 10.0.0.0/8         10.5.0.33          UGS         0       13 vlan40
 > 10.5.0.0/24        10.7.26.2          UGS         0        0 vlan74
 > 10.5.0.17          link#10            UH          0        6    lo0
 > 10.5.0.18          link#10            UH          0        0    lo0 =>
 > 10.5.0.18/32       10.11.19.54        UGS         0        0 vlan40
 > 10.5.0.32/27       link#54            U           0     4608 vlan40
 > 10.5.0.37          link#54            UHS         1       89    lo0
 > 10.10.0.0/16       10.11.19.50        UGS         0       16 vlan40
 > 10.10.15.0/24      10.11.19.52        UGS         0        0 vlan40
 > 10.11.6.0/23       10.11.19.52        UGS         0        5 vlan40
 > 10.11.16.0/24      10.11.19.50        UGS         0        0 vlan40
 > 10.11.19.248/29    10.11.19.52        UGS         0        0 vlan40
 > 10.11.21.0/24      10.11.19.52        UGS         0        0 vlan40
 
 I might have read this wrong, but, it looks like the GW for 10.11.19.54
 is 10.11.19.52, because of the second last route. However, 10.11.19.52
 doesn't look to be a local network (because there is no "link#..."
 route), so the GW is invalid. Hence, when ping calls the sendto()
 system call, it returns "Invalid argument", because the GW is
 invalid.
 
 	David.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 30 03:15:56 UTC 2012 
State-Changed-Why:  
Misfiled followup to bin/170243; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jul 30 03:15:56 UTC 2012 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=170250 
>Unformatted:
