summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-06-27 19:53:06 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-11 16:07:09 +0200
commitdc720a085f0f805891eb086bf96dac99c8a1b7da (patch)
treea0ba504a32a33a622485b5796fc5325cbf11d6de /nest/proto.c
parentbdd6f728399a7601eaeff7165645fb0c597d309d (diff)
Show route uses the export request also for one-net queries
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 0daf59f4..e7be8001 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -468,7 +468,8 @@ channel_start_export(struct channel *c)
c->out_req = (struct rt_export_request) {
.name = rn,
- .addr_in = c->out_subprefix,
+ .addr = c->out_subprefix,
+ .addr_mode = c->out_subprefix ? TE_ADDR_IN : TE_ADDR_NONE,
.trace_routes = c->debug | c->proto->debug,
.dump_req = channel_dump_export_req,
.log_state_change = channel_export_log_state_change,
@@ -952,7 +953,7 @@ channel_reconfigure(struct channel *c, struct channel_config *cf)
// c->ra_mode = cf->ra_mode;
c->merge_limit = cf->merge_limit;
c->preference = cf->preference;
- c->out_req.addr_in = c->out_subprefix = cf->out_subprefix;
+ c->out_req.addr = c->out_subprefix = cf->out_subprefix;
c->debug = cf->debug;
c->in_req.trace_routes = c->out_req.trace_routes = c->debug | c->proto->debug;
c->rpki_reload = cf->rpki_reload;