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

📄 os_const.h

📁 用于嵌入式系统的TCP/IP协议栈及若干服务
💻 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/11/27 09:04:17 $*  $Source: M:/psisrc/routing/incl/rcs/os_const.h $*  $Revision: 1.6 $**************************************************************************  File Description:  OSPF - constants *************************************************************************/#ifndef OSPF_CONSTANTS_H#define OSPF_CONSTANTS_H 1#define LS_REFRESH              30*60#define LS_MIN_INT              5#define LS_MIN_ARRIVE   1#define LS_MAXAGE               60*60#define LS_CHECKAGE             5*60#define LS_MAXAGEDIFF   15*60#define LS_INFINITY             0x00ffffff#define LSA_SEQ_START   0x80000001#define LSA_SEQ_MAX             0x7fffffff#define DEF_DEST                0                       /* 0.0.0.0*/#define OSPF_ALLSPF             224.0.0.5#define OSPF_ALLDR              224.0.0.6#define IP_PROT_OSPF    89#define OSPF_MD5_LEN    16/* ospf error message codes -- the code for -1 must be there but the others * may be anything.  */#define OSPFERR_NO_ERR                0#define OSPFERR_GENERAL_ERROR        -1#define OSPFERR_BAD_AUTH             -2#define OSPFERR_DUP                  -3#define OSPFERR_BAD_ALLOC            -4#define OSPFERR_ROUTER_ON            -5#define OSPFERR_NOT_FOUND            -6#define OSPFERR_BBAREA               -7#define OSPFERR_INTF_NOT_FOUND       -8#define OSPFERR_CONFLICT             -9#define OSPFERR_BAD_ADV             -10#define OSPFERR_AREA_NOT_FOUND      -11#define OSPFERR_UP                  -12#define OSPFERR_NOCIRC              -13#define OSPFERR_BADVAL              -14#define OSPF_DEF_STUB_COST              1/* the spec is for version 2, period.  But we may as well be flexible... */#define CORRECT_OSPF_VERSION_NUMBER 2#define ALL_D_ROUTERS 0xe0000006   /* 224.0.0.6 */#define ALL_SPF_ROUTERS 0xe0000005 /* 224.0.0.5 *//* external api modify constants */#define OSPF_AM_ROUTERID                1#define OSPF_AM_ASBDR_STATUS            2#define OSPF_AM_IF_PRIORITY             3#define OSPF_AM_IF_TRANSDEL             4#define OSPF_AM_IF_RETRANSINT           5#define OSPF_AM_IF_HELLOINT             6#define OSPF_AM_IF_DEADINT              7#define OSPF_AM_IF_POLLINT              8#define OSPF_AM_IF_AUTHKEY              9#define OSPF_AM_AR_AUTHTYPE             10#define OSPF_AM_AR_IMPRTASE             11#define OSPF_AM_AR_STUBMET              12#define OSPF_AM_SPFHOLD                 13#define OSPF_AM_SPFSUSPEND              14#define OSPF_AM_DOTOS                   15#define OSPF_AM_DOAUTOVLINK             16#define OSPF_AM_IF_COST                 17#define OSPF_AM_IF_COSTDEL              18#define OSPF_AM_IF_COSTTP               19#define OSPF_AM_IF_COSTREL              20#define OSPF_AM_IF_COSTMON              21#define OSPF_AM_AR_NSSA                 22#define OSPF_AM_AR_NT                   23#define OSPF_AM_IF_AUTYPE               24#define OSPF_AM_AR_T3FILT               25#define OSPF_AM_AR_STUBMETTYP   26/* summary advertise */#define R_ADVERTISE             1#define R_NO_ADVERTISE  2/* stub types */#define AREA_NORM               0#define AREA_STUB               1#define AREA_NSSA               2/* auth types */#define AUTH_TYPE_NONE 0#define AUTH_TYPE_SIMPLE 1#define AUTH_TYPE_MD5   2/* circuit types */#define CIRC_ETH        1       /* ETHERNET TYPE */#define CIRC_TR         2       /* tkn rng- functional */#define CIRC_TRGRP      4       /* tkn rng- group address */#define CIRC_FDDI       8#define CIRC_P2MP       0x40   /* point to multipoint */#define CIRC_LEM        0x80        /* lan emulate (nbma) */#define CIRC_LAN        0xff    /* any multiaccess */#define CIRC_OSLAN      0xbf    /* multiaccess but rrmp*/#define CIRC_PTPT       0x100   /* leased line or direct */#define CIRC_VLNK       0x200   /* virtual link */#ifndef OSPF_NUM_AUTH_KEYS#define OSM_NUMKEYS 2#else#define OSM_NUMKEYS OSPF_NUM_AUTH_KEYS#endif#endif /* #define OSPF_CONSTANTS_H */

⌨️ 快捷键说明

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