summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2014-05-06 05:41:31 (GMT)
committerThomas Haller <thaller@redhat.com>2014-05-06 09:57:32 (GMT)
commit737d5f024730291efea38ca837a1fd9eae43a5ff (patch)
tree04d9f0b20480c6916793a86ffdeb2ff3e217da28 /lib/route
parentd715b8a5f6ec8faf205ae77950a1c625440be22f (diff)
downloadlibnl-737d5f024730291efea38ca837a1fd9eae43a5ff.zip
libnl-737d5f024730291efea38ca837a1fd9eae43a5ff.tar.gz
libnl-737d5f024730291efea38ca837a1fd9eae43a5ff.tar.bz2
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>
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/link/ipgre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/ipgre.c b/lib/route/link/ipgre.c
index df9d65d..d54ebd2 100644
--- a/lib/route/link/ipgre.c
+++ b/lib/route/link/ipgre.c
@@ -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)