aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/main.h2
-rw-r--r--vlib/vlib/node.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/vlib/vlib/main.h b/vlib/vlib/main.h
index ef36c1e39ac..ea279c36bdd 100644
--- a/vlib/vlib/main.h
+++ b/vlib/vlib/main.h
@@ -314,4 +314,6 @@ u8 **vlib_thread_stacks;
/* Number of thread stacks that the application needs */
u32 vlib_app_num_thread_stacks_needed (void) __attribute__ ((weak));
+extern void vlib_node_sync_stats (vlib_main_t * vm, vlib_node_t * n);
+
#endif /* included_vlib_main_h */
diff --git a/vlib/vlib/node.h b/vlib/vlib/node.h
index 9b33a0a3ae0..a54f4e83e62 100644
--- a/vlib/vlib/node.h
+++ b/vlib/vlib/node.h
@@ -311,6 +311,8 @@ typedef struct vlib_node_t {
u8 * (* validate_frame) (struct vlib_main_t * vm,
struct vlib_node_runtime_t *,
struct vlib_frame_t * f);
+ /* for pretty-printing, not typically valid */
+ u8 * state_string;
} vlib_node_t;
#define VLIB_INVALID_NODE_INDEX ((u32) ~0)