From nobody@FreeBSD.org  Fri Aug 31 14:26:43 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8244C106572B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2012 14:26:43 +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 6E1638FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2012 14:26:43 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7VEQg5m037678
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Aug 2012 14:26:42 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7VEQgw3037660;
	Fri, 31 Aug 2012 14:26:42 GMT
	(envelope-from nobody)
Message-Id: <201208311426.q7VEQgw3037660@red.freebsd.org>
Date: Fri, 31 Aug 2012 14:26:42 GMT
From: Eugen Konkov <kes-kes@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ping: sendto: Invalid argument
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171209
>Category:       kern
>Synopsis:       ping: sendto: Invalid argument
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 31 14:30:16 UTC 2012
>Closed-Date:    
>Last-Modified:  Sat Sep  1 13:10:04 UTC 2012
>Originator:     Eugen Konkov
>Release:        9.1-PRERELEASE
>Organization:
ISP FreeLine
>Environment:
FreeBSD newflux 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #4 r239949: Fri Aug 31 16:57:42 EEST 2012     root@newflux:/usr/obj/usr/src/sys/KES_KERN_v9  i386

>Description:
# ping 10.11.6.1
PING 10.11.6.1 (10.11.6.1): 56 data bytes
ping: sendto: Invalid argument
ping: sendto: Invalid argument
ping: sendto: Invalid argument
^C
--- 10.11.6.1 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

# traceroute 10.11.6.1
traceroute to 10.11.6.1 (10.11.6.1), 64 hops max, 40 byte packets
traceroute: sendto: Invalid argument
 1 traceroute: wrote 10.11.6.1 40 chars, ret=-1
 *traceroute: sendto: Invalid argument
traceroute: wrote 10.11.6.1 40 chars, ret=-1
 *traceroute: sendto: Invalid argument
traceroute: wrote 10.11.6.1 40 chars, ret=-1

# netstat -nrW | grep 10.11.6
10.11.6.0/23       10.11.19.52        UGS         0       41   1500  vlan408


# ping 10.11.19.52
PING 10.11.19.52 (10.11.19.52): 56 data bytes
64 bytes from 10.11.19.52: icmp_seq=0 ttl=63 time=0.900 ms
64 bytes from 10.11.19.52: icmp_seq=1 ttl=63 time=77.580 ms
^C
--- 10.11.19.52 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.900/39.240/77.580/38.340 ms

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Eugen Konkov <kes-kes@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/171209: ping: sendto: Invalid argument
Date: Fri, 31 Aug 2012 22:47:46 +0300

 in var log messages I get next:
 
 kernel: arpresolve: can't allocate llinfo for 10.11.19.52
 
 That all mean that:
  you have a route via gateway that is not on your LAN
 
 
 ifconfig rl0 add 192.168.0.2/24
 route add default 192.168.1.1
 
 192.168.1.1 is not on your LAN 192.168.0.0/24
 
State-Changed-From-To: open->feedback 
State-Changed-By: glebius 
State-Changed-When: Fri Aug 31 20:03:38 UTC 2012 
State-Changed-Why:  
Feedback requested. 

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

From: Gleb Smirnoff <glebius@FreeBSD.org>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/171209: ping: sendto: Invalid argument
Date: Sat, 1 Sep 2012 00:00:35 +0400

 On Fri, Aug 31, 2012 at 02:26:42PM +0000, Eugen Konkov wrote:
 E> >Description:
 E> # ping 10.11.6.1
 E> PING 10.11.6.1 (10.11.6.1): 56 data bytes
 E> ping: sendto: Invalid argument
 E> ping: sendto: Invalid argument
 E> ping: sendto: Invalid argument
 E> ^C
 E> --- 10.11.6.1 ping statistics ---
 E> 3 packets transmitted, 0 packets received, 100.0% packet loss
 E> 
 E> # traceroute 10.11.6.1
 E> traceroute to 10.11.6.1 (10.11.6.1), 64 hops max, 40 byte packets
 E> traceroute: sendto: Invalid argument
 E>  1 traceroute: wrote 10.11.6.1 40 chars, ret=-1
 E>  *traceroute: sendto: Invalid argument
 E> traceroute: wrote 10.11.6.1 40 chars, ret=-1
 E>  *traceroute: sendto: Invalid argument
 E> traceroute: wrote 10.11.6.1 40 chars, ret=-1
 E> 
 E> # netstat -nrW | grep 10.11.6
 E> 10.11.6.0/23       10.11.19.52        UGS         0       41   1500  vlan408
 E> 
 E> # ping 10.11.19.52
 E> PING 10.11.19.52 (10.11.19.52): 56 data bytes
 E> 64 bytes from 10.11.19.52: icmp_seq=0 ttl=63 time=0.900 ms
 E> 64 bytes from 10.11.19.52: icmp_seq=1 ttl=63 time=77.580 ms
 E> ^C
 E> --- 10.11.19.52 ping statistics ---
 E> 2 packets transmitted, 2 packets received, 0.0% packet loss
 E> round-trip min/avg/max/stddev = 0.900/39.240/77.580/38.340 ms
 
 Can you please provide your full host configuration: rc.conf, firewall
 rules if there are any?
 
 
 -- 
 Totus tuus, Glebius.

From: Eugen Konkov <kes-kes@yandex.ru>
To: Gleb Smirnoff <glebius@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-current@freebsd.org
Subject: Re[2]: misc/171209: ping: sendto: Invalid argument
Date: Sat, 1 Sep 2012 16:02:21 +0300

 Hi, Gleb.
 
 GS> Can you please provide your full host configuration: rc.conf, firewall
 GS> rules if there are any?
 
 How to repeat:
 ifconfig rl0 add 192.168.0.2/24
 route add default 192.168.1.1
 
 192.168.1.1 is not on my LAN 192.168.0.0/24
 
 FreeBSD must log right error messages so people can understood that it is mean.
 
 --- kernel: arpresolve: can't allocate llinfo for 10.11.19.52
 +++ kernel: 10.11.19.52 is not on your LAN
 
 
 ---ping: sendto: Invalid argument
 +++ping: sendto: gateway to host is not on LAN
 
 ---traceroute: sendto: Invalid argument
 +++traceroute: sendto: gateway to host is not on LAN
 
 
 
 -- 
  ,
  Eugen                          mailto:kes-kes@yandex.ru
 
>Unformatted:
