From 1286a15a6e60f80b0e1b349f876de8fa38c71368 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Mon, 9 Apr 2018 21:08:33 +0200 Subject: 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 --- src/plugins/acl/acl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/acl/acl.c') diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 90b369e3296..7d3a8527eac 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -54,6 +54,7 @@ #include "public_inlines.h" acl_main_t acl_main; +acl_main_t *p_acl_main = &acl_main; #define REPLY_MSG_ID_BASE am->msg_id_base #include -- cgit 1.2.3-korg