Skip to content

Commit

Permalink
act: fix policy range check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
congwang authored and thom311 committed Apr 7, 2014
1 parent 5206c05 commit 690545a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/route/act/mirred.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 690545a

Please sign in to comment.