]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/label_manager.h
Merge pull request #13445 from donaldsharp/lua_scripting_mem_leak
[mirror_frr.git] / zebra / label_manager.h
index 82154982c26bc23db31fb06ddef0c9d1f42131c7..cfbb4bd16987174fba29acf9292dcb937bb701b4 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Label Manager header
  *
@@ -5,20 +6,6 @@
  *                       Volta Networks Inc.
  *
  * This file is part of FRRouting (FRR)
- *
- * FRR 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.
- *
- * FRR 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 _LABEL_MANAGER_H
@@ -27,7 +14,7 @@
 #include <stdint.h>
 
 #include "lib/linklist.h"
-#include "lib/thread.h"
+#include "frrevent.h"
 #include "lib/hook.h"
 
 #include "zebra/zserv.h"
@@ -95,11 +82,9 @@ int lm_get_chunk_response(struct label_manager_chunk *lmc, struct zserv *client,
                          vrf_id_t vrf_id);
 
 /* convenience function to allocate an lmc to be consumed by the above API */
-struct label_manager_chunk *create_label_chunk(uint8_t proto,
-                                              unsigned short instance,
-                                              uint32_t session_id,
-                                              uint8_t keep, uint32_t start,
-                                              uint32_t end);
+struct label_manager_chunk *
+create_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
+                  uint8_t keep, uint32_t start, uint32_t end);
 void delete_label_chunk(void *val);
 
 /* register/unregister callbacks for hooks */
@@ -115,11 +100,9 @@ struct label_manager {
 };
 
 void label_manager_init(void);
-struct label_manager_chunk *assign_label_chunk(uint8_t proto,
-                                              unsigned short instance,
-                                              uint32_t session_id,
-                                              uint8_t keep, uint32_t size,
-                                              uint32_t base);
+struct label_manager_chunk *
+assign_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
+                  uint8_t keep, uint32_t size, uint32_t base);
 int release_label_chunk(uint8_t proto, unsigned short instance,
                        uint32_t session_id, uint32_t start, uint32_t end);
 int lm_client_disconnect_cb(struct zserv *client);