From: Thomas Graf <tgraf@suug.ch>
To: Milan Kocian <milon@wq.cz>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH 1/1] ipv6: corrects sended rtnetlink message
Date: Fri, 7 Sep 2007 12:11:38 +0200 [thread overview]
Message-ID: <20070907101137.GX18480@postel.suug.ch> (raw)
In-Reply-To: <20070906210550.GA13542@wq.cz>
* Milan Kocian <milon@wq.cz> 2007-09-06 23:05
> I agree but ipv6 sends on device change (NETDEV_DOWN) RTM_DELLINK message.
> BTW when ipv6 send LINK message on NETDEV_UNREGISTER event, why doesn't
> send message on NETDEV_REGISTER event? No symmetry ?
You should be seeing two RTM_DELLINK upon NETDEV_UNREGISTER if the
interface carried any IPv6 addresess. Once with ifi_change=~0
notifying you that the device is disappearing and once with
ifi_change=0 coming from the IPv6 protocol shutdown.
> ok. However, if I understand, LINK messages handle device changes not
> protocol changes. Or not ?
Yes, I personally think this behaviour is wrong but we can't remove it
unless we are sure it doesn't break anything.
> Now I ignore (RTM_DELLINK && ifi_family==AF_INET6) :-). But it's only workaround
> till next change.
That's also correct, pure netdevice notification will always be sent
with the ifi_family set to AF_UNSPEC.
> Hard to find it. I can try to look at other routing sw (probably most using it)
> about handling with RTM_DELLINK.
> Howerer when was made change from RTM_NEWLINK to RTM_DELLINK without protests,
> we can try remove message :-)
I'd give the USAGI software tree a short peek, if there was a specific
reason for adding this notification in the first place, the software is
most probably found in that tree.
next prev parent reply other threads:[~2007-09-07 10:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-15 14:33 [PATCH 1/1] ipv6: corrects sended rtnetlink message Milan Kocian
2007-08-21 7:20 ` David Miller
2007-08-29 21:51 ` Milan Kocian
2007-09-06 10:47 ` Thomas Graf
2007-09-06 21:05 ` Milan Kocian
2007-09-07 10:11 ` Thomas Graf [this message]
2007-09-12 14:50 ` Milan Kocian
2007-09-12 14:53 ` Thomas Graf
2007-09-13 9:57 ` [PATCH 1/1] ipv6: remove redundant RTM_DELLINK message Milan Kocian
2007-09-16 4:48 ` David Miller
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=20070907101137.GX18480@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=davem@davemloft.net \
--cc=milon@wq.cz \
--cc=netdev@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).