Fix incorrect creation of classifier entries for macip ACL 80/4180/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 8 Dec 2016 15:43:01 +0000 (16:43 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 8 Dec 2016 17:13:05 +0000 (17:13 +0000)
commit6162e1e26b2eaffd2def3be472648aee181c596e
tree240401dffaa967007889e0294148c85ddd6b0685
parent0c1519b5e7953d093d5532d6caf87ae7ac9333d8
Fix incorrect creation of classifier entries for macip ACL

The is_ip6 flag was incorrectly set during classifier
table creation phase, which intermittently caused the mismatch
between the mask value and the match values, resulting
in dropped packets. Fix that.

Also get rid of the magic numbers in that part of the code.

Change-Id: I0606561e6b07e70a1aa733746b56ed0e91752c94
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
plugins/acl-plugin/acl/acl.c