📄 rrtask.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: 2002/01/17 10:06:54 $ * $Source: M:/psisrc/routing/incl/rcs/rrtask.h $ * $Revision: 1.14 $ **************************************************************************** File Description: Message types for interface between r/t task and Fusion. ***************************************************************************/#ifndef __RRTASK_H__#define __RRTASK_H__#include "m.h"/* From FNS to router messages */#define ADD_LOCAL_ROUTE 1 /* add local route entry */#define ADD_STATIC_ROUTE 2 /* add static route entry */#define DEL_LOCAL_ROUTE 3 /* delete local route entry */#define DEL_STATIC_ROUTE 4 /* delete static route entry */#define RIP_MSG_ENABLE_RIP 5 /* Administratively enable RIP (global to all interfaces) */#define RIP_MSG_DISABLE_RIP 6 /* Administratively disable RIP "" */#define RIP_MSG_CONFIG_INTERFACE 7 /* Configure RIP to talk on an interface */#define RIP_MSG_GET_INTERFACE_INFO 8 /* Configure RIP to talk on an interface */#define RIP_MSG_GET_ADMIN_STATE 9 /* Get global admin state of RIP */#define RIP_RET_RIP_ENABLED 10 /* Return for RIP_MSG_GET_ADMIN_STATE */#define RIP_RET_RIP_DISABLED 11 /* Return for RIP_MSG_GET_ADMIN_STATE */#define ADD_ROUTE_LEAK 12 /* Add a leak from one routing domain to another */#define DEL_ROUTE_LEAK 13 /* Del "" */#define GET_ROUTE_TABLE 14 /* Retrieve routing table *//* OSPF */#define OSPF_GLOBAL_CFG 20#define OSPF_AREA_CFG 21#define OSPF_RANGE_CFG 22#define OSPF_IF_CFG 23 #define OSPF_VLINK_CFG 24#define OSPF_GET_NEIGHBORS 25#define OSPF_GET_AREAS 26#define OSPF_GET_DATABASE 27#define OSPF_GET_INTERFACES 28/* Structure passed to router task for adding/deleting routes */typedef struct fns_rrmsg { IPNA ipna; u32 ospf_area; u32 gw; u32 cost;}fns_route_msg;typedef struct _fns_rleak_msg { int dest_prot; int src_prot; void *parm;}fns_rleak_msg, *fns_rleak_msg_ptr;/* Masks for messages */#define R_MSG_MASK 0x7fff /* mask all the above router messages*/#define R_MSG_IN_USE 0x8000extern int router_task_rx( m *mp );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -