diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2018-04-09 21:08:33 +0200 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2018-04-10 12:45:57 +0000 |
commit | 1286a15a6e60f80b0e1b349f876de8fa38c71368 (patch) | |
tree | 071312c6d7c9d3c25f631c71e29426f97605c182 /src/plugins/acl/acl.h | |
parent | e5cbccf35f4d230afafa633abbc88e64ef33d758 (diff) |
acl-plugin: VPP-1230: fix the "undefined symbol" error for acl_main when using the inline functions
The acl_main struct, which is defined in the acl_plugin, is not visible when
the ACL plugin inline code is being compiled within the context of other plugins.
Fix that by using the global pointer variable, which exists in both the ACL plugin
context and is set in the context of the external plugins using ACL plugin.
Change-Id: Iaa74dd8cf36ff5442a06a25c5c968722116bddf8
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins/acl/acl.h')
-rw-r--r-- | src/plugins/acl/acl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/acl/acl.h b/src/plugins/acl/acl.h index 7af5b201551..8e7c80076f6 100644 --- a/src/plugins/acl/acl.h +++ b/src/plugins/acl/acl.h @@ -362,6 +362,13 @@ AH has a special treatment of its length, it is in 32-bit words, not 64-bit word extern acl_main_t acl_main; +/* + * pointer to the above. + * Needed for some gymnastics to be able to provide + * the inline functions from this plugin to other plugins. + */ + +extern acl_main_t *p_acl_main; void *acl_plugin_set_heap(); |