]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6d.c
*: Convert `struct event_master` to `struct event_loop`
[mirror_frr.git] / ospf6d / ospf6d.c
index cc5a0f7870a8718f57408114e8c4630e43569b9e..3700511fa244559df3ddae8731a3217b410e055a 100644 (file)
@@ -1,26 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2003 Yasuhiro Ohara
- *
- * This file is part of GNU Zebra.
- *
- * GNU Zebra is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2, or (at your option) any
- * later version.
- *
- * GNU Zebra is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * 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 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
  */
 
 #include <zebra.h>
 
-#include "thread.h"
+#include "event.h"
 #include "linklist.h"
 #include "vty.h"
 #include "command.h"
@@ -48,6 +33,7 @@
 #include "ospf6_gr.h"
 #include "lib/json.h"
 #include "ospf6_nssa.h"
+#include "ospf6_auth_trailer.h"
 
 DEFINE_MGROUP(OSPF6D, "ospf6d");
 
@@ -98,6 +84,7 @@ static int config_write_ospf6_debug(struct vty *vty)
        config_write_ospf6_debug_flood(vty);
        config_write_ospf6_debug_nssa(vty);
        config_write_ospf6_debug_gr_helper(vty);
+       config_write_ospf6_debug_auth(vty);
 
        return 0;
 }
@@ -113,6 +100,8 @@ DEFUN_NOSH (show_debugging_ospf6,
 
        config_write_ospf6_debug(vty);
 
+       cmd_show_lib_debugs(vty);
+
        return CMD_SUCCESS;
 }
 
@@ -1386,7 +1375,7 @@ DEFUN(show_ipv6_ospf6_linkstate_detail, show_ipv6_ospf6_linkstate_detail_cmd,
 }
 
 /* Install ospf related commands. */
-void ospf6_init(struct thread_master *master)
+void ospf6_init(struct event_loop *master)
 {
        ospf6_top_init();
        ospf6_area_init();
@@ -1458,4 +1447,7 @@ void ospf6_init(struct thread_master *master)
                VIEW_NODE,
                &show_ipv6_ospf6_database_type_self_originated_linkstate_id_cmd);
        install_element(VIEW_NODE, &show_ipv6_ospf6_database_aggr_router_cmd);
+       install_element_ospf6_debug_auth();
+       ospf6_interface_auth_trailer_cmd_init();
+       install_element_ospf6_clear_intf_auth();
 }