]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripngd/ripng_nexthop.c
Merge pull request #5681 from opensourcerouting/manpage-rename
[mirror_frr.git] / ripngd / ripng_nexthop.c
index 849759e0701dd6c7c5eff0a965926bded76e6d7e..ba6e52fdda0e7f290443d1b73efe655a54524e93 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 /* This file is required in order to support properly the RIPng nexthop
@@ -40,6 +39,8 @@
 #include "ripngd/ripng_debug.h"
 #include "ripngd/ripng_nexthop.h"
 
+DEFINE_MTYPE_STATIC(RIPNGD, RIPNG_RTE_DATA, "RIPng rte data")
+
 #define DEBUG 1
 
 #define min(a, b) ((a) < (b) ? (a) : (b))
@@ -73,7 +74,7 @@ struct list *ripng_rte_new(void)
 
 void ripng_rte_free(struct list *ripng_rte_list)
 {
-       list_delete(ripng_rte_list);
+       list_delete(&ripng_rte_list);
 }
 
 /* Delete RTE */
@@ -115,7 +116,8 @@ void ripng_rte_add(struct list *ripng_rte_list, struct prefix_ipv6 *p,
 void ripng_rte_send(struct list *ripng_rte_list, struct interface *ifp,
                    struct sockaddr_in6 *to)
 {
-
+       struct ripng_interface *ri = ifp->info;
+       struct ripng *ripng = ri->ripng;
        struct ripng_rte_data *data;
        struct listnode *node, *nnode;