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

📄 rrtypes.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/09/20 10:32:12 $*  $Source: M:/psisrc/routing/incl/rcs/rrtypes.h $*  $Revision: 1.6 $**************************************************************************  File Description: common data types  *************************************************************************/#ifndef _rr_types_h#define _rr_types_h/***********************************************RR macros/defines***********************************************/#define counter		unsigned long#ifndef rrdword#define rrdword unsigned long#endif#ifndef rrword#define rrword unsigned short#endif#ifndef rrbyte#define rrbyte unsigned char#endif#ifndef rrsdword#define rrsdword long#endif#define boolean		int#define enum_type 	int			#define counter		unsigned long#define gauge		unsigned long#define metric		inttypedef int		    (*fcnptr)();typedef void *		(*vfcnptr)(void *);typedef void		(*vvfcnptr)();/* generic dual linked list struct */typedef struct dll{	struct dll *dll_fwd;	struct dll *dll_bwd;}DLL, *dll_pt; #ifndef dword#define dword unsigned long#endif#ifndef word#define word unsigned short#endif#ifndef byte#define byte unsigned char#endif#ifndef sdword#define sdword long#endif#ifndef FALSE#define FALSE 0#endif#ifndef TRUE#define TRUE  1#endif#ifndef NULL#define NULL  0#endif/* timer struct:   we make an order linked list with expiration time   to first entry kept separate. each entry then   contains a delta time relative to previous.*/typedef struct routing_timer{	struct routing_timer	*t_fwd; 	/* link */	struct routing_timer	*t_bwd; 	/* link */					/* pointer to callback fnc to					   call on expiration */	void				*(*t_callback)(void*);					/* a pointer to a generic struct,					   passed as param to callback */	void				*t_param;	int				 t_delta;	/* delta ttl */					/* original time, used for cyclic					   timers. */	int				 t_time;	int				 t_type;		/* cycle or 1shot */}rrTIMER, *rrtimer_pt;#define TTYPE_ONESHOT	1#define TTYPE_CYCLIC	2/* timer list head */typedef struct rrtimer_head{	rrtimer_pt dll_fwd;	rrtimer_pt dll_bwd;	int        cumtime;}rrTHEAD, *rrthead_pt;#endif

⌨️ 快捷键说明

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