Description: Code
#ifndef SYS_NPI_IP_H
#define SYS_NPI_IP_H
#ident "@(#) npi_ip.h,v openss7-0_9_2_G(0.9.2.7) Copyright (c) 2001-2008 OpenSS7 Corporation."
#include <sys/npi.h>
#ifndef N_VERSION_2
#define N_CURRENT_VERSION 0x02
#define N_VERSION_2 0x02
typedef struct {
np_ulong PRIM_type;
np_ulong NSDU_size;
np_ulong ENSDU_size;
np_ulong CDATA_size;
np_ulong DDATA_size;
np_ulong ADDR_size;
np_ulong ADDR_length;
np_ulong ADDR_offset;
np_ulong QOS_length;
np_ulong QOS_offset;
np_ulong QOS_range_length;
np_ulong QOS_range_offset;
np_ulong OPTIONS_flags;
np_ulong NIDU_size;
np_long SERV_type;
np_ulong CURRENT_state;
np_ulong PROVIDER_type;
np_ulong NODU_size;
np_ulong PROTOID_length;
np_ulong PROTOID_offset;
np_ulong NPI_version;
} __N_info_ack_t;
#define N_info_ack_t __N_info_ack_t
typedef struct {
np_ulong PRIM_type;
np_ulong ADDR_length;
np_ulong ADDR_offset;
np_ulong CONIND_number;
np_ulong TOKEN_value;
np_ulong PROTOID_length;
np_ulong PROTOID_offset;
} __N_bind_ack_t;
#define N_bind_ack_t __N_bind_ack_t
#endif
#ifndef NSF_UNBND
#define NSF_UNBND (1<<NS_UNBND )
#define NSF_WACK_BREQ (1<<NS_WACK_BREQ )
#define NSF_WACK_UREQ (1<<NS_WACK_UREQ )
#define NSF_IDLE (1<<NS_IDLE )
#define NSF_WACK_OPTREQ (1<<NS_WACK_OPTREQ)
#define NSF_WACK_RRES (1<<NS_WACK_RRES )
#define NSF_WCON_CREQ (1<<NS_WCON_CREQ )
#define NSF_WRES_CIND (1<<NS_WRES_CIND )
#define NSF_WACK_CRES (1<<NS_WACK_CRES )
#define NSF_DATA_XFER (1<<NS_DATA_XFER )
#define NSF_WCON_RREQ (1<<NS_WCON_RREQ )
#define NSF_WRES_RIND (1<<NS_WRES_RIND )
#define NSF_WACK_DREQ6 (1<<NS_WACK_DREQ6 )
#define NSF_WACK_DREQ7 (1<<NS_WACK_DREQ7 )
#define NSF_WACK_DREQ9 (1<<NS_WACK_DREQ9 )
#define NSF_WACK_DREQ10 (1<<NS_WACK_DREQ10)
#define NSF_WACK_DREQ11 (1<<NS_WACK_DREQ11)
#endif
#define IP_FLAG_DEFAULT_RC_SEL (1<<0)
#define IP_BINDPORT_LOCK (1<<1)
#define N_QOS_SEL_INFO_IP 0x0201
#define N_QOS_RANGE_INFO_IP 0x0202
#define N_QOS_SEL_CONN_IP 0x0203
#define N_QOS_SEL_UD_IP 0x0204
typedef struct N_qos_sel_info_ip {
np_ulong n_qos_type;
np_ulong protocol;
np_ulong priority;
np_ulong ttl;
np_ulong tos;
np_ulong mtu;
np_ulong saddr;
np_ulong daddr;
} N_qos_sel_info_ip_t;
typedef struct N_qos_sel_conn_ip {
np_ulong n_qos_type;
np_ulong protocol;
np_ulong priority;
np_ulong ttl;
np_ulong tos;
np_ulong mtu;
np_ulong saddr;
np_ulong daddr;
} N_qos_sel_conn_ip_t;
typedef struct N_qos_sel_ud_ip {
np_ulong n_qos_type;
np_ulong protocol;
np_ulong priority;
np_ulong ttl;
np_ulong tos;
np_ulong saddr;
} N_qos_sel_ud_ip_t;
typedef struct {
np_long priority_min_value;
np_long priority_max_value;
} ip_priority_values_t;
typedef struct {
np_long ttl_min_value;
np_long ttl_max_value;
} ip_ttl_values_t;
typedef struct {
np_long tos_min_value;
np_long tos_max_value;
} ip_tos_values_t;
typedef struct {
np_long mtu_min_value;
np_long mtu_max_value;
} ip_mtu_values_t;
typedef struct N_qos_range_info_ip {
np_ulong n_qos_type;
ip_priority_values_t priority;
ip_ttl_values_t ttl;
ip_tos_values_t tos;
ip_mtu_values_t mtu;
} N_qos_range_info_ip_t;
union N_qos_ip_types {
np_ulong n_qos_type;
struct N_qos_sel_info_ip n_qos_sel_info;
struct N_qos_sel_conn_ip n_qos_sel_conn;
struct N_qos_sel_ud_ip n_qos_sel_ud;
struct N_qos_range_info_ip n_qos_range_info;
};
#define N_ROUTINE 0x00
#define N_PRIORITY 0x20
#define N_IMMEDIATE 0x40
#define N_FLASH 0x60
#define N_OVERRIDEFLASH 0x80
#define N_CRITIC_ECP 0xa0
#define N_INETCONTROL 0xc0
#define N_NETCONTROL 0xe0
#define N_NOTOS 0
#define N_LDELAY (1<<4)
#define N_HITHRPT (1<<3)
#define N_HIREL (1<<2)
#define N_LOCOST (1<<1)
#endif