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

📄 rsvp_tcif.h

📁 radius协议源码÷The Radius Stack will connect to a Radius Server. This stack implementation is built upo
💻 H
字号:
/* * @(#) $Id: rsvp_TCif.h,v 1.1.1.1 2000/05/08 22:51:24 wenqing Exp $ *//*************************************************************** * *	rsvp_TCif.h: Include file for LL adaption module (LLDAL) for *		kernel Traffic Control (rsvp_LLkern.c). * ***************************************************************//****************************************************************************            RSVPD -- ReSerVation Protocol Daemon                USC Information Sciences Institute                Marina del Rey, California		Current Version:  Bob Braden, May 1996.  Copyright (c) 1996 by the University of Southern California  All rights reserved.  Permission to use, copy, modify, and distribute this software and its  documentation in source and binary forms for any purpose and without  fee is hereby granted, provided that both the above copyright notice  and this permission notice appear in all copies, and that any  documentation, advertising materials, and other materials related to  such distribution and use acknowledge that the software was developed  in part by the University of Southern California, Information  Sciences Institute.  The name of the University may not be used to  endorse or promote products derived from this software without  specific prior written permission.  THE UNIVERSITY OF SOUTHERN CALIFORNIA makes no representations about  the suitability of this software for any purpose.  THIS SOFTWARE IS  PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,  INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  Other copyrights might apply to parts of this software and are so  noted when applicable.********************************************************************/#ifndef __rsvp_TCif_h__#define __rsvp_TCif_h__/* *	The following default values are used in TC interface to update *	general characterization parameters. */#define	TC_DFLT_PATH_BW		(1.0e7/8)	/* Ethernet BW assumed	*/#define TC_DFLT_MIN_LATENCY	0		/* *REALLY* fast!	*/#define TC_DFLT_MTU		1500		/* Assume Ethernet	*//* *	TCSB: Traffic Control reservation state block. */typedef struct tc_resv {	struct tc_resv	*tcs_next;	int		 tcs_OIf;	/* Outgoing (logical) interface */	FiltSpecStar	*tcs_filtstar;	/* Ptr to Var-len filtspec list */	FLOWSPEC	*tcs_spec;	/* Effective FLOWSPEC object	*/	SENDER_TSPEC	*tcs_tspec;	/* Effective SENDER_TSPEC object*/	u_long		 tcs_rhandle;	/* Resv handle from TC		*/	u_char		 tcs_kflags;	/* Flags for kernel		*/	u_char		 tcs_flags;	/* Control/comm flags		*/#define TCF_MERGED	0x10		/* >1 RSB merged into this TCSB */} TCSB;#define Fhandle		fst_info/* *	Assumed Interface to Traffic Control kernel *//* TC_AddFlowspec(): Makes a reservation. * *	Reservation is for MIN(*spec, *stspec); pass this to *	admission control, and if it is OK, make reservation. * *	Returns rhandle or TC_ERROR. */u_longTC_AddFlowspec(int OIf, FLOWSPEC *spec, SENDER_TSPEC *stspec, ADSPEC *adspecp,					int flags, FLOWSPEC **fwd_specpp);/* * TC_ModFlowspec(): Modifies a flowspec of a given flow. */intTC_ModFlowspec(int OIf, u_long rhandle,			FLOWSPEC *specp, SENDER_TSPEC *stspecp, ADSPEC *adspecp,					int flags, FLOWSPEC **fwd_specpp);/* * TC_DelFlowspec(): This routine deletes flow for specified handle; *	it also deletes all corresponding filter specs. */intTC_DelFlowspec(int OIf, u_long rhandle);/* * TC_AddFilter(): Adds a filter for an existing flow. * *	Returns fhandle or TC_ERROR. */u_longTC_AddFilter(int OIf, u_long rhandle, Session *dest, FILTER_SPEC *filtp);/* * TC_DelFilter(): Deletes existing filter. */intTC_DelFilter(int OIf, u_long fhandle);/* * TC_Advertise(): Update OPWA ADSPEC. */ADSPEC *TC_Advertise(int OIf, ADSPEC * adspecp, int flags);#define ADVERTF_NonRSVP			0x01		/* Initialization call when RSVP starts.  In case of error, it is *  suggested that an error message be logged and exit called. */voidTC_init(int OIf);/*	In case of error, these routines set the appropriate error code *	and value in the external variable rsvp_errno, and return one of *	the following error indications: */#define TC_ERROR	-1#define TC_OK		0#endif	/* __rsvp_TCif_h__ */

⌨️ 快捷键说明

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