diff options
author | Damjan Marion <damarion@cisco.com> | 2016-03-14 20:02:35 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-03-14 20:43:12 +0100 |
commit | b8abf877ba27098ca706281182cac67e15d7dd1e (patch) | |
tree | 35bdd7f7c3ef3254cb1aa24fc7b50e84a54b5a70 /vnet/vnet/gre/gre.h | |
parent | 8941ec2cb4ff29dbf167e3b80e09a70c9164cc19 (diff) |
Declare node, hw_interface_class and device_class instances as external
This fixes issue observed on Ubuntu 16.04 where
dynamic loader is not finding correct instance of
specific structure.
Change-Id: I618d0933c7e171b8a9b40495b36894785af7790a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/gre/gre.h')
-rw-r--r-- | vnet/vnet/gre/gre.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/gre/gre.h b/vnet/vnet/gre/gre.h index 490360d1ce1..de9db32bc8f 100644 --- a/vnet/vnet/gre/gre.h +++ b/vnet/vnet/gre/gre.h @@ -26,7 +26,7 @@ #include <vnet/pg/pg.h> #include <vnet/ip/format.h> -vnet_hw_interface_class_t gre_hw_interface_class; +extern vnet_hw_interface_class_t gre_hw_interface_class; typedef enum { #define gre_error(n,s) GRE_ERROR_##n, @@ -96,7 +96,7 @@ format_function_t format_gre_header; format_function_t format_gre_header_with_length; extern vlib_node_registration_t gre_input_node; -vnet_device_class_t gre_device_class; +extern vnet_device_class_t gre_device_class; /* Parse gre protocol as 0xXXXX or protocol name. In either host or network byte order. */ |