]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd: Fixed wrong type used
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Jul 2017 22:12:07 +0000 (18:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Jul 2017 22:12:07 +0000 (18:12 -0400)
Recent additions to prefix_copy to check afi type exposed
an issue with eigrp setting the wrong afi type for a `struct prefix`.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
eigrpd/eigrp_query.c
eigrpd/eigrp_reply.c
eigrpd/eigrp_update.c

index 3ef8f9a9753717865fe1b1c83a4cbb2d9fa3445d..1d308d2bee49a310bc802af2f46cd434a0cea8ae 100644 (file)
@@ -119,7 +119,7 @@ eigrp_query_receive (struct eigrp *eigrp, struct ip *iph, struct eigrp_header *e
 
           tlv = eigrp_read_ipv4_tlv(s);
 
-         dest_addr.family = AFI_IP;
+         dest_addr.family = AF_INET;
           dest_addr.prefix = tlv->destination;
           dest_addr.prefixlen = tlv->prefix_length;
           struct eigrp_prefix_entry *dest =
index e64a3d022f946cb63193be4083c186807085c421..4e3ed66a02a6a1811c12fad80cf56dd4c7f6adf2 100644 (file)
@@ -187,7 +187,7 @@ eigrp_reply_receive (struct eigrp *eigrp, struct ip *iph, struct eigrp_header *e
 
           tlv = eigrp_read_ipv4_tlv(s);
 
-          dest_addr.family = AFI_IP;
+          dest_addr.family = AF_INET;
           dest_addr.prefix = tlv->destination;
           dest_addr.prefixlen = tlv->prefix_length;
           struct eigrp_prefix_entry *dest =
index 24fd7074fa27c5e1090d5676a17f82ddcc65340a..bdebc21e1f8545bd7b8bc05918a76af25d9fb444 100644 (file)
@@ -297,7 +297,7 @@ eigrp_update_receive (struct eigrp *eigrp, struct ip *iph, struct eigrp_header *
           tlv = eigrp_read_ipv4_tlv(s);
 
           /*searching if destination exists */
-          dest_addr.family = AFI_IP;
+          dest_addr.family = AF_INET;
           dest_addr.prefix = tlv->destination;
           dest_addr.prefixlen = tlv->prefix_length;
           struct eigrp_prefix_entry *dest =