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/babel/babel.c | 2 +- proto/babel/babel.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'proto/babel') diff --git a/proto/babel/babel.c b/proto/babel/babel.c index 44c6adb8..83986cb9 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -2312,7 +2312,7 @@ babel_reconfigure(struct proto *P, struct proto_config *CF) struct protocol proto_babel = { .name = "Babel", .template = "babel%d", - .attr_class = EAP_BABEL, + .class = PROTOCOL_BABEL, .preference = DEF_PREF_BABEL, .channel_mask = NB_IP | NB_IP6_SADR, .proto_size = sizeof(struct babel_proto), diff --git a/proto/babel/babel.h b/proto/babel/babel.h index e5c9cd5b..14765c60 100644 --- a/proto/babel/babel.h +++ b/proto/babel/babel.h @@ -25,8 +25,8 @@ #include "lib/string.h" #include "lib/timer.h" -#define EA_BABEL_METRIC EA_CODE(EAP_BABEL, 0) -#define EA_BABEL_ROUTER_ID EA_CODE(EAP_BABEL, 1) +#define EA_BABEL_METRIC EA_CODE(PROTOCOL_BABEL, 0) +#define EA_BABEL_ROUTER_ID EA_CODE(PROTOCOL_BABEL, 1) #define BABEL_MAGIC 42 #define BABEL_VERSION 2 -- cgit v1.2.3