Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
acl-plugin: use clib_bihash_search_inline_2_40_8 rather than clib_bihash_search_40_8...
[vpp.git]
/
src
/
plugins
/
acl
/
public_inlines.h
diff --git
a/src/plugins/acl/public_inlines.h
b/src/plugins/acl/public_inlines.h
index
3e6c95a
..
e7b0852
100644
(file)
--- a/
src/plugins/acl/public_inlines.h
+++ b/
src/plugins/acl/public_inlines.h
@@
-270,10
+270,8
@@
acl_fill_5tuple (acl_main_t * am, vlib_buffer_t * b0, int is_ip6,
}
else
{
}
else
{
- p5tuple_pkt->kv.key[0] = 0;
- p5tuple_pkt->kv.key[1] = 0;
- p5tuple_pkt->kv.key[2] = 0;
- p5tuple_pkt->kv.key[3] = 0;
+ ip46_address_mask_ip4(&p5tuple_pkt->addr[0]);
+ ip46_address_mask_ip4(&p5tuple_pkt->addr[1]);
clib_memcpy (&p5tuple_pkt->addr[0].ip4,
get_ptr_to_offset (b0,
offsetof (ip4_header_t,
clib_memcpy (&p5tuple_pkt->addr[0].ip4,
get_ptr_to_offset (b0,
offsetof (ip4_header_t,