summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2022-10-03 18:53:21 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2022-10-03 20:18:12 +0200
commit8478de8817c58af02f7aed1d621013891115a2dc (patch)
tree4db1e74a47b5a2c0243d13998df2b2b4ef6ae9b0 /nest/proto.c
parent92a856554780c262f188acb4cdcee363bf6dd1bb (diff)
Nest: Add channel config flag to distinguish new or copy
It is useful to distinguish whehter channel config returned from channel_config_get() was allocated new, or existing from template. Caller may want to initialize new ones.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 60a74964..885a0b75 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -804,6 +804,7 @@ channel_config_get(const struct channel_class *cc, const char *name, uint net_ty
cf_error("Multiple %s channels", name);
cf->parent = proto;
+ cf->copy = 1;
return cf;
}