From 5919c66e8fdd87ee7e5c5a1e0ce01893e0ce103d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 30 May 2000 21:25:32 +0000 Subject: Route attributes for OSPF. --- proto/ospf/ospf.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 0eaf98b..63c4fc2 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -353,8 +353,14 @@ static int ospf_rte_better(struct rte *new, struct rte *old); static int ospf_rte_same(struct rte *new, struct rte *old); int ospf_import_control(struct proto *p, rte **new, ea_list **attrs, struct linpool *pool); +struct ea_list *ospf_make_tmp_attrs(struct rte *rt, struct linpool *pool); +void ospf_store_tmp_attrs(struct rte *rt, struct ea_list *attrs); void ospf_rt_notify(struct proto *p, net *n, rte *new, rte *old,ea_list *attrs); +#define EA_OSPF_METRIC1 EA_CODE(EAP_OSPF, 0) +#define EA_OSPF_METRIC2 EA_CODE(EAP_OSPF, 1) +#define EA_OSPF_TAG EA_CODE(EAP_OSPF, 2) + #include "proto/ospf/hello.h" #include "proto/ospf/packet.h" #include "proto/ospf/iface.h" -- cgit v1.2.3