diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2018-05-07 14:47:00 +0200 |
---|---|---|
committer | Jan Maria Matejka <mq@ucw.cz> | 2018-05-29 12:35:06 +0200 |
commit | ee7e2ffd265fd76dbc8c94d9c2d48da54c27ff76 (patch) | |
tree | 7460254b1bd105e5bc45937e2e00aaac7da4ccf7 /proto/babel | |
parent | c3becfe1934da2dc2c0881a71eac8a26f810791f (diff) |
Protocol: Introducing an enum protocol_class
This supersedes the EAP_* constants.
Diffstat (limited to 'proto/babel')
-rw-r--r-- | proto/babel/babel.c | 2 | ||||
-rw-r--r-- | proto/babel/babel.h | 4 |
2 files changed, 3 insertions, 3 deletions
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 |