OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/include/sys/xti_ip.h


File /code/strss7/include/sys/xti_ip.h


#ifndef _SYS_XTI_IP_H
#define _SYS_XTI_IP_H

#ident "@(#) $Name:  $($Revision: 0.8.2.1 $) Copyright (c) 1997-2002 OpenSS7 Corporation."

#define T_INET_IP	0	/* IP level (same as protocol number) */

#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 */

/*
 *  IP_TOS precedence levels
 */
#define T_ROUTINE	0
#define T_PRIORITY	1
#define T_IMMEDIATE	2
#define T_FLASH		3
#define T_OVERRIDEFLASH	4
#define T_CRITIC_ECP	5
#define T_INETCONTROL	6
#define T_NETCONTROL	7

/*
 *  IP_TOS type of service
 */
#define T_NOTOS		0
#define T_LDELAY	(1<<4)
#define T_HITHRPT	(1<<3)
#define T_HIREL		(1<<2)
#define T_LOCOST	(1<<1)

#define SET_TOS(prec, tos) \
	((0x7 & (prec)) << 5 | ((T_NOTOS|T_LDELAY|T_HITHRPT|T_HIREL|T_LOCOST) & (tos)))

#endif				/* _SYS_XTI_IP_H */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/include/sys/xti_ip.h

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: