]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6: removing double-including of ospf6_neighbor.h
authorAdriano Marto Reis <adrianomarto@gmail.com>
Sat, 28 Oct 2023 05:39:36 +0000 (15:39 +1000)
committerAdriano Marto Reis <adrianomarto@gmail.com>
Sat, 28 Oct 2023 05:46:18 +0000 (15:46 +1000)
Moving ospf6_if_p2xp_neighcfg to ospf6_interface.h so we don't need to
include ospf6_neighbor.h.

Signed-off-by: Adriano Marto Reis <adrianomarto@gmail.com>
ospf6d/ospf6_interface.h
ospf6d/ospf6_neighbor.h

index 593659f3601bbe2e72067629f61505eea2878fe8..2b42af390a0cf38d6359872a8720b9e7a9624860 100644 (file)
@@ -13,8 +13,6 @@
 
 DECLARE_MTYPE(OSPF6_AUTH_MANUAL_KEY);
 
-#include "ospf6_neighbor.h"
-
 /* Debug option */
 extern unsigned char conf_debug_ospf6_interface;
 #define OSPF6_DEBUG_INTERFACE_ON() (conf_debug_ospf6_interface = 1)
@@ -36,6 +34,25 @@ struct ospf6_auth_data {
        uint32_t rx_drop; /* Pkt drop due to auth fail while reading */
 };
 
+PREDECL_RBTREE_UNIQ(ospf6_if_p2xp_neighcfgs);
+
+struct ospf6_if_p2xp_neighcfg {
+       struct ospf6_if_p2xp_neighcfgs_item item;
+
+       struct ospf6_interface *ospf6_if;
+       struct in6_addr addr;
+
+       bool cfg_cost : 1;
+
+       uint32_t cost;
+       uint16_t poll_interval;
+
+       /* NULL if down */
+       struct ospf6_neighbor *active;
+
+       struct event *t_unicast_hello;
+};
+
 /* Interface structure */
 struct ospf6_interface {
        /* IF info from zebra */
index e8bbeaf0783d066c7f377c9eb20f227e598a379f..60a76215b7d9d72cd924f50db93c01a7e7076cca 100644 (file)
@@ -150,25 +150,6 @@ struct ospf6_neighbor {
        bool lls_present;
 };
 
-PREDECL_RBTREE_UNIQ(ospf6_if_p2xp_neighcfgs);
-
-struct ospf6_if_p2xp_neighcfg {
-       struct ospf6_if_p2xp_neighcfgs_item item;
-
-       struct ospf6_interface *ospf6_if;
-       struct in6_addr addr;
-
-       bool cfg_cost : 1;
-
-       uint32_t cost;
-       uint16_t poll_interval;
-
-       /* NULL if down */
-       struct ospf6_neighbor *active;
-
-       struct event *t_unicast_hello;
-};
-
 /* Neighbor state */
 #define OSPF6_NEIGHBOR_DOWN     1
 #define OSPF6_NEIGHBOR_ATTEMPT  2