aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-08-16 18:37:26 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-16 18:37:26 -0400
commit2ff1cf12c9fe70e75e600404e6a4274b19d293ed (patch)
treebeafddac0a8098e3f07d2ec60e44a2a7d006e605 /net/core/rtnetlink.c
parent16b304f3404f8e0243d5ee2b70b68767b7b59b2b (diff)
parent0f7dd1aa8f959216f1faa71513b9d3c1a9065e5a (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 242084edb658..2a0e21de3060 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2179,7 +2179,7 @@ int ndo_dflt_fdb_del(struct ndmsg *ndm,
2179 /* If aging addresses are supported device will need to 2179 /* If aging addresses are supported device will need to
2180 * implement its own handler for this. 2180 * implement its own handler for this.
2181 */ 2181 */
2182 if (ndm->ndm_state & NUD_PERMANENT) { 2182 if (!(ndm->ndm_state & NUD_PERMANENT)) {
2183 pr_info("%s: FDB only supports static addresses\n", dev->name); 2183 pr_info("%s: FDB only supports static addresses\n", dev->name);
2184 return -EINVAL; 2184 return -EINVAL;
2185 } 2185 }
@@ -2407,7 +2407,7 @@ static int rtnl_bridge_getlink(struct sk_buff *skb, struct netlink_callback *cb)
2407 struct nlattr *extfilt; 2407 struct nlattr *extfilt;
2408 u32 filter_mask = 0; 2408 u32 filter_mask = 0;
2409 2409
2410 extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct rtgenmsg), 2410 extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct ifinfomsg),
2411 IFLA_EXT_MASK); 2411 IFLA_EXT_MASK);
2412 if (extfilt) 2412 if (extfilt)
2413 filter_mask = nla_get_u32(extfilt); 2413 filter_mask = nla_get_u32(extfilt);