FreeBSD/sys/netgraph/atm/uni/ng_uni.c
/*
 * Dump a SAAL signal in either direction
 */
Dump a SAAL signal in either direction
Dump a SAAL signal in either direction
static void
dump_saal_signal(node_p node, enum saal_sig sig, struct uni_msg *msg, int to)
{
	struct priv *priv = NG_NODE_PRIVATE(node);
	printf("signal %s SAAL: ", to ? "to" : "from");
	switch (sig) {
#define D(S) case S: printf("%s", #S); break
	D(SAAL_ESTABLISH_request);
	D(SAAL_ESTABLISH_indication);
	D(SAAL_ESTABLISH_confirm);
	D(SAAL_RELEASE_request);
	D(SAAL_RELEASE_confirm);
	D(SAAL_RELEASE_indication);
	D(SAAL_DATA_request);
	D(SAAL_DATA_indication);
	D(SAAL_UDATA_request);
	D(SAAL_UDATA_indication);
#undef D
	  default:
		printf("sig=%d", sig); break;
	}
	if (msg != NULL) {
		printf(" data=%zu\n", uni_msg_len(msg));
		if (uni_get_debug(priv->uni, UNI_FAC_SAAL) > 1)
			dump_uni_msg(msg);
	} else
		printf("\n");
}
static void dump_saal_signal ( node_p node , enum saal_sig sig , struct uni_msg * msg , int to ) { struct priv * priv = NG_NODE_PRIVATE ( node ) ; printf ( " " , to ? " " : " " ) ; switch ( sig ) { #define D ( S )  case S: printf("%s", #S); break D ( SAAL_ESTABLISH_request ) ; D ( SAAL_ESTABLISH_indication ) ; D ( SAAL_ESTABLISH_confirm ) ; D ( SAAL_RELEASE_request ) ; D ( SAAL_RELEASE_confirm ) ; D ( SAAL_RELEASE_indication ) ; D ( SAAL_DATA_request ) ; D ( SAAL_DATA_indication ) ; D ( SAAL_UDATA_request ) ; D ( SAAL_UDATA_indication ) ; #undef  D default : printf ( " " , sig ) ; break ; } if ( msg != NULL ) { printf ( " \n " , uni_msg_len ( msg ) ) ; if ( uni_get_debug ( priv -> uni , UNI_FAC_SAAL ) > 1 ) dump_uni_msg ( msg ) ; } else printf ( " \n " ) ; }
Dump a SAAL signal in either direction
Dump a SAAL signal in either direction