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
/
vnet
/
snap
/
snap.h
diff --git
a/src/vnet/snap/snap.h
b/src/vnet/snap/snap.h
index
dbba15b
..
08c3a8b
100644
(file)
--- a/
src/vnet/snap/snap.h
+++ b/
src/vnet/snap/snap.h
@@
-165,7
+165,7
@@
snap_get_protocol_info (snap_main_t * sm, snap_header_t * h)
return p ? vec_elt_at_index (sm->protocols, p[0]) : 0;
}
return p ? vec_elt_at_index (sm->protocols, p[0]) : 0;
}
-snap_main_t snap_main;
+
extern
snap_main_t snap_main;
/* Register given node index to take input for given snap type. */
void
/* Register given node index to take input for given snap type. */
void
@@
-173,9
+173,6
@@
snap_register_input_protocol (vlib_main_t * vm,
char *name,
u32 ieee_oui, u16 protocol, u32 node_index);
char *name,
u32 ieee_oui, u16 protocol, u32 node_index);
-void snap_set_adjacency (vnet_rewrite_header_t * rw,
- uword max_data_bytes, u32 ieee_oui, u16 protocol);
-
format_function_t format_snap_protocol;
format_function_t format_snap_header;
format_function_t format_snap_header_with_length;
format_function_t format_snap_protocol;
format_function_t format_snap_header;
format_function_t format_snap_header_with_length;