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

📄 xti_ip.h

📁 OpenSS7 This the fourth public release of the OpenSS7 Master Package. See README in the release for
💻 H
字号:
/***************************************************************************** @(#) xti_ip.h,v 0.9.2.5 2006/09/25 12:10:09 brian Exp ----------------------------------------------------------------------------- Copyright (c) 2001-2006  OpenSS7 Corporation <http://www.openss7.com/> Copyright (c) 1997-2001  Brian F. G. Bidulock <bidulock@openss7.org> All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ----------------------------------------------------------------------------- U.S. GOVERNMENT RESTRICTED RIGHTS.  If you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you.  If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users).  If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). ----------------------------------------------------------------------------- Commercial licensing and support of this software is available from OpenSS7 Corporation at a fee.  See http://www.openss7.com/ ----------------------------------------------------------------------------- Last Modified 2006/09/25 12:10:09 by brian ----------------------------------------------------------------------------- xti_ip.h,v Revision 0.9.2.5  2006/09/25 12:10:09  brian - updated and doxygenified headers Revision 0.9.2.4  2006/09/18 13:52:37  brian - added doxygen markers to sources Revision 0.9.2.3  2005/05/14 08:30:49  brian - copyright header correction Revision 0.9.2.2  2004/09/02 09:31:14  brian - Synchronization with other packages. Revision 0.9.2.1  2004/05/12 08:01:39  brian - Added in xti library and STREAMS modules. Revision 1.1.2.1  2004/04/13 12:12:52  brian - Rearranged header files. *****************************************************************************/#ifndef _SYS_XTI_IP_H#define _SYS_XTI_IP_H#ident "@(#) xti_ip.h,v openss7-0_9_2_E(0.9.2.5) Copyright (c) 2001-2006 OpenSS7 Corporation."/* This file can be processed with doxygen(1). *//** @addtogroup xnet  * @{ *//** @file  * XTI INET header file.  *   * In accordance with OpenGroup Single UNIX Specifications, the symbols in this  * file are exposed by including the <xti.h> header file.  *//* * XTI INET Header File. *//* * IP level */#define T_INET_IP		0	/**< IP level (same as protocol number). *//**  * @name IP Level Options  *  * @{ */#define T_IP_OPTIONS		1	/**< IP per-packet options. */#define T_IP_TOS		2	/**< IP per-packet type of service. */#define T_IP_TTL		3	/**< IP per-packet time to live. */#define T_IP_REUSEADDR		4	/**< allow local address reuse. */#define T_IP_DONTROUTE		5	/**< just use interface addresses. */#define T_IP_BROADCAST		6	/**< permit sending of broadcast msgs. */#define T_IP_ADDR		7	/**< dest/srce address of recv/sent packet. *//** @} *//**  * @name IP_TOS Precedence Levels  *  * @{ */#define T_ROUTINE		0	/**< Routine. */#define T_PRIORITY		1	/**< Priority. */#define T_IMMEDIATE		2	/**< Immediate. */#define T_FLASH			3	/**< Flash. */#define T_OVERRIDEFLASH		4	/**< Override Flash. */#define T_CRITIC_ECP		5	/**< Critical. */#define T_INETCONTROL		6	/**< Internet Control. */#define T_NETCONTROL		7	/**< Network Control. *//** @} *//**  * @name IP_TOS Type of Service  *  * @{ */#define T_NOTOS			0	/**< No Type of Service. */#define T_LDELAY		(1<<4)	/**< Low delay. */#define T_HITHRPT		(1<<3)	/**< High throughput. */#define T_HIREL			(1<<2)	/**< High reliability. */#define T_LOCOST		(1<<1)	/**< Low cost. *//** @} *//** Set TOS value. */#define SET_TOS(prec, tos) \	(((0x7 & (prec)) << 5) | ((T_NOTOS|T_LDELAY|T_HITHRPT|T_HIREL|T_LOCOST) & (tos)))#endif				/* _SYS_XTI_IP_H *//** @} */// vim: com=srO\:/**,mb\:*,ex\:*/,srO\:/*,mb\:*,ex\:*/,b\:TRANS

⌨️ 快捷键说明

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