📄 mospf.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/09/20 10:32:05 $* $Source: M:/psisrc/routing/incl/rcs/mospf.h $* $Revision: 1.6 $************************************************************************** File Description: OSPF - spf decision process definition *************************************************************************//* incoming links types used by mospf */#define MSPF_ILT_VIRT 5#define MSPF_ILT_DIR 4#define MSPF_ILT_NORM 3#define MSPF_ILT_SUM 2#define MSPF_ILT_EXT 1#define MSPF_ILT_NONE 0/* type of mospf candidate initialization per section 12.2 */#define MSPF_ITY_INTRA 5#define MSPF_ITY_INTER1 4#define MSPF_ITY_INTER2 3#define MSPF_ITY_EXT 2#define MSPF_ITY_STUBEXT 1/* group lsa vertex types */#define MSPF_VTYPE_RTR 1#define MSPF_VTYPE_TRANS 2/* a cache entry built by mospf *//* we really want to keep this independent of announce-ip so we max out number of interfaces. Note that ther is only one of this structure which is used when computing a route. IP is actually responsible for maintaining the cache database.*/#define MOSPF_MAX_NBR 256typedef struct mospf_cache_entry{ rripa ce_grp; rripa ce_src; IPNA ce_srcnet; int ce_is_ospf; /* route is ospf */ lsai_pt ce_lsai; /* route lsai */ rripa ce_aid; /* route area */ area_pt ce_rootarea; int ce_rootinit; int ce_cost; void *ce_upif; /* downstream interfaces */ int ce_dncount; void *ce_dnnode[MOSPF_MAX_NBR]; byte ce_dnttl[MOSPF_MAX_NBR];}MCACHE_ENT,*mospf_cache_pt; fnc_prot(void, mospfCircChange,(os_circ_pt))fnc_prot(void, mospfClearCache,(rripa,ipna_pt))fnc_prot(void, mospfAddCache,(mospf_cache_pt))fnc_prot(rripa, mospfGroup,(rripa, void *,int))fnc_prot(int, mospfCircEnabled,(void *))fnc_prot(void, mospfBuildMyGroups,(area_pt, rripa ))fnc_prot(void, mospfSetVertex,(pathent_pt, pathent_pt,int))fnc_prot(int, mospfDoReplace,(pathent_pt, pathent_pt,int))fnc_prot(void, mospfRunSpf,(rripa,rripa,mospf_cache_pt))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -