From ee7e2ffd265fd76dbc8c94d9c2d48da54c27ff76 Mon Sep 17 00:00:00 2001 From: Jan Maria Matejka Date: Mon, 7 May 2018 14:47:00 +0200 Subject: Protocol: Introducing an enum protocol_class This supersedes the EAP_* constants. --- proto/ospf/ospf.c | 2 +- proto/ospf/ospf.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 0a9efd19..d9edc3e7 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -1463,7 +1463,7 @@ ospf_sh_lsadb(struct lsadb_show_data *ld) struct protocol proto_ospf = { .name = "OSPF", .template = "ospf%d", - .attr_class = EAP_OSPF, + .class = PROTOCOL_OSPF, .preference = DEF_PREF_OSPF, .channel_mask = NB_IP, .proto_size = sizeof(struct ospf_proto), diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index f26ed99c..ff55621a 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -863,10 +863,10 @@ struct lsadb_show_data { }; -#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) -#define EA_OSPF_ROUTER_ID EA_CODE(EAP_OSPF, 3) +#define EA_OSPF_METRIC1 EA_CODE(PROTOCOL_OSPF, 0) +#define EA_OSPF_METRIC2 EA_CODE(PROTOCOL_OSPF, 1) +#define EA_OSPF_TAG EA_CODE(PROTOCOL_OSPF, 2) +#define EA_OSPF_ROUTER_ID EA_CODE(PROTOCOL_OSPF, 3) /* ospf.c */ -- cgit v1.2.3