]> granicus.if.org Git - libnl/commitdiff
ipgre: fix attribute IPGRE_ATTR_OKEY in ipgre_put_attrs()
authorSusant Sahani <susant@redhat.com>
Tue, 6 May 2014 05:41:31 +0000 (11:11 +0530)
committerThomas Haller <thaller@redhat.com>
Tue, 6 May 2014 09:57:32 +0000 (11:57 +0200)
Signed-off-by: Susant Sahani <susant@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/link/ipgre.c

index df9d65dbb0161f03eba9596a9f7643264e3c882f..d54ebd2fd14e109b2bd4ef79cfe5539cabeab9f8 100644 (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)