ipgre: fix attribute IPGRE_ATTR_OKEY in ipgre_put_attrs()

Signed-off-by: Susant Sahani <susant@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Susant Sahani 2014-05-06 11:11:31 +05:30 committed by Thomas Haller
parent d715b8a5f6
commit 737d5f0247

View file

@ -179,7 +179,7 @@ static int ipgre_put_attrs(struct nl_msg *msg, struct rtnl_link *link)
if (ipgre->ipgre_mask & IPGRE_ATTR_IKEY)
NLA_PUT_U32(msg, IFLA_GRE_IKEY, ipgre->ikey);
if (ipgre->ipgre_mask & IFLA_GRE_OKEY)
if (ipgre->ipgre_mask & IPGRE_ATTR_OKEY)
NLA_PUT_U32(msg, IFLA_GRE_OKEY, ipgre->okey);
if (ipgre->ipgre_mask & IPGRE_ATTR_LOCAL)