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

📄 icirc.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:03 $*  $Source: M:/psisrc/routing/incl/rcs/icirc.h $*  $Revision: 1.3 $**************************************************************************  File Description: RR:Definitions for IP circuits routes *************************************************************************/#ifndef __IP_CIRC_H__#define __IP_CIRC_H__/* circuit structure, one for each I/O channel */typedef struct ip_circ{	struct ip_circ		*rc_fwd;		/* link */	struct ip_circ		*rc_bwd;		/* link */	void				*rc_gptr;		/* environment use */	int					rc_id;			/* numerical order*/	void				*rc_magic;	    /* for ptpt ID */	int					rc_maxlen;		/* MTU */	int					rc_type;		/* type of circuit */	int					rc_admst;		/* admin state */	int					rc_state;		/* state of circuit */	int					rc_arprsp;	    /* do arp rsp */	int					rc_arpproxy;	/* do arp proxy */	int					rc_flags;	int					rc_mcastenl;	/* multicast enable */	int					rc_mcastprot;	IPNA   		     	rc_ipa[MAX_IF_IPADD];	SNAD				rc_ladd;		/* data link addr */	dword				rc_tput; #ifdef IPMULTI	dword				rc_igmp_qint;	/* query int */	dword				rc_igmp_qval;	/* current val */	int					rc_igmp_version;	int					rc_igmp_state;	rripa					rc_igmp_querier;	dword				rc_igmp_maxrsp;	dword				rc_igmp_qptimeout;	dword				rc_igmp_qpval;	int					rc_igmp_leaveena;	dword				rc_igmp_v1qt;	counter				rc_igmp_wrongver;	counter				rc_igmp_joins;	counter				rc_igmp_leaves;#endif}ICIRC, *icirc_pt;/*circuit types */#define CIRC_ETH		1		/* EHTERNET TYPE */#define CIRC_TR		    2		/* token ring type */#define CIRC_TRGRP      4       /* tkn rng- group addr*/#define CIRC_FDDI		8		/* FDDI */#define CIRC_P2MP		0x40	/* pt 2 multipt */#define CIRC_LEM		0x80	/* lan emulation (nbma)*//* these still need mac resolution, but std arp wont work */#define CIRC_NON802	(RCIRC_P2MP | RCIRC_LEM)#define CIRC_LAN		0xff	/* any multiaccess */#define CIRC_PTPT		0x100	/* leased line or direct */#define CIRC_VLNK       0x200   /* virtual link *//*circuit states */#define CIRC_DOWN		1		/* initial state */#define CIRC_UP		    2		/* alive *//*circuit physical states */#define CIRC_DOWN       1       /* initial state */#define CIRC_UP         2       /*alive or vc has route*//* Circuit events (Some files use one, some the other)*/#define CEVENT_STATE        1#define RCEVENT_STATE		1/* routing metric defaults */#define METRIC_DEF	0	/* default metric */#define RCFLAG_RDISC      1#define RCFLAG_G_AMSK     2#endif /* __IP_CIRC_H__ */

⌨️ 快捷键说明

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