aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-05-19 23:06:32 +0000
committerDavid S. Miller <davem@davemloft.net>2011-05-22 21:01:19 -0400
commitac3d3f81516fcbf80416e84682fd4bdaf3080611 (patch)
tree08a5f99c6c0763dc7b282f3b0a6a3a6382e6c2c1 /net/core
parentdaf9209bb2c8b07ca025eac82e3d175534086c77 (diff)
downloadkernel_samsung_tuna-ac3d3f81516fcbf80416e84682fd4bdaf3080611.zip
kernel_samsung_tuna-ac3d3f81516fcbf80416e84682fd4bdaf3080611.tar.gz
kernel_samsung_tuna-ac3d3f81516fcbf80416e84682fd4bdaf3080611.tar.bz2
rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event
These two events are not expected to be caught by userspace. Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index d2ba259..d1644e3 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1956,6 +1956,8 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
case NETDEV_GOING_DOWN:
case NETDEV_UNREGISTER:
case NETDEV_UNREGISTER_BATCH:
+ case NETDEV_RELEASE:
+ case NETDEV_JOIN:
break;
default:
rtmsg_ifinfo(RTM_NEWLINK, dev, 0);