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/drivers/m2ua/m2ua_lm.h


File /code/strss7/drivers/m2ua/m2ua_lm.h



#ifndef __M2UA_LM_H__
#define __M2UA_LM_H__

/*
 *  =========================================================================
 *
 *  M2UA --> LM
 *
 *  =========================================================================
 */

/*
 *  M2_XXXX
 */
static __inline__ mblk_t *m2_xxxx(void)
{
	mblk_t *mp;
	m2_xxxx *p;
	if ((mp = allocb(sizeof(*p), BPRI_MED))) {
		mp->b_datap->db_type = M_PCPROTO;
		p = (m2_xxxx *) mp->b_wptr;
		p->primitive = M2_XXXX;
		mp->b_wptr += sizeof(*p);
	}
	return (mp);
}

static __inline__ int m2_link_notify_ind(sl, not_ptr, not_len)
	const slp_t *sl;
	const caddr_t not_ptr;
	const size_t not_len;
{
	mblk_t *mp;
	m2_link_notify_ind_t *p;
	if ((mp = allocb(sizeof(*p), BPRI_MED))) {
		mp->b_datap->db_type = M_PROTO;
		p = (m2_link_notify_ind_t *) mp->b_wptr;
		p->primitive = M2_LINK_NOTIFY_IND;
		p->linkid = sl->muxid;
		p->notify_length = not_len;
		p->notify_offset = not_len ? sizeof(*p) : 0;
		mp->b_wptr += sizeof(*p);
		bcopy(not_ptr, mp->b_wptr, not_len);
		mp->b_wptr += not_len;
		putq(sl->mgmtq, mp);
		return (0);
	}
	return (-ENOBUFS);
}

#endif				/* __M2UA_LM_H__ */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/m2ua/m2ua_lm.h

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

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