summaryrefslogtreecommitdiff
path: root/proto/radv
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2018-05-07 14:47:00 +0200
committerJan Maria Matejka <mq@ucw.cz>2018-05-29 12:35:06 +0200
commitee7e2ffd265fd76dbc8c94d9c2d48da54c27ff76 (patch)
tree7460254b1bd105e5bc45937e2e00aaac7da4ccf7 /proto/radv
parentc3becfe1934da2dc2c0881a71eac8a26f810791f (diff)
Protocol: Introducing an enum protocol_class
This supersedes the EAP_* constants.
Diffstat (limited to 'proto/radv')
-rw-r--r--proto/radv/radv.c2
-rw-r--r--proto/radv/radv.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/proto/radv/radv.c b/proto/radv/radv.c
index 8a79dfaf..2f5f1c27 100644
--- a/proto/radv/radv.c
+++ b/proto/radv/radv.c
@@ -762,7 +762,7 @@ radv_get_attr(eattr *a, byte *buf, int buflen UNUSED)
struct protocol proto_radv = {
.name = "RAdv",
.template = "radv%d",
- .attr_class = EAP_RADV,
+ .class = PROTOCOL_RADV,
.channel_mask = NB_IP6,
.proto_size = sizeof(struct radv_proto),
.config_size = sizeof(struct radv_config),
diff --git a/proto/radv/radv.h b/proto/radv/radv.h
index 66f785a7..719948d5 100644
--- a/proto/radv/radv.h
+++ b/proto/radv/radv.h
@@ -192,8 +192,8 @@ struct radv_iface
#define RA_PREF_MASK 0x18
/* Attributes */
-#define EA_RA_PREFERENCE EA_CODE(EAP_RADV, 0)
-#define EA_RA_LIFETIME EA_CODE(EAP_RADV, 1)
+#define EA_RA_PREFERENCE EA_CODE(PROTOCOL_RADV, 0)
+#define EA_RA_LIFETIME EA_CODE(PROTOCOL_RADV, 1)
#ifdef LOCAL_DEBUG
#define RADV_FORCE_DEBUG 1