Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add extern to *_main global variable declarations in header files.
[vpp.git]
/
src
/
plugins
/
gtpu
/
gtpu.h
diff --git
a/src/plugins/gtpu/gtpu.h
b/src/plugins/gtpu/gtpu.h
index
8686197
..
b1e677d
100644
(file)
--- a/
src/plugins/gtpu/gtpu.h
+++ b/
src/plugins/gtpu/gtpu.h
@@
-1,6
+1,6
@@
/*
*------------------------------------------------------------------
/*
*------------------------------------------------------------------
- * Copyright (c) 201
6
Intel and/or its affiliates.
+ * Copyright (c) 201
7
Intel and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@
-172,7
+172,9
@@
typedef struct
#define foreach_gtpu_input_next \
_(DROP, "error-drop") \
#define foreach_gtpu_input_next \
_(DROP, "error-drop") \
-_(L2_INPUT, "l2-input")
+_(L2_INPUT, "l2-input") \
+_(IP4_INPUT, "ip4-input") \
+_(IP6_INPUT, "ip6-input" )
typedef enum
{
typedef enum
{
@@
-226,7
+228,7
@@
typedef struct
vnet_main_t *vnet_main;
} gtpu_main_t;
vnet_main_t *vnet_main;
} gtpu_main_t;
-gtpu_main_t gtpu_main;
+
extern
gtpu_main_t gtpu_main;
extern vlib_node_registration_t gtpu4_input_node;
extern vlib_node_registration_t gtpu6_input_node;
extern vlib_node_registration_t gtpu4_input_node;
extern vlib_node_registration_t gtpu6_input_node;