diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-22 22:19:23 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-24 14:04:20 +0200 |
commit | 7cfa4322558c56b5a0801b17e60598c5a49779dd (patch) | |
tree | 3f1a3167603a4cfccedc39f8274c741a9295f866 /eigrpd/eigrp_update.c | |
parent | eigrpd: Refactor FSM calling (diff) | |
download | frr-7cfa4322558c56b5a0801b17e60598c5a49779dd.tar.xz frr-7cfa4322558c56b5a0801b17e60598c5a49779dd.zip |
eigrpd: make fsm msg data_type an enum
We need to eventually be able to handle multiple
data types to figure out if the distance is better
worse.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_update.c')
-rw-r--r-- | eigrpd/eigrp_update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eigrpd/eigrp_update.c b/eigrpd/eigrp_update.c index 89b8ecd92..ba54fa572 100644 --- a/eigrpd/eigrp_update.c +++ b/eigrpd/eigrp_update.c @@ -139,7 +139,7 @@ static void eigrp_update_receive_GR_ask(struct eigrp *eigrp, fsm_msg.packet_type = EIGRP_OPC_UPDATE; fsm_msg.eigrp = eigrp; - fsm_msg.data_type = EIGRP_TLV_IPv4_INT; + fsm_msg.data_type = EIGRP_INT; fsm_msg.adv_router = nbr; fsm_msg.data.ipv4_int_type = tlv_max; fsm_msg.entry = entry; @@ -315,7 +315,7 @@ void eigrp_update_receive(struct eigrp *eigrp, struct ip *iph, msg.packet_type = EIGRP_OPC_UPDATE; msg.eigrp = eigrp; - msg.data_type = EIGRP_TLV_IPv4_INT; + msg.data_type = EIGRP_INT; msg.adv_router = nbr; msg.data.ipv4_int_type = tlv; msg.entry = entry; @@ -978,7 +978,7 @@ static void eigrp_update_send_GR_part(struct eigrp_neighbor *nbr) fsm_msg.packet_type = EIGRP_OPC_UPDATE; fsm_msg.eigrp = e; - fsm_msg.data_type = EIGRP_TLV_IPv4_INT; + fsm_msg.data_type = EIGRP_INT; fsm_msg.adv_router = nbr; fsm_msg.data.ipv4_int_type = tlv_max; fsm_msg.entry = entry; |