netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ipv6: corrects sended rtnetlink message
@ 2007-08-15 14:33 Milan Kocian
  2007-08-21  7:20 ` David Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Milan Kocian @ 2007-08-15 14:33 UTC (permalink / raw)
  To: netdev

ipv6 sends a RTM_DELLINK netlink message on both events: NETDEV_DOWN,
NETDEV_UNREGISTER. Corrected by sending RTM_NEWLINK on NETDEV_DOWN event
and RTM_DELLINK on NETDEV_UNREGISTER event.
---

btw. I don't know why protocol sends a NL messages about iface state
changes. It comes from other sources. By contrast ipv6 doesn't send
no message on NETDEV_UP event !? IMO best possibility is deletion of
sending this message.


--- a/net/ipv6/addrconf.c	2007-08-13 11:35:23.481430029 +0200
+++ b/net/ipv6/addrconf.c	2007-08-13 12:47:01.825690662 +0200
@@ -2488,7 +2488,10 @@ static int addrconf_ifdown(struct net_de
 
 	/* Step 5: netlink notification of this interface */
 	idev->tstamp = jiffies;
-	inet6_ifinfo_notify(RTM_DELLINK, idev);
+	if (how)
+		inet6_ifinfo_notify(RTM_DELLINK, idev);
+	else 
+		inet6_ifinfo_notify(RTM_NEWLINK, idev);
 
 	/* Shot the device (if unregistered) */
 

Signed-off-by: Milan Kocian <milon@wq.cz>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-09-16  4:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).