+
+int
+pneum_msg_table_max_index(void)
+{
+ int max = 0;
+ hash_pair_t *hp;
+ uword *h = pneum_msg_table_get_hash();
+ hash_foreach_pair (hp, h,
+ ({
+ if (hp->value[0] > max)
+ max = hp->value[0];
+ }));
+
+ return max;
+}
+
+void
+pneum_set_error_handler (pneum_error_callback_t cb)
+{
+ if (cb) clib_error_register_handler (cb, 0);
+}