nat: Report some more contexts

This commit is contained in:
Holger Hans Peter Freyther 2010-06-15 18:51:25 +08:00
parent b9af2fae51
commit 0b0b31c708
1 changed files with 11 additions and 1 deletions

View File

@ -815,9 +815,19 @@ static void signal_handler(int signal)
}
}
extern void *tall_msgb_ctx;
extern void *tall_ctr_ctx;
static void talloc_init_ctx()
{
tall_bsc_ctx = talloc_named_const(NULL, 0, "nat");
tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb");
tall_ctr_ctx = talloc_named_const(tall_bsc_ctx, 0, "counter");
}
int main(int argc, char** argv)
{
tall_bsc_ctx = talloc_named_const(NULL, 1, "nat");
talloc_init_ctx();
log_init(&log_info);
stderr_target = log_target_create_stderr();