Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ping: bind icmp socket: Invalid argument

 
   Soft32 Home -> Linux -> IPv6 RSS
Next:  Security Distributions  
Author Message
Ferenc Wagner

External


Since: Feb 27, 2007
Posts: 42



(Msg. 1) Posted: Thu Aug 23, 2007 10:47 am
Post subject: ping: bind icmp socket: Invalid argument
Archived from groups: linux>debian>maint>ipv6 (more info?)

Hi,

I'm struggling with ping6. On an IPv6 autoconfigured Etch machine:

# ip -6 addr list dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qlen 100
inet6 2001:738:0:1:214:22ff:fe13:e171/64 scope global dynamic
valid_lft 2592000sec preferred_lft 604800sec
inet6 fe80::214:22ff:fe13:e171/64 scope link
valid_lft forever preferred_lft forever

# strace ping6 fe80::214:22ff:fe13:e171
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET6, sin6_port=htons(1025), inet_pton(AF_INET6, "fe80::214:22ff:fe13:e171", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 2Cool = -1 EINVAL (Invalid argument)
connect: Invalid argument

I can't ping my own link-local address. Trying a neighbour:

# strace ping6 fe80::214:22ff:fe13:ed7a
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET6, sin6_port=htons(1025), inet_pton(AF_INET6, "fe80::214:22ff:fe13:ed7a", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 2Cool = -1 EINVAL (Invalid argument)

Global addresses (either mine or the neighbour's) respond to ping6,
though.

What am I doing wrong?
--
Thanks,
Feri.


--
To UNSUBSCRIBE, email to debian-ipv6-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Ferenc Wagner

External


Since: Feb 27, 2007
Posts: 42



(Msg. 2) Posted: Thu Aug 23, 2007 10:47 am
Post subject: Re: ping: bind icmp socket: Invalid argument [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Christopher Bodenstein <christopher.bodenstein DeleteThis @be.easynet.net> writes:

> On Thu, Aug 23, 2007 at 05:10:56PM +0200, Ferenc Wagner wrote:
>
> When pinging local-link addresses, you should specify the interface
> with -I

Ahem, that works, thanks. It's even written clearly in the manual.
Too bad that I tried using the interface address instead of the
interface name:

# ping6 -I fe80::214:22ff:fe13:e171 fe80::214:22ff:fe13:ed7a
ping: bind icmp socket: Invalid argument

where strace reveals

socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = 3
bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fe80::214:22ff:fe13:e171", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 2Cool = -1 EINVAL (Invalid argument)

Am I using an overly old version of ping6?
# ping6 -V
ping6 utility, iputils-ss020927
--
Thanks,
Feri.


--
To UNSUBSCRIBE, email to debian-ipv6-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Gerdriaan Mulder

External


Since: Aug 23, 2007
Posts: 1



(Msg. 3) Posted: Thu Aug 23, 2007 11:47 am
Post subject: Re: ping: bind icmp socket: Invalid argument [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

As far as I can see, you should type the interface address directly
after the -I, so -Ieth0 and not -I eth0.
On 8/23/07, Ferenc Wagner <wferi.RemoveThis@niif.hu> wrote:
> Christopher Bodenstein <christopher.bodenstein.RemoveThis@be.easynet.net> writes:
>
> > On Thu, Aug 23, 2007 at 05:10:56PM +0200, Ferenc Wagner wrote:
> >
> > When pinging local-link addresses, you should specify the interface
> > with -I
>
> Ahem, that works, thanks. It's even written clearly in the manual.
> Too bad that I tried using the interface address instead of the
> interface name:
>
> # ping6 -I fe80::214:22ff:fe13:e171 fe80::214:22ff:fe13:ed7a
> ping: bind icmp socket: Invalid argument
>
> where strace reveals
>
> socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = 3
> bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fe80::214:22ff:fe13:e171", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 2Cool = -1 EINVAL (Invalid argument)
>
> Am I using an overly old version of ping6?
> # ping6 -V
> ping6 utility, iputils-ss020927
> --
> Thanks,
> Feri.
>
>
> --
> To UNSUBSCRIBE, email to debian-ipv6-REQUEST.RemoveThis@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
>
>


--
To UNSUBSCRIBE, email to debian-ipv6-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Ferenc Wagner

External


Since: Feb 27, 2007
Posts: 42



(Msg. 4) Posted: Thu Aug 23, 2007 12:47 pm
Post subject: Re: ping: bind icmp socket: Invalid argument [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Gerdriaan Mulder" <naairdreg DeleteThis @gmail.com> writes:

> On 8/23/07, Ferenc Wagner <wferi DeleteThis @niif.hu> wrote:
>
>> Christopher Bodenstein <christopher.bodenstein DeleteThis @be.easynet.net> writes:
>>
>>> On Thu, Aug 23, 2007 at 05:10:56PM +0200, Ferenc Wagner wrote:
>>>
>>> When pinging local-link addresses, you should specify the interface
>>> with -I
>>
>> Ahem, that works, thanks. It's even written clearly in the manual.
>> Too bad that I tried using the interface address instead of the
>> interface name:
>>
>> # ping6 -I fe80::214:22ff:fe13:e171 fe80::214:22ff:fe13:ed7a
>> ping: bind icmp socket: Invalid argument
>>
>> where strace reveals
>>
>> socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = 3
>> bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fe80::214:22ff:fe13:e171", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 2Cool = -1 EINVAL (Invalid argument)
>>
>> Am I using an overly old version of ping6?
>> # ping6 -V
>> ping6 utility, iputils-ss020927
>
> As far as I can see, you should type the interface address directly
> after the -I, so -Ieth0 and not -I eth0.

Well, no, -Ieth0 and -I eth0 both work. With interface address
instead of interface name it doesn't work either way.
--
Thanks,
Feri.


--
To UNSUBSCRIBE, email to debian-ipv6-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] Invalid ICMP type 3 to broadcast - My syslog is filling up with the following messages. If i shutdown samba the messages cease. Dec 17 08:48:24..

SIOCSIFMTU: invalid argument - Fedora Core 4 on a Dell Inspiron 2650. I had no problems with Mandrake 10.1. During boot or enabling eth0, I get this...

ioctl: LOOP_SET_STATUS: Invalid argument - Hello: I am trying to mount an encrypted partition, and get this msg" "ioctl: LOOP_SET_STATUS: Invalid ar...

FC2: KDSKBENT invalid argument during login - Hi everyboby, I have installed a FC2 on my machine. All is OK but when I login on a tty the system says: KDSKBENT:..

[gentoo-user] cannot read symbolic link, Invalid argument - Hello, I run a Gentoo hardened mail server. After an upgrade this morning, some problems appeared. Code: atreides ~ #...

STRANGE PING behaviour on a SuSE 10.0 Host - 1st Ping ok 2.. - hi anybody, i got a VERY STRANGE behaviour here.. see this. if i ping any host from my Suse10 Host by IP or Hostname,...
       Soft32 Home -> Linux -> IPv6 All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]