nat: Report some more contexts
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 16ffa0a..32f2196 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -815,9 +815,19 @@
}
}
+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();