mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Protocol: Introducing an enum protocol_class
This supersedes the EAP_* constants.
This commit is contained in:
@@ -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),
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user