diff options
Diffstat (limited to 'src/vnet/unix/gdb_funcs.c')
-rw-r--r-- | src/vnet/unix/gdb_funcs.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vnet/unix/gdb_funcs.c b/src/vnet/unix/gdb_funcs.c index cfb4b247800..cca2e420aa8 100644 --- a/src/vnet/unix/gdb_funcs.c +++ b/src/vnet/unix/gdb_funcs.c @@ -20,7 +20,7 @@ #include <vlib/vlib.h> #include <vlib/threads.h> - +#include <vnet/vnet.h> /** @@ -164,6 +164,16 @@ VLIB_CLI_COMMAND (show_gdb_funcs_command, static) = { .function = show_gdb_command_fn, }; +vnet_buffer_opaque_t *vb (void *vb_arg) +{ + vlib_buffer_t *b = (vlib_buffer_t *)vb_arg; + vnet_buffer_opaque_t *rv; + + rv = vnet_buffer (b); + + return rv; +} + /* Cafeteria plan, maybe you don't want these functions */ clib_error_t * gdb_func_init (vlib_main_t * vm) { return 0; } |