summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2014-04-05 01:15:16 (GMT)
committerThomas Haller <thaller@redhat.com>2014-04-07 13:23:26 (GMT)
commit690545a20eb486d4829900378caa1dc4dd5aa0ba (patch)
treeddf2688562ebf1a0284237d6fb7c0ed004213db8 /lib/route
parent5206c050504f8676a24854519b9c351470fb7cc6 (diff)
downloadlibnl-690545a20eb486d4829900378caa1dc4dd5aa0ba.zip
libnl-690545a20eb486d4829900378caa1dc4dd5aa0ba.tar.gz
libnl-690545a20eb486d4829900378caa1dc4dd5aa0ba.tar.bz2
act: fix policy range check
mirred action should accept all TC_ACT* policy Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/act/mirred.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/act/mirred.c b/lib/route/act/mirred.c
index 2668048..d047e24 100644
--- a/lib/route/act/mirred.c
+++ b/lib/route/act/mirred.c
@@ -187,7 +187,7 @@ int rtnl_mirred_set_policy(struct rtnl_act *act, int policy)
if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act))))
return -NLE_NOMEM;
- if (policy > TC_POLICE_PIPE || policy < TC_POLICE_OK)
+ if (policy > TC_ACT_REPEAT || policy < TC_ACT_OK)
return -NLE_INVAL;
switch (u->m_parm.eaction) {