]> git.proxmox.com Git - mirror_frr.git/blobdiff - eigrpd/eigrp_neighbor.c
eigrpd: validate TLV lengths
[mirror_frr.git] / eigrpd / eigrp_neighbor.c
index 2d5bb0a7d13e9969ff089abf2f0ead200086931e..f2d5217eb0d68cedbfaf80bd6a289fc883e473ae 100644 (file)
 #include "eigrpd/eigrp_vty.h"
 #include "eigrpd/eigrp_network.h"
 #include "eigrpd/eigrp_topology.h"
-#include "eigrpd/eigrp_memory.h"
 #include "eigrpd/eigrp_errors.h"
 
+DEFINE_MTYPE_STATIC(EIGRPD, EIGRP_NEIGHBOR, "EIGRP neighbor");
+
 struct eigrp_neighbor *eigrp_nbr_new(struct eigrp_interface *ei)
 {
        struct eigrp_neighbor *nbr;
@@ -343,7 +344,7 @@ void eigrp_nbr_hard_restart(struct eigrp_neighbor *nbr, struct vty *vty)
        eigrp_nbr_delete(nbr);
 }
 
-int eigrp_nbr_split_horizon_check(struct eigrp_nexthop_entry *ne,
+int eigrp_nbr_split_horizon_check(struct eigrp_route_descriptor *ne,
                                  struct eigrp_interface *ei)
 {
        if (ne->distance == EIGRP_MAX_METRIC)