Description: Code
#ifndef _SYS_XTI_IP_H
#define _SYS_XTI_IP_H
#ident "@(#) xti_ip.h,v openss7-0_9_2_G(0.9.2.7) Copyright (c) 2001-2008 OpenSS7 Corporation."
#define T_INET_IP 0
#define T_IP_OPTIONS 1
#define T_IP_TOS 2
#define T_IP_TTL 3
#define T_IP_REUSEADDR 4
#define T_IP_DONTROUTE 5
#define T_IP_BROADCAST 6
#define T_IP_ADDR 7
#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
#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