OpenSS7 SS7 for the Common Man |
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |
||||||||||||||||||||||||||
Home | Overview | Status | News | Documentation | Resources | About | |||||||||||||||||||||
File /code/strss7/drivers/tua/tua_asp.h#ifndef __TUA_ASP_H__ #define __TUA_ASP_H__ #ident "@(#) $RCSfile: tua_asp.h,v $ $Name: $($Revision: 0.8.2.1 $) $Date: 2002/10/18 02:27:14 $" #include "../ua/ua_asp.h" /* UA --> UA Common Messages */ #include "tua_msg.h" /* TUA specific messages */ /* * ========================================================================= * * TUA Peer Messages * * ========================================================================= * These inline functions build TUA peer messages. */ /* * TUA_TDHM_UNI 0x00 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_uni(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_UNI; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_BEG 0x01 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_beg(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_BEG; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_CON 0x02 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_con(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_CON; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_END 0x03 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_end(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_END; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_U_ABT 0x04 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_u_abt(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_U_ABT; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_P_ABT 0x05 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_p_abt(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_P_ABT; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TDHM_NOT 0x06 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_not(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_NOT; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TCHM_IVK 0x00 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_ivk(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_IVK; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TCHM_RES 0x01 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_res(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_RES; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TCHM_U_ERR 0x02 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_u_err(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_U_ERR; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * TUA_TCHM_REJ 0x03 * ------------------------------------------------------------------------- */ static inline mblk_t *tua_rej(uint rc, ...) { mblk_t *mp, *np; const size_t mlen = UA_MHDR_SIZE + UA_SIZE(UA_PARM_RC); if ((mp = allocb(mlen, BPRI_MED))) { mp->b_datap->db_type = M_DATA; *((uint32_t *) mp->b_wptr)++ = TUA_TDHM_REJ; *((uint32_t *) mp->b_wptr)++ = htonl(mlen); *((uint32_t *) mp->b_wptr)++ = UA_PDHR_RC; *((uint32_t *) mp->b_wptr)++ = htonl(rc); /* * FIXME: more... */ if ((np = n_data_req(N_RC_FLAG, N_QOS_PPI_TUA, rc, mp))) return (np); freeb(mp); } return (NULL); } /* * UA_RKMM_REG_REQ * ------------------------------------------------------------------------ */ static inline mblk_t *tua_reg_req(...) { } /* * UA_RKMM_REG_RSP * ------------------------------------------------------------------------ */ static inline mblk_t *tua_reg_rsp(...) { } /* * UA_RKMM_DEREG_REQ * ------------------------------------------------------------------------ */ static inline mblk_t *tua_dereg_req(...) { } /* * UA_RKMM_DEREG_RSP * ------------------------------------------------------------------------ */ static inline mblk_t *tua_dereg_rsp(...) { } #endif /* __TUA_ASP_H__ */
|
|||||||||||||||||||||||||||
OpenSS7 SS7 for the Common Man |
Home | Overview | Status | News | Documentation | Resources | About | ||||||||||||||||||||
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |