Enable vty command to output talloc report
I don't think I can print this into a string and thus output it via VTY. In that case it might be smarte to do in a signal handler
This commit is contained in:
parent
5f810f4222
commit
28b9ec1473
10
src/hnbgw.c
10
src/hnbgw.c
|
@ -308,10 +308,20 @@ DEFUN(show_ue, show_ue_cmd, "show ue all", SHOW_STR "Display information about a
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(show_talloc, show_talloc_cmd, "show talloc", SHOW_STR "Display talloc info")
|
||||
{
|
||||
talloc_report_full(tall_hnb_ctx, stderr);
|
||||
talloc_report_full(tall_ue_ctx, stderr);
|
||||
talloc_report_full(talloc_asn1_ctx, stderr);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
static void hnbgw_vty_init(void)
|
||||
{
|
||||
install_element_ve(&show_hnb_cmd);
|
||||
install_element_ve(&show_ue_cmd);
|
||||
install_element_ve(&show_talloc_cmd);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Reference in New Issue