aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-05-19 19:06:32 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-22 21:01:19 -0400
commitac3d3f81516fcbf80416e84682fd4bdaf3080611 (patch)
tree08a5f99c6c0763dc7b282f3b0a6a3a6382e6c2c1 /net
parentdaf9209bb2c8b07ca025eac82e3d175534086c77 (diff)
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')
-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 d2ba2597c75a..d1644e317e70 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
1956 case NETDEV_GOING_DOWN: 1956 case NETDEV_GOING_DOWN:
1957 case NETDEV_UNREGISTER: 1957 case NETDEV_UNREGISTER:
1958 case NETDEV_UNREGISTER_BATCH: 1958 case NETDEV_UNREGISTER_BATCH:
1959 case NETDEV_RELEASE:
1960 case NETDEV_JOIN:
1959 break; 1961 break;
1960 default: 1962 default:
1961 rtmsg_ifinfo(RTM_NEWLINK, dev, 0); 1963 rtmsg_ifinfo(RTM_NEWLINK, dev, 0);