⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpls_tree_impl.h

📁 实现了MPLS中的标签分发协议(LDP 3036 )的基本功能
💻 H
字号:
/* *  Copyright (C) James R. Leu 2002 *  jleu@mindspring.com * *  This software is covered under the LGPL, for more *  info check out http://www.gnu.org/copyleft/lgpl.html */#ifndef _MPLS_TREE_IMPL_H_#define _MPLS_TREE_IMPL_H_#include "mpls_struct.h"/* * in: depth * return: mpls_tree_handle */extern mpls_tree_handle mpls_tree_create(const int depth);/* * in: tree */extern void mpls_tree_delete(const mpls_tree_handle tree);/* * in: tree,key, length, node * return: mpls_return_enum */extern mpls_return_enum mpls_tree_insert(const mpls_tree_handle tree,  const uint32_t key, const int length, void *node);/* * in: tree, key, length, node * return: mpls_return_enum */extern mpls_return_enum mpls_tree_remove(const mpls_tree_handle tree,  const uint32_t key, const int length, void **node);/* * in: tree, key, length, nnode, onode * return: mpls_return_enum, onode */extern mpls_return_enum mpls_tree_replace(const mpls_tree_handle tree,  const uint32_t key, const int length, void *nnode, void **onode);/* * in: tree, key, length, node * return: mpls_return_enum */extern mpls_return_enum mpls_tree_get(const mpls_tree_handle tree,  const uint32_t key, const int length, void **node);/* * in: tree, key, length, node * return: mpls_return_enum */extern mpls_return_enum mpls_tree_get_longest(const mpls_tree_handle tree,  const uint32_t key, void **node);extern void mpls_tree_dump(const mpls_tree_handle tree,  ldp_tree_callback callback);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -