forked from Mirror/frr
pathd: kill *_memory.[ch]
Ouch, MTYPE_PCEP is used in 81 places :( Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
b4216e2c66
commit
c7479286ae
|
@ -20,6 +20,7 @@
|
|||
#include <math.h>
|
||||
#include <zebra.h>
|
||||
|
||||
#include "memory.h"
|
||||
#include "log.h"
|
||||
#include "command.h"
|
||||
#include "mpls.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
|
||||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_nb.h"
|
||||
#include "pathd/path_memory.h"
|
||||
#ifndef VTYSH_EXTRACT_PL
|
||||
#include "pathd/path_cli_clippy.c"
|
||||
#endif
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2020 NetDEF, Inc.
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 <memory.h>
|
||||
|
||||
#include "pathd/path_memory.h"
|
||||
|
||||
DEFINE_MGROUP(PATHD, "pathd");
|
|
@ -1,26 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2020 NetDEF, Inc.
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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
|
||||
*/
|
||||
|
||||
#ifndef _FRR_PATH_MEMORY_H_
|
||||
#define _FRR_PATH_MEMORY_H_
|
||||
|
||||
#include "memory.h"
|
||||
|
||||
DECLARE_MGROUP(PATHD);
|
||||
|
||||
#endif /* _FRR_PATH_MEMORY_H_ */
|
|
@ -19,6 +19,7 @@
|
|||
#include <zebra.h>
|
||||
#include "pceplib/pcep_utils_counters.h"
|
||||
|
||||
#include "memory.h"
|
||||
#include "log.h"
|
||||
#include "command.h"
|
||||
#include "libfrr.h"
|
||||
|
@ -31,13 +32,13 @@
|
|||
|
||||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_errors.h"
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
#include "pathd/path_pcep.h"
|
||||
#include "pathd/path_pcep_cli.h"
|
||||
#include "pathd/path_pcep_controller.h"
|
||||
#include "pathd/path_pcep_lib.h"
|
||||
#include "pathd/path_pcep_config.h"
|
||||
|
||||
DEFINE_MTYPE(PATHD, PCEP, "PCEP module");
|
||||
|
||||
/*
|
||||
* Globals.
|
||||
|
|
|
@ -22,11 +22,13 @@
|
|||
#include <stdbool.h>
|
||||
#include <debug.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include "memory.h"
|
||||
#include "pceplib/pcep_utils_logging.h"
|
||||
#include "pceplib/pcep_pcc_api.h"
|
||||
#include "mpls.h"
|
||||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
|
||||
DECLARE_MTYPE(PCEP);
|
||||
|
||||
#define PCEP_DEFAULT_PORT 4189
|
||||
#define MAX_PCC 32
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_errors.h"
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
#include "pathd/path_pcep.h"
|
||||
#include "pathd/path_pcep_cli.h"
|
||||
#include "pathd/path_pcep_controller.h"
|
||||
|
|
|
@ -18,15 +18,18 @@
|
|||
|
||||
#include <zebra.h>
|
||||
|
||||
#include "memory.h"
|
||||
|
||||
#include <debug.h>
|
||||
#include "pceplib/pcep_utils_counters.h"
|
||||
#include "pceplib/pcep_timers.h"
|
||||
#include "pathd/path_errors.h"
|
||||
#include "pathd/path_memory.h"
|
||||
#include "pathd/path_pcep.h"
|
||||
#include "pathd/path_pcep_lib.h"
|
||||
#include "pathd/path_pcep_debug.h"
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
|
||||
DEFINE_MTYPE_STATIC(PATHD, PCEPLIB_INFRA, "PCEPlib Infrastructure");
|
||||
DEFINE_MTYPE_STATIC(PATHD, PCEPLIB_MESSAGES, "PCEPlib PCEP Messages");
|
||||
|
||||
#define CLASS_TYPE(CLASS, TYPE) (((CLASS) << 16) | (TYPE))
|
||||
#define DEFAULT_LSAP_SETUP_PRIO 4
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2020 NetDEF, Inc.
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 <memory.h>
|
||||
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
|
||||
DEFINE_MTYPE(PATHD, PCEP, "PCEP module");
|
||||
DEFINE_MTYPE(PATHD, PCEPLIB_INFRA, "PCEPlib Infrastructure");
|
||||
DEFINE_MTYPE(PATHD, PCEPLIB_MESSAGES, "PCEPlib PCEP Messages");
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2020 NetDEF, Inc.
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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
|
||||
*/
|
||||
|
||||
#ifndef _FRR_PATH_PCEP_MEMORY_H_
|
||||
#define _FRR_PATH_PCEP_MEMORY_H_
|
||||
|
||||
#include "pathd/path_memory.h"
|
||||
|
||||
DECLARE_MTYPE(PCEP);
|
||||
DECLARE_MTYPE(PCEPLIB_INFRA);
|
||||
DECLARE_MTYPE(PCEPLIB_MESSAGES);
|
||||
|
||||
#endif /* _FRR_PATH_PCEP_MEMORY_H_ */
|
|
@ -41,7 +41,6 @@
|
|||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_zebra.h"
|
||||
#include "pathd/path_errors.h"
|
||||
#include "pathd/path_pcep_memory.h"
|
||||
#include "pathd/path_pcep.h"
|
||||
#include "pathd/path_pcep_controller.h"
|
||||
#include "pathd/path_pcep_lib.h"
|
||||
|
|
|
@ -24,12 +24,13 @@
|
|||
#include "network.h"
|
||||
|
||||
#include "pathd/pathd.h"
|
||||
#include "pathd/path_memory.h"
|
||||
#include "pathd/path_zebra.h"
|
||||
#include "pathd/path_debug.h"
|
||||
|
||||
#define HOOK_DELAY 3
|
||||
|
||||
DEFINE_MGROUP(PATHD, "pathd");
|
||||
|
||||
DEFINE_MTYPE_STATIC(PATHD, PATH_SEGMENT_LIST, "Segment List");
|
||||
DEFINE_MTYPE_STATIC(PATHD, PATH_SR_POLICY, "SR Policy");
|
||||
DEFINE_MTYPE_STATIC(PATHD, PATH_SR_CANDIDATE, "SR Policy candidate path");
|
||||
|
|
|
@ -19,11 +19,14 @@
|
|||
#ifndef _FRR_PATHD_H_
|
||||
#define _FRR_PATHD_H_
|
||||
|
||||
#include "lib/memory.h"
|
||||
#include "lib/mpls.h"
|
||||
#include "lib/ipaddr.h"
|
||||
#include "lib/srte.h"
|
||||
#include "lib/hook.h"
|
||||
|
||||
DECLARE_MGROUP(PATHD);
|
||||
|
||||
enum srte_protocol_origin {
|
||||
SRTE_ORIGIN_UNDEFINED = 0,
|
||||
SRTE_ORIGIN_PCEP = 1,
|
||||
|
|
|
@ -23,7 +23,6 @@ pathd_libpath_a_SOURCES = \
|
|||
pathd/path_debug.c \
|
||||
pathd/path_errors.c \
|
||||
pathd/path_main.c \
|
||||
pathd/path_memory.c \
|
||||
pathd/path_nb.c \
|
||||
pathd/path_nb_config.c \
|
||||
pathd/path_nb_state.c \
|
||||
|
@ -39,14 +38,12 @@ clippy_scan += \
|
|||
noinst_HEADERS += \
|
||||
pathd/path_debug.h \
|
||||
pathd/path_errors.h \
|
||||
pathd/path_memory.h \
|
||||
pathd/path_nb.h \
|
||||
pathd/path_pcep.h \
|
||||
pathd/path_pcep_cli.h \
|
||||
pathd/path_pcep_controller.h \
|
||||
pathd/path_pcep_debug.h \
|
||||
pathd/path_pcep_lib.h \
|
||||
pathd/path_pcep_memory.h \
|
||||
pathd/path_pcep_config.h \
|
||||
pathd/path_pcep_pcc.h \
|
||||
pathd/path_zebra.h \
|
||||
|
@ -65,7 +62,6 @@ pathd_pathd_pcep_la_SOURCES = \
|
|||
pathd/path_pcep_controller.c \
|
||||
pathd/path_pcep_debug.c \
|
||||
pathd/path_pcep_lib.c \
|
||||
pathd/path_pcep_memory.c \
|
||||
pathd/path_pcep_config.c \
|
||||
pathd/path_pcep_pcc.c \
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue