 |
|
 |
|
Next: Security Distributions
|
| Author |
Message |
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}, 2  = -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}, 2  = -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 |
|
 |  |
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}, 2  = -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 |
|
 |  |
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}, 2 = -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 |
|
 |  |
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}, 2 = -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 |
|
 |  |
|
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
|
|
|
|
 |
|
|