FreeBSD/sys/netgraph/atm/uni/ng_uni.c
/*
 * Send signal to sscop.
 * Pack the message into an mbuf chain.
 */
Send signal to sscop.
Pack the message into an mbuf chain.
Send signal to sscop . Pack the message into an mbuf chain .
static void
uni_saal_output(struct uni *uni, void *varg, enum saal_sig sig, struct uni_msg *msg)
{
	node_p node = (node_p)varg;
	struct priv *priv = NG_NODE_PRIVATE(node);
	struct mbuf *m;
	struct sscfu_arg arg;
	int error;
	if (uni_get_debug(priv->uni, UNI_FAC_SAAL) > 0)
		dump_saal_signal(node, sig, msg, 1);
	if (priv->lower == NULL) {
		if (msg != NULL)
			uni_msg_destroy(msg);
		return;
	}
	arg.sig = sig;
	m = uni_msg_pack_mbuf(msg, &arg, sizeof(arg));
	if (msg != NULL)
		uni_msg_destroy(msg);
	if (m == NULL)
		return;
	NG_SEND_DATA_ONLY(error, priv->lower, m);
}
static void uni_saal_output ( struct uni * uni , void * varg , enum saal_sig sig , struct uni_msg * msg ) { node_p node = ( node_p ) varg ; struct priv * priv = NG_NODE_PRIVATE ( node ) ; struct mbuf * m ; struct sscfu_arg arg ; int error ; if ( uni_get_debug ( priv -> uni , UNI_FAC_SAAL ) > 0 ) dump_saal_signal ( node , sig , msg , 1 ) ; if ( priv -> lower == NULL ) { if ( msg != NULL ) uni_msg_destroy ( msg ) ; return ; } arg . sig = sig ; m = uni_msg_pack_mbuf ( msg , & arg , sizeof ( arg ) ) ; if ( msg != NULL ) uni_msg_destroy ( msg ) ; if ( m == NULL ) return ; NG_SEND_DATA_ONLY ( error , priv -> lower , m ) ; }
Send signal to sscop.
Send signal to sscop .