* iproute2: adding /128 address to sit interface borks
@ 2009-07-10 12:05 Jan Engelhardt
2009-07-10 15:27 ` Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2009-07-10 12:05 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
Hi,
it's impossible to do this, and the error message does not say why
that is so. No word in dmesg either.
# ip a a fc00::49/128 peer fc00::7 dev sit7
RTNETLINK answers: Invalid argument
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: adding /128 address to sit interface borks
2009-07-10 12:05 iproute2: adding /128 address to sit interface borks Jan Engelhardt
@ 2009-07-10 15:27 ` Stephen Hemminger
2010-02-27 15:03 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2009-07-10 15:27 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Stephen Hemminger, netdev
On Fri, 10 Jul 2009 14:05:01 +0200 (CEST)
Jan Engelhardt <jengelh@medozas.de> wrote:
> Hi,
>
>
> it's impossible to do this, and the error message does not say why
> that is so. No word in dmesg either.
>
>
> # ip a a fc00::49/128 peer fc00::7 dev sit7
> RTNETLINK answers: Invalid argument
You will need to walk through the path in the kernel.
In worst case, it means adding kernel printk's.
Then if you want to be nice, make a patch to ipaddr.c in iproute
utilities so command line can find the error before passing to
kernel and give a nice error :-)
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: adding /128 address to sit interface borks
2009-07-10 15:27 ` Stephen Hemminger
@ 2010-02-27 15:03 ` Jan Engelhardt
2010-02-27 16:23 ` Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2010-02-27 15:03 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Stephen Hemminger, netdev
On Friday 2009-07-10 17:27, Stephen Hemminger wrote:
>On Fri, 10 Jul 2009 14:05:01 +0200 (CEST)
>Jan Engelhardt <jengelh@medozas.de> wrote:
>
>> it's impossible to do this, and the error message does not say why
>> that is so. No word in dmesg either.
>>
>> # ip a a fc00::49/128 peer fc00::7 dev sit7
>> RTNETLINK answers: Invalid argument
>
>You will need to walk through the path in the kernel.
>In worst case, it means adding kernel printk's.
>
>Then if you want to be nice, make a patch to ipaddr.c in iproute
>utilities so command line can find the error before passing to
>kernel and give a nice error :-)
The issue here was that the peer is encoded using the broadcast
field, and since IPv6 has no broadcast, it was rejected by
the kernel. The error messages really need to be improved.
This year also came an article about that,
http://lwn.net/Articles/374794/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: adding /128 address to sit interface borks
2010-02-27 15:03 ` Jan Engelhardt
@ 2010-02-27 16:23 ` Stephen Hemminger
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2010-02-27 16:23 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Stephen Hemminger, netdev
On Sat, 27 Feb 2010 16:03:36 +0100 (CET)
Jan Engelhardt <jengelh@medozas.de> wrote:
>
> On Friday 2009-07-10 17:27, Stephen Hemminger wrote:
> >On Fri, 10 Jul 2009 14:05:01 +0200 (CEST)
> >Jan Engelhardt <jengelh@medozas.de> wrote:
> >
> >> it's impossible to do this, and the error message does not say why
> >> that is so. No word in dmesg either.
> >>
> >> # ip a a fc00::49/128 peer fc00::7 dev sit7
> >> RTNETLINK answers: Invalid argument
> >
> >You will need to walk through the path in the kernel.
> >In worst case, it means adding kernel printk's.
> >
> >Then if you want to be nice, make a patch to ipaddr.c in iproute
> >utilities so command line can find the error before passing to
> >kernel and give a nice error :-)
>
> The issue here was that the peer is encoded using the broadcast
> field, and since IPv6 has no broadcast, it was rejected by
> the kernel. The error messages really need to be improved.
>
> This year also came an article about that,
> http://lwn.net/Articles/374794/
The article overlooks the fact that netlink is a message based interface.
There is no reason that the response message can't be extended to add
additional sections to give more detailed answer. The issues are:
* no infrastructure for this (message format, helpers, etc)
* tedious effort to annotate all the existing error returns
* update to command and library
The extended error reports could even be a kernel config option so the
embedded and those worried about space would not have to have it.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-27 16:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 12:05 iproute2: adding /128 address to sit interface borks Jan Engelhardt
2009-07-10 15:27 ` Stephen Hemminger
2010-02-27 15:03 ` Jan Engelhardt
2010-02-27 16:23 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).