OpenSS7 SS7 for the Common Man |
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |
||||||||||||||||||||||||||
Home | Overview | Status | News | Documentation | Resources | About | |||||||||||||||||||||
File /code/strss7/include/ss7/slmi.h#ifndef __SS7_SLMI_H__ #define __SS7_SLMI_H__ #ident "@(#) $Name: $($Revision: 0.8.2.2 $) Copyright (c) 1997-2002 OpenSS7 Corporation." #define SLM_PROTO_BASE 8192L #define SLM_DSTR_FIRST ( 1L + SLM_PROTO_BASE) #define SLM_LINK_REQ ( 1L + SLM_PROTO_BASE) #define SLM_ATTACH_RES ( 2L + SLM_PROTO_BASE) #define SLM_DETACH_RES ( 3L + SLM_PROTO_BASE) #define SLM_ENABLE_RES ( 4L + SLM_PROTO_BASE) #define SLM_DISABLE_RES ( 5L + SLM_PROTO_BASE) #define SLM_DSTR_LAST ( 5L + SLM_PROTO_BASE) #define SLM_USTR_LAST ( -1L - SLM_PROTO_BASE) #define SLM_OK_ACK ( -1L - SLM_PROTO_BASE) #define SLM_ERROR_ACK ( -2L - SLM_PROTO_BASE) #define SLM_ATTACH_IND ( -3L - SLM_PROTO_BASE) #define SLM_DETACH_IND ( -4L - SLM_PROTO_BASE) #define SLM_ENABLE_IND ( -5L - SLM_PROTO_BASE) #define SLM_DISABLE_IND ( -6L - SLM_PROTO_BASE) #define SLM_USTR_FIRST ( -6L - SLM_PROTO_BASE) /* * SLMI PROTOCOL PRIMITIVES */ /* * SLM_LINK_REQ */ typedef struct { long prim; ulong devnum; ulong linkid; } slm_link_req_t; /* * SLM_OK_ACK */ typedef struct { long prim; long correct_prim; } slm_ok_ack_t; /* * SLM_ERROR_ACK */ typedef struct { long prim; long error_prim; long errno; } slm_error_ack_t; /* * SLM_ATTACH_IND */ typedef struct { long prim; ulong devnum; ulong linkid; } slm_attach_ind_t; /* * SLM_ATTACH_RES */ typedef struct { long prim; ulong devnum; ulong index; } slm_attach_ind_t; /* * SLM_DETACH_IND */ typedef struct { long prim; ulong devnum; } slm_detach_ind_t; /* * SLM_ENABLE_IND */ typedef struct { long prim; ulong devnum; } slm_enable_ind_t; /* * SLM_DISABLE_IND */ typedef struct { long prim; ulong devnum; } slm_disable_ind_t; union SLM_primitives { long prim; slm_link_req_t link_req; slm_attach_res_t attach_res; slm_detach_res_t detach_res; slm_enable_res_t enable_res; slm_disable_res_t disable_res; slm_ok_ack_t ok_ack; slm_error_ack_t error_ack; slm_attach_ind_t attach_ind; slm_detach_ind_t detach_ind; slm_enable_ind_t enable_ind; slm_disable_ind_t disable_ind; }; typedef union SLM_primitives slm_prim_t; #define SLM_LINK_REQ_SIZE sizeof(slm_link_req_t) #define SLM_ATTACH_RES_SIZE sizeof(slm_attach_res_t) #define SLM_DETACH_RES_SIZE sizeof(slm_detach_res_t) #define SLM_ENABLE_RES_SIZE sizeof(slm_enable_res_t) #define SLM_DISABLE_RES_SIZE sizeof(slm_disable_res_t) #define SLM_OK_ACK_SIZE sizeof(slm_ok_ack_t) #define SLM_ERROR_ACK_SIZE sizeof(slm_error_ack_t) #define SLM_ATTACH_IND_SIZE sizeof(slm_attach_ind_t) #define SLM_DETACH_IND_SIZE sizeof(slm_detach_ind_t) #define SLM_ENABLE_IND_SIZE sizeof(slm_enable_ind_t) #define SLM_DISABLE_IND_SIZE sizeof(slm_disable_ind_t) #endif /* __SS7_SLMI_H__ */
|
|||||||||||||||||||||||||||
OpenSS7 SS7 for the Common Man |
Home | Overview | Status | News | Documentation | Resources | About | ||||||||||||||||||||
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |