ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Новый iproute2 и старые ядра
Date: Fri, 14 Mar 2008 22:22:15 +0300
Message-ID: <20080314192215.GC28646@wo.int.altlinux.org> (raw)
In-Reply-To: <20080314162207.GF21743@newmaster.mivlgu.local>


[-- Attachment #1.1: Type: text/plain, Size: 1483 bytes --]

On Fri, Mar 14, 2008 at 07:22:07PM +0300, Sergey Vlasov wrote:
> On Fri, Mar 14, 2008 at 07:18:27PM +0300, Sergey Vlasov wrote:
> > On Fri, Mar 14, 2008 at 05:18:27PM +0200, Victor Forsyuk wrote:
> > > On Fri, Mar 14, 2008 at 05:20:06PM +0300, Dmitry V. Levin wrote:
> > > > On Fri, Mar 14, 2008 at 03:45:58PM +0200, Victor Forsyuk wrote:
> > > > [...]
> > > > > Соответственно, остается только один вопрос - "что делать"?
> > > > 
> > > > Хорошо бы исправить iproute2.
> > > 
> > > Хорошо бы, ясное дело... Я даже догадываюсь в районе чего их 
> > > рекламируемая "should be backward compatible with older kernels"
> > > дала сбой:
> > > http://www.mail-archive.com/netdev@vger.kernel.org/msg40276.html
> > 
> > Действительно, там отсутствие поддержки в ядре определяется по
> > возвращаемому из ядра в ответ на этот запрос коду ошибки -EOPNOTSUPP.
> > Однако этот код возвращается только в версиях >= 2.6.22 (см. commit
> > 038890fed8d1fa95bbbdeb517f5710eb75fa9e2e в ядре); более старые версии в
> > этом случае возвращают -EINVAL, поэтому iproute2 ошибочно считает, что
> > ядро поддерживает нужные команды netlink.
> 
> http://www.redhat.com/archives/fedora-extras-commits/2008-February/msg01214.html
> http://lists.pld-linux.org/mailman/pipermail/pld-cvs-commit/Week-of-Mon-20071022/172139.html

http://git.kernel.org/?p=linux/kernel/git/shemminger/iproute2.git;a=commitdiff;h=ss-060323-158-g66e529f

Кто соберёт исправленный iproute2?


-- 
ldv

[-- Attachment #1.2: iproute-2.6.23-up-RTM_NEWLINK.patch --]
[-- Type: text/plain, Size: 1399 bytes --]

From 66e529f579f45351828fc82d6ba2629cc6eb3ddd Mon Sep 17 00:00:00 2001
From: Patrick McHardy <kaber@trash.net>
Date: Thu, 25 Oct 2007 19:46:29 +0200
Subject: [PATCH] iproute 2.6.23 incompatibility

Arkadiusz Miskiewicz wrote:
> People are reporting that
>> ip link set multicast on dev eth0 (Invalid argument)
>> no longer works when using iproute 2.6.23 on kernel 2.6.21.
>>
>> On my testing machine it also fails:
>> # ./ip link set eth0 multicast on
>> RTNETLINK answers: Invalid argument

It seems it fails to properly detect that your kernel is missing
RTM_NEWLINK support. Apparently the reason is that the kernels
I tested with return a different error in this situation.


Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
---
 ip/iplink.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ip/iplink.c b/ip/iplink.c
index 8e0ed2a..f28f91c 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -107,7 +107,8 @@ static int accept_msg(const struct sockaddr_nl *who,
 {
 	struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(n);
 
-	if (n->nlmsg_type == NLMSG_ERROR && err->error == -EOPNOTSUPP)
+	if (n->nlmsg_type == NLMSG_ERROR &&
+	    (err->error == -EOPNOTSUPP || err->error == -EINVAL))
 		have_rtnl_newlink = 0;
 	else
 		have_rtnl_newlink = 1;
-- 
1.5.4.4.GIT


[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-03-14 19:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14  9:03 [sisyphus] Откуда взялось RTNETLINK answers: Invalid argument? Sergei Naumov
2008-03-14  9:12 ` Dmitriy Kruglikov
2008-03-14  9:34   ` Rafael Malikov
2008-03-14 10:25     ` Peter Evdokimov
2008-03-14 10:12       ` Rafael Malikov
2008-03-14 10:46         ` Peter Evdokimov
2008-03-14 11:19           ` Dmitriy Kruglikov
2008-03-14 13:47             ` ruslandh
2008-03-14 13:45           ` [sisyphus] Новый iproute2 и старые ядра Victor Forsyuk
2008-03-14 14:20             ` Dmitry V. Levin
2008-03-14 15:18               ` Victor Forsyuk
2008-03-14 16:18                 ` Sergey Vlasov
2008-03-14 16:22                   ` Sergey Vlasov
2008-03-14 19:22                     ` Dmitry V. Levin [this message]
2008-03-14 20:27                       ` Victor Forsyuk
2008-03-15 12:45                   ` Denis Ovsienko
2008-03-14 16:12               ` Peter Evdokimov
2008-03-14 16:16                 ` Led
2008-03-14 17:52             ` [sisyphus] Новый iproute2 и старые ядра (madwifi отвалился? ) Sergei O. Naumov
2008-03-14 22:08               ` Konstantin A. Lepikhov
2008-03-14 16:51       ` [sisyphus] Откуда взялось RTNETLINK answers: Invalid argument? Sergei O. Naumov
2008-03-14 16:51   ` Sergei O. Naumov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080314192215.GC28646@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git