summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-11 10:41:17 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-11 10:41:17 +0200
commitd429bc5c841a8e9d4c81786973edfa56d20a407e (patch)
tree3857e7791fa51588b5f0de16bf05b65754349067 /proto/ospf
parent7e9cede1fd1878fb4c00e793bccd0ca6c18ad452 (diff)
parentbeb5f78ada79ac90f31f2c4923302c74d9ab38bf (diff)
Merge commit 'beb5f78a' into backport
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index d8bcc838..ad4b2d14 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -107,7 +107,7 @@
#include <stdlib.h>
#include "ospf.h"
-static int ospf_preexport(struct proto *P, rte *new);
+static int ospf_preexport(struct channel *P, rte *new);
static void ospf_reload_routes(struct channel *C);
static int ospf_rte_better(struct rte *new, struct rte *old);
static u32 ospf_rte_igp_metric(struct rte *rt);
@@ -482,13 +482,13 @@ ospf_disp(timer * timer)
* import to the filters.
*/
static int
-ospf_preexport(struct proto *P, rte *e)
+ospf_preexport(struct channel *C, rte *e)
{
- struct ospf_proto *p = (struct ospf_proto *) P;
+ struct ospf_proto *p = (struct ospf_proto *) C->proto;
struct ospf_area *oa = ospf_main_area(p);
/* Reject our own routes */
- if (e->src->proto == P)
+ if (e->src->proto == &p->p)
return -1;
/* Do not export routes to stub areas */