summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-11-07 10:09:40 +0100
committerMaria Matejka <mq@ucw.cz>2022-11-07 10:18:19 +0100
commit96d380405701bb01d792ff1c867a607d7fefa001 (patch)
tree08477327585a486667ade126b9bd51713e461608 /nest
parent34e803c6c32032cffeb9bd230d0f85861acd9222 (diff)
parent8478de8817c58af02f7aed1d621013891115a2dc (diff)
Merge commit '8478de88' into thread-next
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c1
-rw-r--r--nest/protocol.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 90b4db39..bec30560 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -960,6 +960,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;
}
diff --git a/nest/protocol.h b/nest/protocol.h
index 892d1890..101e0926 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -464,6 +464,7 @@ struct channel_config {
u8 ra_mode; /* Mode of received route advertisements (RA_*) */
u16 preference; /* Default route preference */
u32 debug; /* Debugging flags (D_*) */
+ u8 copy; /* Value from channel_config_get() is new (0) or from template (1) */
u8 merge_limit; /* Maximal number of nexthops for RA_MERGED */
u8 in_keep; /* Which states of routes to keep (RIK_*) */
u8 rpki_reload; /* RPKI changes trigger channel reload */